summaryrefslogtreecommitdiff
path: root/network/wlan/ihvsampleui/IHVSampleExtUIKey.h
diff options
context:
space:
mode:
authorDave Wilson <[email protected]>2015-03-17 19:50:07 -0700
committerDave Wilson <[email protected]>2015-03-17 19:50:07 -0700
commit97cf5197cf5b882b2c689d8dc2b555f2edf8f418 (patch)
tree46f3701832d70b420eb0fc0eb93261f9da45db3f /network/wlan/ihvsampleui/IHVSampleExtUIKey.h
parentef1905bf1e8825bb31120dfb27e0daf3154d859a (diff)
Initial publish
Diffstat (limited to 'network/wlan/ihvsampleui/IHVSampleExtUIKey.h')
-rw-r--r--network/wlan/ihvsampleui/IHVSampleExtUIKey.h104
1 files changed, 104 insertions, 0 deletions
diff --git a/network/wlan/ihvsampleui/IHVSampleExtUIKey.h b/network/wlan/ihvsampleui/IHVSampleExtUIKey.h
new file mode 100644
index 00000000..c106e549
--- /dev/null
+++ b/network/wlan/ihvsampleui/IHVSampleExtUIKey.h
@@ -0,0 +1,104 @@
+//
+// Copyright (C) Microsoft Corporation 2005
+// IHV UI Extension sample
+//
+
+#ifndef _IHVSAMPLEEXTUIKEY_H_
+#define _IHVSAMPLEEXTUIKEY_H_
+
+class CDot11SampleExtUIKeyProperty: public IDot11SampleExtUIKeyProperty
+{
+public:
+ CDot11SampleExtUIKeyProperty();
+
+ ~CDot11SampleExtUIKeyProperty();
+
+ // IUnknown Implementation
+ BEGIN_INTERFACE_TABLE()
+ IMPLEMENTS_INTERFACE(IDot11SampleExtUIKeyProperty)
+ END_INTERFACE_TABLE();
+
+ STDMETHODIMP
+ GetDot11ExtUIPropertyFriendlyName(
+ BSTR* bstrPropertyName // IHV friendly name
+ );
+
+ //Used to extend property
+ STDMETHODIMP
+ DisplayDot11ExtUIProperty(
+ HWND hParent, // Parent Window Handle
+ BSTR bstrIHVProfile, // IHV data from the profile
+ PDOT11EXT_IHV_PARAMS pIHVParams, // Select profile MS security settings
+ BSTR* bstrModifiedIHVProfile, // modified IHV data to be stored in the profile
+ BOOL* pbIsModified // flag to denote if profile was modified
+ );
+
+ //Used to get the currently chosen entry to display as selected in the dropdown list
+ STDMETHODIMP
+ Dot11ExtUIPropertyGetSelected(
+ BSTR bstrIHVProfile, // IHV data from the profile
+ PDOT11EXT_IHV_PARAMS pIHVParams, // Select profile MS security settings
+ BOOL* pfIsSelected // flag denoting if this is the selected profile
+ );
+
+ //Used to set the current entry as chosen from the dropdown list
+ STDMETHODIMP
+ Dot11ExtUIPropertySetSelected(
+ BSTR bstrIHVProfile, // IHV data from the profile
+ PDOT11EXT_IHV_PARAMS pIHVParams, // Select profile MS security settings
+ BSTR* bstrModifiedIHVProfile, // modified IHV data to be stored in the profile
+ BOOL* pbIsModified // flag to denote if profile was modified
+ );
+
+ STDMETHODIMP
+ Dot11ExtUIPropertyHasConfigurationUI(BOOL *fHasConfigurationUI);
+
+ //Used to get additional display data (ciphers for auth types)
+ STDMETHODIMP
+ Dot11ExtUIPropertyGetDisplayInfo(
+ DOT11_EXT_UI_DISPLAY_INFO_TYPE dot11ExtUIDisplayInfoType, // the diapaly type to be described
+ BSTR bstrIHVProfile, // IHV data from the profile
+ PDOT11EXT_IHV_PARAMS pIHVParams, // Select profile MS security settings
+ ULONG *pcEntries, // number of dependent strings
+ ULONG *puDefaultSelection, // the entry in the array to be selected by default
+ DOT11_EXT_UI_PROPERTY_DISPLAY_INFO **ppDot11ExtUIProperty // array of returned info structure
+ );
+
+ STDMETHODIMP
+ Dot11ExtUIPropertySetDisplayInfo(
+ DOT11_EXT_UI_DISPLAY_INFO_TYPE dot11ExtUIDisplayInfoType, // the diapaly type to be modified
+ BSTR bstrIHVProfile, // IHV data from the profile
+ PDOT11EXT_IHV_PARAMS pIHVParams, // Select profile MS security settings
+ DOT11_EXT_UI_PROPERTY_DISPLAY_INFO *pDot11ExtUIProperty, // selected info structure
+ BSTR* bstrModifiedIHVProfile, // modified IHV data to be stored in the profile
+ BOOL* pbIsModified // flag to denote if profile was modified
+ );
+
+ STDMETHODIMP
+ Dot11ExtUIPropertyIsStandardSecurity(
+ BOOL *fIsStandardSecurity, // if this interface is a standard auth method
+ DOT11_EXT_UI_SECURITY_TYPE *dot11ExtUISecurityType // which of the standard auth methods it is
+ );
+
+ // initialize the key extension page
+ STDMETHODIMP
+ Initialize(BYTE* pbData);
+
+private:
+ bool m_fInitialized;
+ BSTR m_bstrFN;
+ DOT11_EXT_UI_PROPERTY_TYPE m_ExtType;
+ BOOL m_fModified;
+ IHV_AUTH_CIPHERS m_IHVAuthCiphers;
+};
+
+
+INT_PTR CALLBACK
+SimpleDialogProcKey(
+ HWND hwndDlg,
+ UINT uMsg,
+ WPARAM wParam,
+ LPARAM lParam
+);
+
+#endif _IHVSAMPLEEXTUIKEY_H_