| 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 |
| 7 |
import "oaidl.idl"; |
| 8 |
import "unknwn.idl"; |
| 9 |
import "wtypes.idl"; |
| 10 |
#endif |
| 11 |
|
| 12 |
cpp_quote("#include <winapifamily.h>") |
| 13 |
cpp_quote("") |
| 14 |
cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") |
| 15 |
|
| 16 |
interface IDot11AdHocManager; |
| 17 |
interface IDot11AdHocManagerNotificationSink; |
| 18 |
interface IDot11AdHocNetwork; |
| 19 |
interface IDot11AdHocNetworkNotificationSink; |
| 20 |
interface IDot11AdHocInterface; |
| 21 |
interface IDot11AdHocInterfaceNotificationSink; |
| 22 |
interface IDot11AdHocSecuritySettings; |
| 23 |
interface IEnumDot11AdHocInterfaces; |
| 24 |
interface IEnumDot11AdHocNetworks; |
| 25 |
interface IEnumDot11AdHocSecuritySettings; |
| 26 |
|
| 27 |
typedef [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 |
|
| 34 |
typedef [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 |
|
| 40 |
typedef [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 |
|
| 48 |
typedef [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 |
|
| 54 |
cpp_quote("EXTERN_C const CLSID CLSID_AdHocManager;") |
| 55 |
|
| 56 |
[object, local, uuid (8f10cc26-cf0d-42a0-acbe-e2de7007384d), pointer_default (unique)] |
| 57 |
interface 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)] |
| 66 |
interface 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)] |
| 74 |
interface 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)] |
| 82 |
interface 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)] |
| 98 |
interface 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)] |
| 104 |
interface 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)] |
| 117 |
interface 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)] |
| 125 |
interface 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)] |
| 133 |
interface 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)] |
| 139 |
interface IDot11AdHocInterfaceNotificationSink : IUnknown { |
| 140 |
HRESULT OnConnectionStatusChange (DOT11_ADHOC_NETWORK_CONNECTION_STATUS eStatus); |
| 141 |
} |
| 142 |
|
| 143 |
[uuid (45357166-ff38-4302-8f5c-df5b703a6e3d), version (1.0)] |
| 144 |
library ADHOCLib { |
| 145 |
importlib ("stdole2.tlb"); |
| 146 |
[uuid (dd06a84f-83bd-4d01-8ab9-2389fea0869e)] |
| 147 |
coclass Dot11AdHocManager { |
| 148 |
[default] interface IDot11AdHocManager; |
| 149 |
}; |
| 150 |
}; |
| 151 |
cpp_quote("#endif") |