1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
//
// Copyright (C) Microsoft Corporation 2005
// IHV UI Extension sample
//
#ifndef _IHVSAMPLEEXTUISEC_H_
#define _IHVSAMPLEEXTUISEC_H_
class CDot11SampleExtUISecProperty: public IDot11SampleExtUISecProperty
{
public:
CDot11SampleExtUISecProperty();
~CDot11SampleExtUISecProperty();
// IUnknown Implementation
BEGIN_INTERFACE_TABLE()
IMPLEMENTS_INTERFACE(IDot11SampleExtUISecProperty)
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 security page
STDMETHODIMP
Initialize(BSTR bstrPropertyName, DWORD dwIhvSecurity);
private:
bool m_fInitialized;
BSTR m_bstrFN;
DOT11_EXT_UI_PROPERTY_TYPE m_ExtType;
BOOL m_fModified;
IHV_SECURITY_TYPE m_IhvSecurityType;
IHV_CIPHER_TYPE m_IHVCipherList[MAX_CIPHER_TYPES];
};
INT_PTR CALLBACK
SimpleDialogProcSec(
HWND hwndDlg,
UINT uMsg,
WPARAM wParam,
LPARAM lParam
);
#endif _IHVSAMPLEEXTUISEC_H_
|