source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/adhoc.idl@ 1186

Last change on this file since 1186 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 6.8 KB
RevLine 
[1166]1/**
2 * This file is part of the mingw-w64 runtime package.
3 * No warranty is given; refer to the file DISCLAIMER within this package.
4 */
5
6#ifndef DO_NO_IMPORTS
7import "oaidl.idl";
8import "unknwn.idl";
9import "wtypes.idl";
10#endif
11
12cpp_quote("#include <winapifamily.h>")
13cpp_quote("")
14cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
15
16interface IDot11AdHocManager;
17interface IDot11AdHocManagerNotificationSink;
18interface IDot11AdHocNetwork;
19interface IDot11AdHocNetworkNotificationSink;
20interface IDot11AdHocInterface;
21interface IDot11AdHocInterfaceNotificationSink;
22interface IDot11AdHocSecuritySettings;
23interface IEnumDot11AdHocInterfaces;
24interface IEnumDot11AdHocNetworks;
25interface IEnumDot11AdHocSecuritySettings;
26
27typedef [v1_enum] enum tagDOT11_ADHOC_CIPHER_ALGORITHM {
28 DOT11_ADHOC_CIPHER_ALGO_INVALID = -1,
29 DOT11_ADHOC_CIPHER_ALGO_NONE = 0x00,
30 DOT11_ADHOC_CIPHER_ALGO_CCMP = 0x04,
31 DOT11_ADHOC_CIPHER_ALGO_WEP = 0x101,
32} DOT11_ADHOC_CIPHER_ALGORITHM;
33
34typedef [v1_enum] enum tagDOT11_ADHOC_AUTH_ALGORITHM {
35 DOT11_ADHOC_AUTH_ALGO_INVALID = -1,
36 DOT11_ADHOC_AUTH_ALGO_80211_OPEN = 1,
37 DOT11_ADHOC_AUTH_ALGO_RSNA_PSK = 7
38} DOT11_ADHOC_AUTH_ALGORITHM;
39
40typedef [v1_enum] enum tagDOT11_ADHOC_NETWORK_CONNECTION_STATUS {
41 DOT11_ADHOC_NETWORK_CONNECTION_STATUS_INVALID = 0,
42 DOT11_ADHOC_NETWORK_CONNECTION_STATUS_DISCONNECTED = 11,
43 DOT11_ADHOC_NETWORK_CONNECTION_STATUS_CONNECTING = 12,
44 DOT11_ADHOC_NETWORK_CONNECTION_STATUS_CONNECTED = 13,
45 DOT11_ADHOC_NETWORK_CONNECTION_STATUS_FORMED = 14
46} DOT11_ADHOC_NETWORK_CONNECTION_STATUS;
47
48typedef [v1_enum] enum tagDOT11_ADHOC_CONNECT_FAIL_REASON {
49 DOT11_ADHOC_CONNECT_FAIL_DOMAIN_MISMATCH = 0,
50 DOT11_ADHOC_CONNECT_FAIL_PASSPHRASE_MISMATCH = 1,
51 DOT11_ADHOC_CONNECT_FAIL_OTHER = 2
52} DOT11_ADHOC_CONNECT_FAIL_REASON;
53
54cpp_quote("EXTERN_C const CLSID CLSID_AdHocManager;")
55
56[object, local, uuid (8f10cc26-cf0d-42a0-acbe-e2de7007384d), pointer_default (unique)]
57interface IDot11AdHocManager : IUnknown {
58 HRESULT CreateNetwork ([in, string] LPCWSTR Name,[in, string] LPCWSTR Password,[in] LONG GeographicalId,[in] IDot11AdHocInterface *pInterface,[in] IDot11AdHocSecuritySettings *pSecurity,[in] GUID *pContextGuid,[out] IDot11AdHocNetwork **pIAdHoc);
59 HRESULT CommitCreatedNetwork ([in] IDot11AdHocNetwork *pIAdHoc,[in] BOOLEAN fSaveProfile,[in] BOOLEAN fMakeSavedProfileUserSpecific);
60 HRESULT GetIEnumDot11AdHocNetworks ([in] GUID *pContextGuid,[out] IEnumDot11AdHocNetworks **ppEnum);
61 HRESULT GetIEnumDot11AdHocInterfaces ([out] IEnumDot11AdHocInterfaces **ppEnum);
62 HRESULT GetNetwork ([in] GUID *NetworkSignature,[out] IDot11AdHocNetwork **pNetwork);
63};
64
65[object, local, uuid (8f10cc27-cf0d-42a0-acbe-e2de7007384d), pointer_default (unique)]
66interface IDot11AdHocManagerNotificationSink : IUnknown {
67 HRESULT OnNetworkAdd ([in] IDot11AdHocNetwork *pIAdHocNetwork);
68 HRESULT OnNetworkRemove ([in] GUID *Signature);
69 HRESULT OnInterfaceAdd ([in] IDot11AdHocInterface *pIAdHocInterface);
70 HRESULT OnInterfaceRemove ([in] GUID *Signature);
71}
72
73[object, local, uuid (8f10cc28-cf0d-42a0-acbe-e2de7007384d), pointer_default (unique)]
74interface IEnumDot11AdHocNetworks : IUnknown {
75 HRESULT Next ([in] ULONG cElt,[out, size_is (cElt), length_is (*pcEltFetched)]IDot11AdHocNetwork **rgElt,[out] ULONG *pcEltFetched);
76 HRESULT Skip ([in] ULONG cElt);
77 HRESULT Reset ();
78 HRESULT Clone ([out] IEnumDot11AdHocNetworks **ppEnum);
79};
80
81[object, local, uuid (8f10cc29-cf0d-42a0-acbe-e2de7007384d), pointer_default (unique)]
82interface IDot11AdHocNetwork : IUnknown {
83 HRESULT GetStatus ([in, out] DOT11_ADHOC_NETWORK_CONNECTION_STATUS *eStatus);
84 HRESULT GetSSID ([out, string] LPWSTR *ppszwSSID);
85 HRESULT HasProfile ([in, out] BOOLEAN *pf11d);
86 HRESULT GetProfileName ([out, string] LPWSTR *ppszwProfileName);
87 HRESULT DeleteProfile ();
88 HRESULT GetSignalQuality ([out] ULONG *puStrengthValue,[out] ULONG *puStrengthMax);
89 HRESULT GetSecuritySetting ([out] IDot11AdHocSecuritySettings **pAdHocSecuritySetting);
90 HRESULT GetContextGuid ([in, out] GUID *pContextGuid);
91 HRESULT GetSignature ([in, out] GUID *pSignature);
92 HRESULT GetInterface ([out] IDot11AdHocInterface **pAdHocInterface);
93 HRESULT Connect ([in, string] LPCWSTR Passphrase,[in] LONG GeographicalId,[in] BOOLEAN fSaveProfile,[in] BOOLEAN fMakeSavedProfileUserSpecific);
94 HRESULT Disconnect ();
95};
96
97[object, local, uuid (8f10cc2a-cf0d-42a0-acbe-e2de7007384d), pointer_default (unique)]
98interface IDot11AdHocNetworkNotificationSink : IUnknown {
99 HRESULT OnStatusChange (DOT11_ADHOC_NETWORK_CONNECTION_STATUS eStatus);
100 HRESULT OnConnectFail (DOT11_ADHOC_CONNECT_FAIL_REASON eFailReason);
101}
102
103[object, local, uuid (8f10cc2b-cf0d-42a0-acbe-e2de7007384d), pointer_default (unique)]
104interface IDot11AdHocInterface : IUnknown {
105 HRESULT GetDeviceSignature ([in, out] GUID *pSignature);
106 HRESULT GetFriendlyName ([out, string] LPWSTR *ppszName);
107 HRESULT IsDot11d ([in, out] BOOLEAN *pf11d);
108 HRESULT IsAdHocCapable ([in, out] BOOLEAN *pfAdHocCapable);
109 HRESULT IsRadioOn ([in, out] BOOLEAN *pfIsRadioOn);
110 HRESULT GetActiveNetwork ([out] IDot11AdHocNetwork **ppNetwork);
111 HRESULT GetIEnumSecuritySettings ([out] IEnumDot11AdHocSecuritySettings **ppEnum);
112 HRESULT GetIEnumDot11AdHocNetworks ([in] GUID *pFilterGuid,[out] IEnumDot11AdHocNetworks **ppEnum);
113 HRESULT GetStatus ([in, out] DOT11_ADHOC_NETWORK_CONNECTION_STATUS *pState);
114}
115
116[object, local, uuid (8f10cc2c-cf0d-42a0-acbe-e2de7007384d), pointer_default (unique)]
117interface IEnumDot11AdHocInterfaces : IUnknown {
118 HRESULT Next ([in] ULONG cElt,[out, size_is (cElt), length_is (*pcEltFetched)]IDot11AdHocInterface **rgElt,[out] ULONG *pcEltFetched);
119 HRESULT Skip ([in] ULONG cElt);
120 HRESULT Reset ();
121 HRESULT Clone ([out] IEnumDot11AdHocInterfaces **ppEnum);
122}
123
124[object, local, uuid (8f10cc2d-cf0d-42a0-acbe-e2de7007384d), pointer_default (unique)]
125interface IEnumDot11AdHocSecuritySettings : IUnknown {
126 HRESULT Next ([in] ULONG cElt,[out, size_is (cElt), length_is (*pcEltFetched)]IDot11AdHocSecuritySettings **rgElt,[out] ULONG *pcEltFetched);
127 HRESULT Skip ([in] ULONG cElt);
128 HRESULT Reset ();
129 HRESULT Clone ([out] IEnumDot11AdHocSecuritySettings **ppEnum);
130}
131
132[object, local, uuid (8f10cc2e-cf0d-42a0-acbe-e2de7007384d), pointer_default (unique)]
133interface IDot11AdHocSecuritySettings : IUnknown {
134 HRESULT GetDot11AuthAlgorithm ([in, out] DOT11_ADHOC_AUTH_ALGORITHM *pAuth);
135 HRESULT GetDot11CipherAlgorithm ([in, out] DOT11_ADHOC_CIPHER_ALGORITHM *pCipher);
136}
137
138[object, local, uuid (8f10cc2f-cf0d-42a0-acbe-e2de7007384d), pointer_default (unique)]
139interface IDot11AdHocInterfaceNotificationSink : IUnknown {
140 HRESULT OnConnectionStatusChange (DOT11_ADHOC_NETWORK_CONNECTION_STATUS eStatus);
141}
142
143[uuid (45357166-ff38-4302-8f5c-df5b703a6e3d), version (1.0)]
144library ADHOCLib {
145 importlib ("stdole2.tlb");
146 [uuid (dd06a84f-83bd-4d01-8ab9-2389fea0869e)]
147 coclass Dot11AdHocManager {
148 [default] interface IDot11AdHocManager;
149 };
150};
151cpp_quote("#endif")
Note: See TracBrowser for help on using the repository browser.