adhoc.h 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470
  1. /*** Autogenerated by WIDL 7.7 from include/adhoc.idl - Do not edit ***/
  2. #ifdef _WIN32
  3. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  4. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  5. #endif
  6. #include <rpc.h>
  7. #include <rpcndr.h>
  8. #endif
  9. #ifndef COM_NO_WINDOWS_H
  10. #include <windows.h>
  11. #include <ole2.h>
  12. #endif
  13. #ifndef __adhoc_h__
  14. #define __adhoc_h__
  15. /* Forward declarations */
  16. #ifndef __IDot11AdHocManager_FWD_DEFINED__
  17. #define __IDot11AdHocManager_FWD_DEFINED__
  18. typedef interface IDot11AdHocManager IDot11AdHocManager;
  19. #ifdef __cplusplus
  20. interface IDot11AdHocManager;
  21. #endif /* __cplusplus */
  22. #endif
  23. #ifndef __IDot11AdHocManagerNotificationSink_FWD_DEFINED__
  24. #define __IDot11AdHocManagerNotificationSink_FWD_DEFINED__
  25. typedef interface IDot11AdHocManagerNotificationSink IDot11AdHocManagerNotificationSink;
  26. #ifdef __cplusplus
  27. interface IDot11AdHocManagerNotificationSink;
  28. #endif /* __cplusplus */
  29. #endif
  30. #ifndef __IEnumDot11AdHocNetworks_FWD_DEFINED__
  31. #define __IEnumDot11AdHocNetworks_FWD_DEFINED__
  32. typedef interface IEnumDot11AdHocNetworks IEnumDot11AdHocNetworks;
  33. #ifdef __cplusplus
  34. interface IEnumDot11AdHocNetworks;
  35. #endif /* __cplusplus */
  36. #endif
  37. #ifndef __IDot11AdHocNetwork_FWD_DEFINED__
  38. #define __IDot11AdHocNetwork_FWD_DEFINED__
  39. typedef interface IDot11AdHocNetwork IDot11AdHocNetwork;
  40. #ifdef __cplusplus
  41. interface IDot11AdHocNetwork;
  42. #endif /* __cplusplus */
  43. #endif
  44. #ifndef __IDot11AdHocNetworkNotificationSink_FWD_DEFINED__
  45. #define __IDot11AdHocNetworkNotificationSink_FWD_DEFINED__
  46. typedef interface IDot11AdHocNetworkNotificationSink IDot11AdHocNetworkNotificationSink;
  47. #ifdef __cplusplus
  48. interface IDot11AdHocNetworkNotificationSink;
  49. #endif /* __cplusplus */
  50. #endif
  51. #ifndef __IDot11AdHocInterface_FWD_DEFINED__
  52. #define __IDot11AdHocInterface_FWD_DEFINED__
  53. typedef interface IDot11AdHocInterface IDot11AdHocInterface;
  54. #ifdef __cplusplus
  55. interface IDot11AdHocInterface;
  56. #endif /* __cplusplus */
  57. #endif
  58. #ifndef __IEnumDot11AdHocInterfaces_FWD_DEFINED__
  59. #define __IEnumDot11AdHocInterfaces_FWD_DEFINED__
  60. typedef interface IEnumDot11AdHocInterfaces IEnumDot11AdHocInterfaces;
  61. #ifdef __cplusplus
  62. interface IEnumDot11AdHocInterfaces;
  63. #endif /* __cplusplus */
  64. #endif
  65. #ifndef __IEnumDot11AdHocSecuritySettings_FWD_DEFINED__
  66. #define __IEnumDot11AdHocSecuritySettings_FWD_DEFINED__
  67. typedef interface IEnumDot11AdHocSecuritySettings IEnumDot11AdHocSecuritySettings;
  68. #ifdef __cplusplus
  69. interface IEnumDot11AdHocSecuritySettings;
  70. #endif /* __cplusplus */
  71. #endif
  72. #ifndef __IDot11AdHocSecuritySettings_FWD_DEFINED__
  73. #define __IDot11AdHocSecuritySettings_FWD_DEFINED__
  74. typedef interface IDot11AdHocSecuritySettings IDot11AdHocSecuritySettings;
  75. #ifdef __cplusplus
  76. interface IDot11AdHocSecuritySettings;
  77. #endif /* __cplusplus */
  78. #endif
  79. #ifndef __IDot11AdHocInterfaceNotificationSink_FWD_DEFINED__
  80. #define __IDot11AdHocInterfaceNotificationSink_FWD_DEFINED__
  81. typedef interface IDot11AdHocInterfaceNotificationSink IDot11AdHocInterfaceNotificationSink;
  82. #ifdef __cplusplus
  83. interface IDot11AdHocInterfaceNotificationSink;
  84. #endif /* __cplusplus */
  85. #endif
  86. #ifndef __Dot11AdHocManager_FWD_DEFINED__
  87. #define __Dot11AdHocManager_FWD_DEFINED__
  88. #ifdef __cplusplus
  89. typedef class Dot11AdHocManager Dot11AdHocManager;
  90. #else
  91. typedef struct Dot11AdHocManager Dot11AdHocManager;
  92. #endif /* defined __cplusplus */
  93. #endif /* defined __Dot11AdHocManager_FWD_DEFINED__ */
  94. /* Headers for imported files */
  95. #include <oaidl.h>
  96. #include <unknwn.h>
  97. #include <wtypes.h>
  98. #ifdef __cplusplus
  99. extern "C" {
  100. #endif
  101. #include <winapifamily.h>
  102. #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  103. #ifndef __IDot11AdHocManager_FWD_DEFINED__
  104. #define __IDot11AdHocManager_FWD_DEFINED__
  105. typedef interface IDot11AdHocManager IDot11AdHocManager;
  106. #ifdef __cplusplus
  107. interface IDot11AdHocManager;
  108. #endif /* __cplusplus */
  109. #endif
  110. #ifndef __IDot11AdHocManagerNotificationSink_FWD_DEFINED__
  111. #define __IDot11AdHocManagerNotificationSink_FWD_DEFINED__
  112. typedef interface IDot11AdHocManagerNotificationSink IDot11AdHocManagerNotificationSink;
  113. #ifdef __cplusplus
  114. interface IDot11AdHocManagerNotificationSink;
  115. #endif /* __cplusplus */
  116. #endif
  117. #ifndef __IDot11AdHocNetwork_FWD_DEFINED__
  118. #define __IDot11AdHocNetwork_FWD_DEFINED__
  119. typedef interface IDot11AdHocNetwork IDot11AdHocNetwork;
  120. #ifdef __cplusplus
  121. interface IDot11AdHocNetwork;
  122. #endif /* __cplusplus */
  123. #endif
  124. #ifndef __IDot11AdHocNetworkNotificationSink_FWD_DEFINED__
  125. #define __IDot11AdHocNetworkNotificationSink_FWD_DEFINED__
  126. typedef interface IDot11AdHocNetworkNotificationSink IDot11AdHocNetworkNotificationSink;
  127. #ifdef __cplusplus
  128. interface IDot11AdHocNetworkNotificationSink;
  129. #endif /* __cplusplus */
  130. #endif
  131. #ifndef __IDot11AdHocInterface_FWD_DEFINED__
  132. #define __IDot11AdHocInterface_FWD_DEFINED__
  133. typedef interface IDot11AdHocInterface IDot11AdHocInterface;
  134. #ifdef __cplusplus
  135. interface IDot11AdHocInterface;
  136. #endif /* __cplusplus */
  137. #endif
  138. #ifndef __IDot11AdHocInterfaceNotificationSink_FWD_DEFINED__
  139. #define __IDot11AdHocInterfaceNotificationSink_FWD_DEFINED__
  140. typedef interface IDot11AdHocInterfaceNotificationSink IDot11AdHocInterfaceNotificationSink;
  141. #ifdef __cplusplus
  142. interface IDot11AdHocInterfaceNotificationSink;
  143. #endif /* __cplusplus */
  144. #endif
  145. #ifndef __IDot11AdHocSecuritySettings_FWD_DEFINED__
  146. #define __IDot11AdHocSecuritySettings_FWD_DEFINED__
  147. typedef interface IDot11AdHocSecuritySettings IDot11AdHocSecuritySettings;
  148. #ifdef __cplusplus
  149. interface IDot11AdHocSecuritySettings;
  150. #endif /* __cplusplus */
  151. #endif
  152. #ifndef __IEnumDot11AdHocInterfaces_FWD_DEFINED__
  153. #define __IEnumDot11AdHocInterfaces_FWD_DEFINED__
  154. typedef interface IEnumDot11AdHocInterfaces IEnumDot11AdHocInterfaces;
  155. #ifdef __cplusplus
  156. interface IEnumDot11AdHocInterfaces;
  157. #endif /* __cplusplus */
  158. #endif
  159. #ifndef __IEnumDot11AdHocNetworks_FWD_DEFINED__
  160. #define __IEnumDot11AdHocNetworks_FWD_DEFINED__
  161. typedef interface IEnumDot11AdHocNetworks IEnumDot11AdHocNetworks;
  162. #ifdef __cplusplus
  163. interface IEnumDot11AdHocNetworks;
  164. #endif /* __cplusplus */
  165. #endif
  166. #ifndef __IEnumDot11AdHocSecuritySettings_FWD_DEFINED__
  167. #define __IEnumDot11AdHocSecuritySettings_FWD_DEFINED__
  168. typedef interface IEnumDot11AdHocSecuritySettings IEnumDot11AdHocSecuritySettings;
  169. #ifdef __cplusplus
  170. interface IEnumDot11AdHocSecuritySettings;
  171. #endif /* __cplusplus */
  172. #endif
  173. typedef enum tagDOT11_ADHOC_CIPHER_ALGORITHM {
  174. DOT11_ADHOC_CIPHER_ALGO_INVALID = -1,
  175. DOT11_ADHOC_CIPHER_ALGO_NONE = 0x0,
  176. DOT11_ADHOC_CIPHER_ALGO_CCMP = 0x4,
  177. DOT11_ADHOC_CIPHER_ALGO_WEP = 0x101
  178. } DOT11_ADHOC_CIPHER_ALGORITHM;
  179. typedef enum tagDOT11_ADHOC_AUTH_ALGORITHM {
  180. DOT11_ADHOC_AUTH_ALGO_INVALID = -1,
  181. DOT11_ADHOC_AUTH_ALGO_80211_OPEN = 1,
  182. DOT11_ADHOC_AUTH_ALGO_RSNA_PSK = 7
  183. } DOT11_ADHOC_AUTH_ALGORITHM;
  184. typedef enum tagDOT11_ADHOC_NETWORK_CONNECTION_STATUS {
  185. DOT11_ADHOC_NETWORK_CONNECTION_STATUS_INVALID = 0,
  186. DOT11_ADHOC_NETWORK_CONNECTION_STATUS_DISCONNECTED = 11,
  187. DOT11_ADHOC_NETWORK_CONNECTION_STATUS_CONNECTING = 12,
  188. DOT11_ADHOC_NETWORK_CONNECTION_STATUS_CONNECTED = 13,
  189. DOT11_ADHOC_NETWORK_CONNECTION_STATUS_FORMED = 14
  190. } DOT11_ADHOC_NETWORK_CONNECTION_STATUS;
  191. typedef enum tagDOT11_ADHOC_CONNECT_FAIL_REASON {
  192. DOT11_ADHOC_CONNECT_FAIL_DOMAIN_MISMATCH = 0,
  193. DOT11_ADHOC_CONNECT_FAIL_PASSPHRASE_MISMATCH = 1,
  194. DOT11_ADHOC_CONNECT_FAIL_OTHER = 2
  195. } DOT11_ADHOC_CONNECT_FAIL_REASON;
  196. EXTERN_C const CLSID CLSID_AdHocManager;
  197. /*****************************************************************************
  198. * IDot11AdHocManager interface
  199. */
  200. #ifndef __IDot11AdHocManager_INTERFACE_DEFINED__
  201. #define __IDot11AdHocManager_INTERFACE_DEFINED__
  202. DEFINE_GUID(IID_IDot11AdHocManager, 0x8f10cc26, 0xcf0d, 0x42a0, 0xac,0xbe, 0xe2,0xde,0x70,0x07,0x38,0x4d);
  203. #if defined(__cplusplus) && !defined(CINTERFACE)
  204. MIDL_INTERFACE("8f10cc26-cf0d-42a0-acbe-e2de7007384d")
  205. IDot11AdHocManager : public IUnknown
  206. {
  207. virtual HRESULT STDMETHODCALLTYPE CreateNetwork(
  208. LPCWSTR Name,
  209. LPCWSTR Password,
  210. LONG GeographicalId,
  211. IDot11AdHocInterface *pInterface,
  212. IDot11AdHocSecuritySettings *pSecurity,
  213. GUID *pContextGuid,
  214. IDot11AdHocNetwork **pIAdHoc) = 0;
  215. virtual HRESULT STDMETHODCALLTYPE CommitCreatedNetwork(
  216. IDot11AdHocNetwork *pIAdHoc,
  217. BOOLEAN fSaveProfile,
  218. BOOLEAN fMakeSavedProfileUserSpecific) = 0;
  219. virtual HRESULT STDMETHODCALLTYPE GetIEnumDot11AdHocNetworks(
  220. GUID *pContextGuid,
  221. IEnumDot11AdHocNetworks **ppEnum) = 0;
  222. virtual HRESULT STDMETHODCALLTYPE GetIEnumDot11AdHocInterfaces(
  223. IEnumDot11AdHocInterfaces **ppEnum) = 0;
  224. virtual HRESULT STDMETHODCALLTYPE GetNetwork(
  225. GUID *NetworkSignature,
  226. IDot11AdHocNetwork **pNetwork) = 0;
  227. };
  228. #ifdef __CRT_UUID_DECL
  229. __CRT_UUID_DECL(IDot11AdHocManager, 0x8f10cc26, 0xcf0d, 0x42a0, 0xac,0xbe, 0xe2,0xde,0x70,0x07,0x38,0x4d)
  230. #endif
  231. #else
  232. typedef struct IDot11AdHocManagerVtbl {
  233. BEGIN_INTERFACE
  234. /*** IUnknown methods ***/
  235. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  236. IDot11AdHocManager *This,
  237. REFIID riid,
  238. void **ppvObject);
  239. ULONG (STDMETHODCALLTYPE *AddRef)(
  240. IDot11AdHocManager *This);
  241. ULONG (STDMETHODCALLTYPE *Release)(
  242. IDot11AdHocManager *This);
  243. /*** IDot11AdHocManager methods ***/
  244. HRESULT (STDMETHODCALLTYPE *CreateNetwork)(
  245. IDot11AdHocManager *This,
  246. LPCWSTR Name,
  247. LPCWSTR Password,
  248. LONG GeographicalId,
  249. IDot11AdHocInterface *pInterface,
  250. IDot11AdHocSecuritySettings *pSecurity,
  251. GUID *pContextGuid,
  252. IDot11AdHocNetwork **pIAdHoc);
  253. HRESULT (STDMETHODCALLTYPE *CommitCreatedNetwork)(
  254. IDot11AdHocManager *This,
  255. IDot11AdHocNetwork *pIAdHoc,
  256. BOOLEAN fSaveProfile,
  257. BOOLEAN fMakeSavedProfileUserSpecific);
  258. HRESULT (STDMETHODCALLTYPE *GetIEnumDot11AdHocNetworks)(
  259. IDot11AdHocManager *This,
  260. GUID *pContextGuid,
  261. IEnumDot11AdHocNetworks **ppEnum);
  262. HRESULT (STDMETHODCALLTYPE *GetIEnumDot11AdHocInterfaces)(
  263. IDot11AdHocManager *This,
  264. IEnumDot11AdHocInterfaces **ppEnum);
  265. HRESULT (STDMETHODCALLTYPE *GetNetwork)(
  266. IDot11AdHocManager *This,
  267. GUID *NetworkSignature,
  268. IDot11AdHocNetwork **pNetwork);
  269. END_INTERFACE
  270. } IDot11AdHocManagerVtbl;
  271. interface IDot11AdHocManager {
  272. CONST_VTBL IDot11AdHocManagerVtbl* lpVtbl;
  273. };
  274. #ifdef COBJMACROS
  275. #ifndef WIDL_C_INLINE_WRAPPERS
  276. /*** IUnknown methods ***/
  277. #define IDot11AdHocManager_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  278. #define IDot11AdHocManager_AddRef(This) (This)->lpVtbl->AddRef(This)
  279. #define IDot11AdHocManager_Release(This) (This)->lpVtbl->Release(This)
  280. /*** IDot11AdHocManager methods ***/
  281. #define IDot11AdHocManager_CreateNetwork(This,Name,Password,GeographicalId,pInterface,pSecurity,pContextGuid,pIAdHoc) (This)->lpVtbl->CreateNetwork(This,Name,Password,GeographicalId,pInterface,pSecurity,pContextGuid,pIAdHoc)
  282. #define IDot11AdHocManager_CommitCreatedNetwork(This,pIAdHoc,fSaveProfile,fMakeSavedProfileUserSpecific) (This)->lpVtbl->CommitCreatedNetwork(This,pIAdHoc,fSaveProfile,fMakeSavedProfileUserSpecific)
  283. #define IDot11AdHocManager_GetIEnumDot11AdHocNetworks(This,pContextGuid,ppEnum) (This)->lpVtbl->GetIEnumDot11AdHocNetworks(This,pContextGuid,ppEnum)
  284. #define IDot11AdHocManager_GetIEnumDot11AdHocInterfaces(This,ppEnum) (This)->lpVtbl->GetIEnumDot11AdHocInterfaces(This,ppEnum)
  285. #define IDot11AdHocManager_GetNetwork(This,NetworkSignature,pNetwork) (This)->lpVtbl->GetNetwork(This,NetworkSignature,pNetwork)
  286. #else
  287. /*** IUnknown methods ***/
  288. static FORCEINLINE HRESULT IDot11AdHocManager_QueryInterface(IDot11AdHocManager* This,REFIID riid,void **ppvObject) {
  289. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  290. }
  291. static FORCEINLINE ULONG IDot11AdHocManager_AddRef(IDot11AdHocManager* This) {
  292. return This->lpVtbl->AddRef(This);
  293. }
  294. static FORCEINLINE ULONG IDot11AdHocManager_Release(IDot11AdHocManager* This) {
  295. return This->lpVtbl->Release(This);
  296. }
  297. /*** IDot11AdHocManager methods ***/
  298. static FORCEINLINE HRESULT IDot11AdHocManager_CreateNetwork(IDot11AdHocManager* This,LPCWSTR Name,LPCWSTR Password,LONG GeographicalId,IDot11AdHocInterface *pInterface,IDot11AdHocSecuritySettings *pSecurity,GUID *pContextGuid,IDot11AdHocNetwork **pIAdHoc) {
  299. return This->lpVtbl->CreateNetwork(This,Name,Password,GeographicalId,pInterface,pSecurity,pContextGuid,pIAdHoc);
  300. }
  301. static FORCEINLINE HRESULT IDot11AdHocManager_CommitCreatedNetwork(IDot11AdHocManager* This,IDot11AdHocNetwork *pIAdHoc,BOOLEAN fSaveProfile,BOOLEAN fMakeSavedProfileUserSpecific) {
  302. return This->lpVtbl->CommitCreatedNetwork(This,pIAdHoc,fSaveProfile,fMakeSavedProfileUserSpecific);
  303. }
  304. static FORCEINLINE HRESULT IDot11AdHocManager_GetIEnumDot11AdHocNetworks(IDot11AdHocManager* This,GUID *pContextGuid,IEnumDot11AdHocNetworks **ppEnum) {
  305. return This->lpVtbl->GetIEnumDot11AdHocNetworks(This,pContextGuid,ppEnum);
  306. }
  307. static FORCEINLINE HRESULT IDot11AdHocManager_GetIEnumDot11AdHocInterfaces(IDot11AdHocManager* This,IEnumDot11AdHocInterfaces **ppEnum) {
  308. return This->lpVtbl->GetIEnumDot11AdHocInterfaces(This,ppEnum);
  309. }
  310. static FORCEINLINE HRESULT IDot11AdHocManager_GetNetwork(IDot11AdHocManager* This,GUID *NetworkSignature,IDot11AdHocNetwork **pNetwork) {
  311. return This->lpVtbl->GetNetwork(This,NetworkSignature,pNetwork);
  312. }
  313. #endif
  314. #endif
  315. #endif
  316. #endif /* __IDot11AdHocManager_INTERFACE_DEFINED__ */
  317. /*****************************************************************************
  318. * IDot11AdHocManagerNotificationSink interface
  319. */
  320. #ifndef __IDot11AdHocManagerNotificationSink_INTERFACE_DEFINED__
  321. #define __IDot11AdHocManagerNotificationSink_INTERFACE_DEFINED__
  322. DEFINE_GUID(IID_IDot11AdHocManagerNotificationSink, 0x8f10cc27, 0xcf0d, 0x42a0, 0xac,0xbe, 0xe2,0xde,0x70,0x07,0x38,0x4d);
  323. #if defined(__cplusplus) && !defined(CINTERFACE)
  324. MIDL_INTERFACE("8f10cc27-cf0d-42a0-acbe-e2de7007384d")
  325. IDot11AdHocManagerNotificationSink : public IUnknown
  326. {
  327. virtual HRESULT STDMETHODCALLTYPE OnNetworkAdd(
  328. IDot11AdHocNetwork *pIAdHocNetwork) = 0;
  329. virtual HRESULT STDMETHODCALLTYPE OnNetworkRemove(
  330. GUID *Signature) = 0;
  331. virtual HRESULT STDMETHODCALLTYPE OnInterfaceAdd(
  332. IDot11AdHocInterface *pIAdHocInterface) = 0;
  333. virtual HRESULT STDMETHODCALLTYPE OnInterfaceRemove(
  334. GUID *Signature) = 0;
  335. };
  336. #ifdef __CRT_UUID_DECL
  337. __CRT_UUID_DECL(IDot11AdHocManagerNotificationSink, 0x8f10cc27, 0xcf0d, 0x42a0, 0xac,0xbe, 0xe2,0xde,0x70,0x07,0x38,0x4d)
  338. #endif
  339. #else
  340. typedef struct IDot11AdHocManagerNotificationSinkVtbl {
  341. BEGIN_INTERFACE
  342. /*** IUnknown methods ***/
  343. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  344. IDot11AdHocManagerNotificationSink *This,
  345. REFIID riid,
  346. void **ppvObject);
  347. ULONG (STDMETHODCALLTYPE *AddRef)(
  348. IDot11AdHocManagerNotificationSink *This);
  349. ULONG (STDMETHODCALLTYPE *Release)(
  350. IDot11AdHocManagerNotificationSink *This);
  351. /*** IDot11AdHocManagerNotificationSink methods ***/
  352. HRESULT (STDMETHODCALLTYPE *OnNetworkAdd)(
  353. IDot11AdHocManagerNotificationSink *This,
  354. IDot11AdHocNetwork *pIAdHocNetwork);
  355. HRESULT (STDMETHODCALLTYPE *OnNetworkRemove)(
  356. IDot11AdHocManagerNotificationSink *This,
  357. GUID *Signature);
  358. HRESULT (STDMETHODCALLTYPE *OnInterfaceAdd)(
  359. IDot11AdHocManagerNotificationSink *This,
  360. IDot11AdHocInterface *pIAdHocInterface);
  361. HRESULT (STDMETHODCALLTYPE *OnInterfaceRemove)(
  362. IDot11AdHocManagerNotificationSink *This,
  363. GUID *Signature);
  364. END_INTERFACE
  365. } IDot11AdHocManagerNotificationSinkVtbl;
  366. interface IDot11AdHocManagerNotificationSink {
  367. CONST_VTBL IDot11AdHocManagerNotificationSinkVtbl* lpVtbl;
  368. };
  369. #ifdef COBJMACROS
  370. #ifndef WIDL_C_INLINE_WRAPPERS
  371. /*** IUnknown methods ***/
  372. #define IDot11AdHocManagerNotificationSink_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  373. #define IDot11AdHocManagerNotificationSink_AddRef(This) (This)->lpVtbl->AddRef(This)
  374. #define IDot11AdHocManagerNotificationSink_Release(This) (This)->lpVtbl->Release(This)
  375. /*** IDot11AdHocManagerNotificationSink methods ***/
  376. #define IDot11AdHocManagerNotificationSink_OnNetworkAdd(This,pIAdHocNetwork) (This)->lpVtbl->OnNetworkAdd(This,pIAdHocNetwork)
  377. #define IDot11AdHocManagerNotificationSink_OnNetworkRemove(This,Signature) (This)->lpVtbl->OnNetworkRemove(This,Signature)
  378. #define IDot11AdHocManagerNotificationSink_OnInterfaceAdd(This,pIAdHocInterface) (This)->lpVtbl->OnInterfaceAdd(This,pIAdHocInterface)
  379. #define IDot11AdHocManagerNotificationSink_OnInterfaceRemove(This,Signature) (This)->lpVtbl->OnInterfaceRemove(This,Signature)
  380. #else
  381. /*** IUnknown methods ***/
  382. static FORCEINLINE HRESULT IDot11AdHocManagerNotificationSink_QueryInterface(IDot11AdHocManagerNotificationSink* This,REFIID riid,void **ppvObject) {
  383. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  384. }
  385. static FORCEINLINE ULONG IDot11AdHocManagerNotificationSink_AddRef(IDot11AdHocManagerNotificationSink* This) {
  386. return This->lpVtbl->AddRef(This);
  387. }
  388. static FORCEINLINE ULONG IDot11AdHocManagerNotificationSink_Release(IDot11AdHocManagerNotificationSink* This) {
  389. return This->lpVtbl->Release(This);
  390. }
  391. /*** IDot11AdHocManagerNotificationSink methods ***/
  392. static FORCEINLINE HRESULT IDot11AdHocManagerNotificationSink_OnNetworkAdd(IDot11AdHocManagerNotificationSink* This,IDot11AdHocNetwork *pIAdHocNetwork) {
  393. return This->lpVtbl->OnNetworkAdd(This,pIAdHocNetwork);
  394. }
  395. static FORCEINLINE HRESULT IDot11AdHocManagerNotificationSink_OnNetworkRemove(IDot11AdHocManagerNotificationSink* This,GUID *Signature) {
  396. return This->lpVtbl->OnNetworkRemove(This,Signature);
  397. }
  398. static FORCEINLINE HRESULT IDot11AdHocManagerNotificationSink_OnInterfaceAdd(IDot11AdHocManagerNotificationSink* This,IDot11AdHocInterface *pIAdHocInterface) {
  399. return This->lpVtbl->OnInterfaceAdd(This,pIAdHocInterface);
  400. }
  401. static FORCEINLINE HRESULT IDot11AdHocManagerNotificationSink_OnInterfaceRemove(IDot11AdHocManagerNotificationSink* This,GUID *Signature) {
  402. return This->lpVtbl->OnInterfaceRemove(This,Signature);
  403. }
  404. #endif
  405. #endif
  406. #endif
  407. #endif /* __IDot11AdHocManagerNotificationSink_INTERFACE_DEFINED__ */
  408. /*****************************************************************************
  409. * IEnumDot11AdHocNetworks interface
  410. */
  411. #ifndef __IEnumDot11AdHocNetworks_INTERFACE_DEFINED__
  412. #define __IEnumDot11AdHocNetworks_INTERFACE_DEFINED__
  413. DEFINE_GUID(IID_IEnumDot11AdHocNetworks, 0x8f10cc28, 0xcf0d, 0x42a0, 0xac,0xbe, 0xe2,0xde,0x70,0x07,0x38,0x4d);
  414. #if defined(__cplusplus) && !defined(CINTERFACE)
  415. MIDL_INTERFACE("8f10cc28-cf0d-42a0-acbe-e2de7007384d")
  416. IEnumDot11AdHocNetworks : public IUnknown
  417. {
  418. virtual HRESULT STDMETHODCALLTYPE Next(
  419. ULONG cElt,
  420. IDot11AdHocNetwork **rgElt,
  421. ULONG *pcEltFetched) = 0;
  422. virtual HRESULT STDMETHODCALLTYPE Skip(
  423. ULONG cElt) = 0;
  424. virtual HRESULT STDMETHODCALLTYPE Reset(
  425. ) = 0;
  426. virtual HRESULT STDMETHODCALLTYPE Clone(
  427. IEnumDot11AdHocNetworks **ppEnum) = 0;
  428. };
  429. #ifdef __CRT_UUID_DECL
  430. __CRT_UUID_DECL(IEnumDot11AdHocNetworks, 0x8f10cc28, 0xcf0d, 0x42a0, 0xac,0xbe, 0xe2,0xde,0x70,0x07,0x38,0x4d)
  431. #endif
  432. #else
  433. typedef struct IEnumDot11AdHocNetworksVtbl {
  434. BEGIN_INTERFACE
  435. /*** IUnknown methods ***/
  436. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  437. IEnumDot11AdHocNetworks *This,
  438. REFIID riid,
  439. void **ppvObject);
  440. ULONG (STDMETHODCALLTYPE *AddRef)(
  441. IEnumDot11AdHocNetworks *This);
  442. ULONG (STDMETHODCALLTYPE *Release)(
  443. IEnumDot11AdHocNetworks *This);
  444. /*** IEnumDot11AdHocNetworks methods ***/
  445. HRESULT (STDMETHODCALLTYPE *Next)(
  446. IEnumDot11AdHocNetworks *This,
  447. ULONG cElt,
  448. IDot11AdHocNetwork **rgElt,
  449. ULONG *pcEltFetched);
  450. HRESULT (STDMETHODCALLTYPE *Skip)(
  451. IEnumDot11AdHocNetworks *This,
  452. ULONG cElt);
  453. HRESULT (STDMETHODCALLTYPE *Reset)(
  454. IEnumDot11AdHocNetworks *This);
  455. HRESULT (STDMETHODCALLTYPE *Clone)(
  456. IEnumDot11AdHocNetworks *This,
  457. IEnumDot11AdHocNetworks **ppEnum);
  458. END_INTERFACE
  459. } IEnumDot11AdHocNetworksVtbl;
  460. interface IEnumDot11AdHocNetworks {
  461. CONST_VTBL IEnumDot11AdHocNetworksVtbl* lpVtbl;
  462. };
  463. #ifdef COBJMACROS
  464. #ifndef WIDL_C_INLINE_WRAPPERS
  465. /*** IUnknown methods ***/
  466. #define IEnumDot11AdHocNetworks_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  467. #define IEnumDot11AdHocNetworks_AddRef(This) (This)->lpVtbl->AddRef(This)
  468. #define IEnumDot11AdHocNetworks_Release(This) (This)->lpVtbl->Release(This)
  469. /*** IEnumDot11AdHocNetworks methods ***/
  470. #define IEnumDot11AdHocNetworks_Next(This,cElt,rgElt,pcEltFetched) (This)->lpVtbl->Next(This,cElt,rgElt,pcEltFetched)
  471. #define IEnumDot11AdHocNetworks_Skip(This,cElt) (This)->lpVtbl->Skip(This,cElt)
  472. #define IEnumDot11AdHocNetworks_Reset(This) (This)->lpVtbl->Reset(This)
  473. #define IEnumDot11AdHocNetworks_Clone(This,ppEnum) (This)->lpVtbl->Clone(This,ppEnum)
  474. #else
  475. /*** IUnknown methods ***/
  476. static FORCEINLINE HRESULT IEnumDot11AdHocNetworks_QueryInterface(IEnumDot11AdHocNetworks* This,REFIID riid,void **ppvObject) {
  477. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  478. }
  479. static FORCEINLINE ULONG IEnumDot11AdHocNetworks_AddRef(IEnumDot11AdHocNetworks* This) {
  480. return This->lpVtbl->AddRef(This);
  481. }
  482. static FORCEINLINE ULONG IEnumDot11AdHocNetworks_Release(IEnumDot11AdHocNetworks* This) {
  483. return This->lpVtbl->Release(This);
  484. }
  485. /*** IEnumDot11AdHocNetworks methods ***/
  486. static FORCEINLINE HRESULT IEnumDot11AdHocNetworks_Next(IEnumDot11AdHocNetworks* This,ULONG cElt,IDot11AdHocNetwork **rgElt,ULONG *pcEltFetched) {
  487. return This->lpVtbl->Next(This,cElt,rgElt,pcEltFetched);
  488. }
  489. static FORCEINLINE HRESULT IEnumDot11AdHocNetworks_Skip(IEnumDot11AdHocNetworks* This,ULONG cElt) {
  490. return This->lpVtbl->Skip(This,cElt);
  491. }
  492. static FORCEINLINE HRESULT IEnumDot11AdHocNetworks_Reset(IEnumDot11AdHocNetworks* This) {
  493. return This->lpVtbl->Reset(This);
  494. }
  495. static FORCEINLINE HRESULT IEnumDot11AdHocNetworks_Clone(IEnumDot11AdHocNetworks* This,IEnumDot11AdHocNetworks **ppEnum) {
  496. return This->lpVtbl->Clone(This,ppEnum);
  497. }
  498. #endif
  499. #endif
  500. #endif
  501. #endif /* __IEnumDot11AdHocNetworks_INTERFACE_DEFINED__ */
  502. /*****************************************************************************
  503. * IDot11AdHocNetwork interface
  504. */
  505. #ifndef __IDot11AdHocNetwork_INTERFACE_DEFINED__
  506. #define __IDot11AdHocNetwork_INTERFACE_DEFINED__
  507. DEFINE_GUID(IID_IDot11AdHocNetwork, 0x8f10cc29, 0xcf0d, 0x42a0, 0xac,0xbe, 0xe2,0xde,0x70,0x07,0x38,0x4d);
  508. #if defined(__cplusplus) && !defined(CINTERFACE)
  509. MIDL_INTERFACE("8f10cc29-cf0d-42a0-acbe-e2de7007384d")
  510. IDot11AdHocNetwork : public IUnknown
  511. {
  512. virtual HRESULT STDMETHODCALLTYPE GetStatus(
  513. DOT11_ADHOC_NETWORK_CONNECTION_STATUS *eStatus) = 0;
  514. virtual HRESULT STDMETHODCALLTYPE GetSSID(
  515. LPWSTR *ppszwSSID) = 0;
  516. virtual HRESULT STDMETHODCALLTYPE HasProfile(
  517. BOOLEAN *pf11d) = 0;
  518. virtual HRESULT STDMETHODCALLTYPE GetProfileName(
  519. LPWSTR *ppszwProfileName) = 0;
  520. virtual HRESULT STDMETHODCALLTYPE DeleteProfile(
  521. ) = 0;
  522. virtual HRESULT STDMETHODCALLTYPE GetSignalQuality(
  523. ULONG *puStrengthValue,
  524. ULONG *puStrengthMax) = 0;
  525. virtual HRESULT STDMETHODCALLTYPE GetSecuritySetting(
  526. IDot11AdHocSecuritySettings **pAdHocSecuritySetting) = 0;
  527. virtual HRESULT STDMETHODCALLTYPE GetContextGuid(
  528. GUID *pContextGuid) = 0;
  529. virtual HRESULT STDMETHODCALLTYPE GetSignature(
  530. GUID *pSignature) = 0;
  531. virtual HRESULT STDMETHODCALLTYPE GetInterface(
  532. IDot11AdHocInterface **pAdHocInterface) = 0;
  533. virtual HRESULT STDMETHODCALLTYPE Connect(
  534. LPCWSTR Passphrase,
  535. LONG GeographicalId,
  536. BOOLEAN fSaveProfile,
  537. BOOLEAN fMakeSavedProfileUserSpecific) = 0;
  538. virtual HRESULT STDMETHODCALLTYPE Disconnect(
  539. ) = 0;
  540. };
  541. #ifdef __CRT_UUID_DECL
  542. __CRT_UUID_DECL(IDot11AdHocNetwork, 0x8f10cc29, 0xcf0d, 0x42a0, 0xac,0xbe, 0xe2,0xde,0x70,0x07,0x38,0x4d)
  543. #endif
  544. #else
  545. typedef struct IDot11AdHocNetworkVtbl {
  546. BEGIN_INTERFACE
  547. /*** IUnknown methods ***/
  548. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  549. IDot11AdHocNetwork *This,
  550. REFIID riid,
  551. void **ppvObject);
  552. ULONG (STDMETHODCALLTYPE *AddRef)(
  553. IDot11AdHocNetwork *This);
  554. ULONG (STDMETHODCALLTYPE *Release)(
  555. IDot11AdHocNetwork *This);
  556. /*** IDot11AdHocNetwork methods ***/
  557. HRESULT (STDMETHODCALLTYPE *GetStatus)(
  558. IDot11AdHocNetwork *This,
  559. DOT11_ADHOC_NETWORK_CONNECTION_STATUS *eStatus);
  560. HRESULT (STDMETHODCALLTYPE *GetSSID)(
  561. IDot11AdHocNetwork *This,
  562. LPWSTR *ppszwSSID);
  563. HRESULT (STDMETHODCALLTYPE *HasProfile)(
  564. IDot11AdHocNetwork *This,
  565. BOOLEAN *pf11d);
  566. HRESULT (STDMETHODCALLTYPE *GetProfileName)(
  567. IDot11AdHocNetwork *This,
  568. LPWSTR *ppszwProfileName);
  569. HRESULT (STDMETHODCALLTYPE *DeleteProfile)(
  570. IDot11AdHocNetwork *This);
  571. HRESULT (STDMETHODCALLTYPE *GetSignalQuality)(
  572. IDot11AdHocNetwork *This,
  573. ULONG *puStrengthValue,
  574. ULONG *puStrengthMax);
  575. HRESULT (STDMETHODCALLTYPE *GetSecuritySetting)(
  576. IDot11AdHocNetwork *This,
  577. IDot11AdHocSecuritySettings **pAdHocSecuritySetting);
  578. HRESULT (STDMETHODCALLTYPE *GetContextGuid)(
  579. IDot11AdHocNetwork *This,
  580. GUID *pContextGuid);
  581. HRESULT (STDMETHODCALLTYPE *GetSignature)(
  582. IDot11AdHocNetwork *This,
  583. GUID *pSignature);
  584. HRESULT (STDMETHODCALLTYPE *GetInterface)(
  585. IDot11AdHocNetwork *This,
  586. IDot11AdHocInterface **pAdHocInterface);
  587. HRESULT (STDMETHODCALLTYPE *Connect)(
  588. IDot11AdHocNetwork *This,
  589. LPCWSTR Passphrase,
  590. LONG GeographicalId,
  591. BOOLEAN fSaveProfile,
  592. BOOLEAN fMakeSavedProfileUserSpecific);
  593. HRESULT (STDMETHODCALLTYPE *Disconnect)(
  594. IDot11AdHocNetwork *This);
  595. END_INTERFACE
  596. } IDot11AdHocNetworkVtbl;
  597. interface IDot11AdHocNetwork {
  598. CONST_VTBL IDot11AdHocNetworkVtbl* lpVtbl;
  599. };
  600. #ifdef COBJMACROS
  601. #ifndef WIDL_C_INLINE_WRAPPERS
  602. /*** IUnknown methods ***/
  603. #define IDot11AdHocNetwork_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  604. #define IDot11AdHocNetwork_AddRef(This) (This)->lpVtbl->AddRef(This)
  605. #define IDot11AdHocNetwork_Release(This) (This)->lpVtbl->Release(This)
  606. /*** IDot11AdHocNetwork methods ***/
  607. #define IDot11AdHocNetwork_GetStatus(This,eStatus) (This)->lpVtbl->GetStatus(This,eStatus)
  608. #define IDot11AdHocNetwork_GetSSID(This,ppszwSSID) (This)->lpVtbl->GetSSID(This,ppszwSSID)
  609. #define IDot11AdHocNetwork_HasProfile(This,pf11d) (This)->lpVtbl->HasProfile(This,pf11d)
  610. #define IDot11AdHocNetwork_GetProfileName(This,ppszwProfileName) (This)->lpVtbl->GetProfileName(This,ppszwProfileName)
  611. #define IDot11AdHocNetwork_DeleteProfile(This) (This)->lpVtbl->DeleteProfile(This)
  612. #define IDot11AdHocNetwork_GetSignalQuality(This,puStrengthValue,puStrengthMax) (This)->lpVtbl->GetSignalQuality(This,puStrengthValue,puStrengthMax)
  613. #define IDot11AdHocNetwork_GetSecuritySetting(This,pAdHocSecuritySetting) (This)->lpVtbl->GetSecuritySetting(This,pAdHocSecuritySetting)
  614. #define IDot11AdHocNetwork_GetContextGuid(This,pContextGuid) (This)->lpVtbl->GetContextGuid(This,pContextGuid)
  615. #define IDot11AdHocNetwork_GetSignature(This,pSignature) (This)->lpVtbl->GetSignature(This,pSignature)
  616. #define IDot11AdHocNetwork_GetInterface(This,pAdHocInterface) (This)->lpVtbl->GetInterface(This,pAdHocInterface)
  617. #define IDot11AdHocNetwork_Connect(This,Passphrase,GeographicalId,fSaveProfile,fMakeSavedProfileUserSpecific) (This)->lpVtbl->Connect(This,Passphrase,GeographicalId,fSaveProfile,fMakeSavedProfileUserSpecific)
  618. #define IDot11AdHocNetwork_Disconnect(This) (This)->lpVtbl->Disconnect(This)
  619. #else
  620. /*** IUnknown methods ***/
  621. static FORCEINLINE HRESULT IDot11AdHocNetwork_QueryInterface(IDot11AdHocNetwork* This,REFIID riid,void **ppvObject) {
  622. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  623. }
  624. static FORCEINLINE ULONG IDot11AdHocNetwork_AddRef(IDot11AdHocNetwork* This) {
  625. return This->lpVtbl->AddRef(This);
  626. }
  627. static FORCEINLINE ULONG IDot11AdHocNetwork_Release(IDot11AdHocNetwork* This) {
  628. return This->lpVtbl->Release(This);
  629. }
  630. /*** IDot11AdHocNetwork methods ***/
  631. static FORCEINLINE HRESULT IDot11AdHocNetwork_GetStatus(IDot11AdHocNetwork* This,DOT11_ADHOC_NETWORK_CONNECTION_STATUS *eStatus) {
  632. return This->lpVtbl->GetStatus(This,eStatus);
  633. }
  634. static FORCEINLINE HRESULT IDot11AdHocNetwork_GetSSID(IDot11AdHocNetwork* This,LPWSTR *ppszwSSID) {
  635. return This->lpVtbl->GetSSID(This,ppszwSSID);
  636. }
  637. static FORCEINLINE HRESULT IDot11AdHocNetwork_HasProfile(IDot11AdHocNetwork* This,BOOLEAN *pf11d) {
  638. return This->lpVtbl->HasProfile(This,pf11d);
  639. }
  640. static FORCEINLINE HRESULT IDot11AdHocNetwork_GetProfileName(IDot11AdHocNetwork* This,LPWSTR *ppszwProfileName) {
  641. return This->lpVtbl->GetProfileName(This,ppszwProfileName);
  642. }
  643. static FORCEINLINE HRESULT IDot11AdHocNetwork_DeleteProfile(IDot11AdHocNetwork* This) {
  644. return This->lpVtbl->DeleteProfile(This);
  645. }
  646. static FORCEINLINE HRESULT IDot11AdHocNetwork_GetSignalQuality(IDot11AdHocNetwork* This,ULONG *puStrengthValue,ULONG *puStrengthMax) {
  647. return This->lpVtbl->GetSignalQuality(This,puStrengthValue,puStrengthMax);
  648. }
  649. static FORCEINLINE HRESULT IDot11AdHocNetwork_GetSecuritySetting(IDot11AdHocNetwork* This,IDot11AdHocSecuritySettings **pAdHocSecuritySetting) {
  650. return This->lpVtbl->GetSecuritySetting(This,pAdHocSecuritySetting);
  651. }
  652. static FORCEINLINE HRESULT IDot11AdHocNetwork_GetContextGuid(IDot11AdHocNetwork* This,GUID *pContextGuid) {
  653. return This->lpVtbl->GetContextGuid(This,pContextGuid);
  654. }
  655. static FORCEINLINE HRESULT IDot11AdHocNetwork_GetSignature(IDot11AdHocNetwork* This,GUID *pSignature) {
  656. return This->lpVtbl->GetSignature(This,pSignature);
  657. }
  658. static FORCEINLINE HRESULT IDot11AdHocNetwork_GetInterface(IDot11AdHocNetwork* This,IDot11AdHocInterface **pAdHocInterface) {
  659. return This->lpVtbl->GetInterface(This,pAdHocInterface);
  660. }
  661. static FORCEINLINE HRESULT IDot11AdHocNetwork_Connect(IDot11AdHocNetwork* This,LPCWSTR Passphrase,LONG GeographicalId,BOOLEAN fSaveProfile,BOOLEAN fMakeSavedProfileUserSpecific) {
  662. return This->lpVtbl->Connect(This,Passphrase,GeographicalId,fSaveProfile,fMakeSavedProfileUserSpecific);
  663. }
  664. static FORCEINLINE HRESULT IDot11AdHocNetwork_Disconnect(IDot11AdHocNetwork* This) {
  665. return This->lpVtbl->Disconnect(This);
  666. }
  667. #endif
  668. #endif
  669. #endif
  670. #endif /* __IDot11AdHocNetwork_INTERFACE_DEFINED__ */
  671. /*****************************************************************************
  672. * IDot11AdHocNetworkNotificationSink interface
  673. */
  674. #ifndef __IDot11AdHocNetworkNotificationSink_INTERFACE_DEFINED__
  675. #define __IDot11AdHocNetworkNotificationSink_INTERFACE_DEFINED__
  676. DEFINE_GUID(IID_IDot11AdHocNetworkNotificationSink, 0x8f10cc2a, 0xcf0d, 0x42a0, 0xac,0xbe, 0xe2,0xde,0x70,0x07,0x38,0x4d);
  677. #if defined(__cplusplus) && !defined(CINTERFACE)
  678. MIDL_INTERFACE("8f10cc2a-cf0d-42a0-acbe-e2de7007384d")
  679. IDot11AdHocNetworkNotificationSink : public IUnknown
  680. {
  681. virtual HRESULT STDMETHODCALLTYPE OnStatusChange(
  682. DOT11_ADHOC_NETWORK_CONNECTION_STATUS eStatus) = 0;
  683. virtual HRESULT STDMETHODCALLTYPE OnConnectFail(
  684. DOT11_ADHOC_CONNECT_FAIL_REASON eFailReason) = 0;
  685. };
  686. #ifdef __CRT_UUID_DECL
  687. __CRT_UUID_DECL(IDot11AdHocNetworkNotificationSink, 0x8f10cc2a, 0xcf0d, 0x42a0, 0xac,0xbe, 0xe2,0xde,0x70,0x07,0x38,0x4d)
  688. #endif
  689. #else
  690. typedef struct IDot11AdHocNetworkNotificationSinkVtbl {
  691. BEGIN_INTERFACE
  692. /*** IUnknown methods ***/
  693. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  694. IDot11AdHocNetworkNotificationSink *This,
  695. REFIID riid,
  696. void **ppvObject);
  697. ULONG (STDMETHODCALLTYPE *AddRef)(
  698. IDot11AdHocNetworkNotificationSink *This);
  699. ULONG (STDMETHODCALLTYPE *Release)(
  700. IDot11AdHocNetworkNotificationSink *This);
  701. /*** IDot11AdHocNetworkNotificationSink methods ***/
  702. HRESULT (STDMETHODCALLTYPE *OnStatusChange)(
  703. IDot11AdHocNetworkNotificationSink *This,
  704. DOT11_ADHOC_NETWORK_CONNECTION_STATUS eStatus);
  705. HRESULT (STDMETHODCALLTYPE *OnConnectFail)(
  706. IDot11AdHocNetworkNotificationSink *This,
  707. DOT11_ADHOC_CONNECT_FAIL_REASON eFailReason);
  708. END_INTERFACE
  709. } IDot11AdHocNetworkNotificationSinkVtbl;
  710. interface IDot11AdHocNetworkNotificationSink {
  711. CONST_VTBL IDot11AdHocNetworkNotificationSinkVtbl* lpVtbl;
  712. };
  713. #ifdef COBJMACROS
  714. #ifndef WIDL_C_INLINE_WRAPPERS
  715. /*** IUnknown methods ***/
  716. #define IDot11AdHocNetworkNotificationSink_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  717. #define IDot11AdHocNetworkNotificationSink_AddRef(This) (This)->lpVtbl->AddRef(This)
  718. #define IDot11AdHocNetworkNotificationSink_Release(This) (This)->lpVtbl->Release(This)
  719. /*** IDot11AdHocNetworkNotificationSink methods ***/
  720. #define IDot11AdHocNetworkNotificationSink_OnStatusChange(This,eStatus) (This)->lpVtbl->OnStatusChange(This,eStatus)
  721. #define IDot11AdHocNetworkNotificationSink_OnConnectFail(This,eFailReason) (This)->lpVtbl->OnConnectFail(This,eFailReason)
  722. #else
  723. /*** IUnknown methods ***/
  724. static FORCEINLINE HRESULT IDot11AdHocNetworkNotificationSink_QueryInterface(IDot11AdHocNetworkNotificationSink* This,REFIID riid,void **ppvObject) {
  725. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  726. }
  727. static FORCEINLINE ULONG IDot11AdHocNetworkNotificationSink_AddRef(IDot11AdHocNetworkNotificationSink* This) {
  728. return This->lpVtbl->AddRef(This);
  729. }
  730. static FORCEINLINE ULONG IDot11AdHocNetworkNotificationSink_Release(IDot11AdHocNetworkNotificationSink* This) {
  731. return This->lpVtbl->Release(This);
  732. }
  733. /*** IDot11AdHocNetworkNotificationSink methods ***/
  734. static FORCEINLINE HRESULT IDot11AdHocNetworkNotificationSink_OnStatusChange(IDot11AdHocNetworkNotificationSink* This,DOT11_ADHOC_NETWORK_CONNECTION_STATUS eStatus) {
  735. return This->lpVtbl->OnStatusChange(This,eStatus);
  736. }
  737. static FORCEINLINE HRESULT IDot11AdHocNetworkNotificationSink_OnConnectFail(IDot11AdHocNetworkNotificationSink* This,DOT11_ADHOC_CONNECT_FAIL_REASON eFailReason) {
  738. return This->lpVtbl->OnConnectFail(This,eFailReason);
  739. }
  740. #endif
  741. #endif
  742. #endif
  743. #endif /* __IDot11AdHocNetworkNotificationSink_INTERFACE_DEFINED__ */
  744. /*****************************************************************************
  745. * IDot11AdHocInterface interface
  746. */
  747. #ifndef __IDot11AdHocInterface_INTERFACE_DEFINED__
  748. #define __IDot11AdHocInterface_INTERFACE_DEFINED__
  749. DEFINE_GUID(IID_IDot11AdHocInterface, 0x8f10cc2b, 0xcf0d, 0x42a0, 0xac,0xbe, 0xe2,0xde,0x70,0x07,0x38,0x4d);
  750. #if defined(__cplusplus) && !defined(CINTERFACE)
  751. MIDL_INTERFACE("8f10cc2b-cf0d-42a0-acbe-e2de7007384d")
  752. IDot11AdHocInterface : public IUnknown
  753. {
  754. virtual HRESULT STDMETHODCALLTYPE GetDeviceSignature(
  755. GUID *pSignature) = 0;
  756. virtual HRESULT STDMETHODCALLTYPE GetFriendlyName(
  757. LPWSTR *ppszName) = 0;
  758. virtual HRESULT STDMETHODCALLTYPE IsDot11d(
  759. BOOLEAN *pf11d) = 0;
  760. virtual HRESULT STDMETHODCALLTYPE IsAdHocCapable(
  761. BOOLEAN *pfAdHocCapable) = 0;
  762. virtual HRESULT STDMETHODCALLTYPE IsRadioOn(
  763. BOOLEAN *pfIsRadioOn) = 0;
  764. virtual HRESULT STDMETHODCALLTYPE GetActiveNetwork(
  765. IDot11AdHocNetwork **ppNetwork) = 0;
  766. virtual HRESULT STDMETHODCALLTYPE GetIEnumSecuritySettings(
  767. IEnumDot11AdHocSecuritySettings **ppEnum) = 0;
  768. virtual HRESULT STDMETHODCALLTYPE GetIEnumDot11AdHocNetworks(
  769. GUID *pFilterGuid,
  770. IEnumDot11AdHocNetworks **ppEnum) = 0;
  771. virtual HRESULT STDMETHODCALLTYPE GetStatus(
  772. DOT11_ADHOC_NETWORK_CONNECTION_STATUS *pState) = 0;
  773. };
  774. #ifdef __CRT_UUID_DECL
  775. __CRT_UUID_DECL(IDot11AdHocInterface, 0x8f10cc2b, 0xcf0d, 0x42a0, 0xac,0xbe, 0xe2,0xde,0x70,0x07,0x38,0x4d)
  776. #endif
  777. #else
  778. typedef struct IDot11AdHocInterfaceVtbl {
  779. BEGIN_INTERFACE
  780. /*** IUnknown methods ***/
  781. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  782. IDot11AdHocInterface *This,
  783. REFIID riid,
  784. void **ppvObject);
  785. ULONG (STDMETHODCALLTYPE *AddRef)(
  786. IDot11AdHocInterface *This);
  787. ULONG (STDMETHODCALLTYPE *Release)(
  788. IDot11AdHocInterface *This);
  789. /*** IDot11AdHocInterface methods ***/
  790. HRESULT (STDMETHODCALLTYPE *GetDeviceSignature)(
  791. IDot11AdHocInterface *This,
  792. GUID *pSignature);
  793. HRESULT (STDMETHODCALLTYPE *GetFriendlyName)(
  794. IDot11AdHocInterface *This,
  795. LPWSTR *ppszName);
  796. HRESULT (STDMETHODCALLTYPE *IsDot11d)(
  797. IDot11AdHocInterface *This,
  798. BOOLEAN *pf11d);
  799. HRESULT (STDMETHODCALLTYPE *IsAdHocCapable)(
  800. IDot11AdHocInterface *This,
  801. BOOLEAN *pfAdHocCapable);
  802. HRESULT (STDMETHODCALLTYPE *IsRadioOn)(
  803. IDot11AdHocInterface *This,
  804. BOOLEAN *pfIsRadioOn);
  805. HRESULT (STDMETHODCALLTYPE *GetActiveNetwork)(
  806. IDot11AdHocInterface *This,
  807. IDot11AdHocNetwork **ppNetwork);
  808. HRESULT (STDMETHODCALLTYPE *GetIEnumSecuritySettings)(
  809. IDot11AdHocInterface *This,
  810. IEnumDot11AdHocSecuritySettings **ppEnum);
  811. HRESULT (STDMETHODCALLTYPE *GetIEnumDot11AdHocNetworks)(
  812. IDot11AdHocInterface *This,
  813. GUID *pFilterGuid,
  814. IEnumDot11AdHocNetworks **ppEnum);
  815. HRESULT (STDMETHODCALLTYPE *GetStatus)(
  816. IDot11AdHocInterface *This,
  817. DOT11_ADHOC_NETWORK_CONNECTION_STATUS *pState);
  818. END_INTERFACE
  819. } IDot11AdHocInterfaceVtbl;
  820. interface IDot11AdHocInterface {
  821. CONST_VTBL IDot11AdHocInterfaceVtbl* lpVtbl;
  822. };
  823. #ifdef COBJMACROS
  824. #ifndef WIDL_C_INLINE_WRAPPERS
  825. /*** IUnknown methods ***/
  826. #define IDot11AdHocInterface_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  827. #define IDot11AdHocInterface_AddRef(This) (This)->lpVtbl->AddRef(This)
  828. #define IDot11AdHocInterface_Release(This) (This)->lpVtbl->Release(This)
  829. /*** IDot11AdHocInterface methods ***/
  830. #define IDot11AdHocInterface_GetDeviceSignature(This,pSignature) (This)->lpVtbl->GetDeviceSignature(This,pSignature)
  831. #define IDot11AdHocInterface_GetFriendlyName(This,ppszName) (This)->lpVtbl->GetFriendlyName(This,ppszName)
  832. #define IDot11AdHocInterface_IsDot11d(This,pf11d) (This)->lpVtbl->IsDot11d(This,pf11d)
  833. #define IDot11AdHocInterface_IsAdHocCapable(This,pfAdHocCapable) (This)->lpVtbl->IsAdHocCapable(This,pfAdHocCapable)
  834. #define IDot11AdHocInterface_IsRadioOn(This,pfIsRadioOn) (This)->lpVtbl->IsRadioOn(This,pfIsRadioOn)
  835. #define IDot11AdHocInterface_GetActiveNetwork(This,ppNetwork) (This)->lpVtbl->GetActiveNetwork(This,ppNetwork)
  836. #define IDot11AdHocInterface_GetIEnumSecuritySettings(This,ppEnum) (This)->lpVtbl->GetIEnumSecuritySettings(This,ppEnum)
  837. #define IDot11AdHocInterface_GetIEnumDot11AdHocNetworks(This,pFilterGuid,ppEnum) (This)->lpVtbl->GetIEnumDot11AdHocNetworks(This,pFilterGuid,ppEnum)
  838. #define IDot11AdHocInterface_GetStatus(This,pState) (This)->lpVtbl->GetStatus(This,pState)
  839. #else
  840. /*** IUnknown methods ***/
  841. static FORCEINLINE HRESULT IDot11AdHocInterface_QueryInterface(IDot11AdHocInterface* This,REFIID riid,void **ppvObject) {
  842. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  843. }
  844. static FORCEINLINE ULONG IDot11AdHocInterface_AddRef(IDot11AdHocInterface* This) {
  845. return This->lpVtbl->AddRef(This);
  846. }
  847. static FORCEINLINE ULONG IDot11AdHocInterface_Release(IDot11AdHocInterface* This) {
  848. return This->lpVtbl->Release(This);
  849. }
  850. /*** IDot11AdHocInterface methods ***/
  851. static FORCEINLINE HRESULT IDot11AdHocInterface_GetDeviceSignature(IDot11AdHocInterface* This,GUID *pSignature) {
  852. return This->lpVtbl->GetDeviceSignature(This,pSignature);
  853. }
  854. static FORCEINLINE HRESULT IDot11AdHocInterface_GetFriendlyName(IDot11AdHocInterface* This,LPWSTR *ppszName) {
  855. return This->lpVtbl->GetFriendlyName(This,ppszName);
  856. }
  857. static FORCEINLINE HRESULT IDot11AdHocInterface_IsDot11d(IDot11AdHocInterface* This,BOOLEAN *pf11d) {
  858. return This->lpVtbl->IsDot11d(This,pf11d);
  859. }
  860. static FORCEINLINE HRESULT IDot11AdHocInterface_IsAdHocCapable(IDot11AdHocInterface* This,BOOLEAN *pfAdHocCapable) {
  861. return This->lpVtbl->IsAdHocCapable(This,pfAdHocCapable);
  862. }
  863. static FORCEINLINE HRESULT IDot11AdHocInterface_IsRadioOn(IDot11AdHocInterface* This,BOOLEAN *pfIsRadioOn) {
  864. return This->lpVtbl->IsRadioOn(This,pfIsRadioOn);
  865. }
  866. static FORCEINLINE HRESULT IDot11AdHocInterface_GetActiveNetwork(IDot11AdHocInterface* This,IDot11AdHocNetwork **ppNetwork) {
  867. return This->lpVtbl->GetActiveNetwork(This,ppNetwork);
  868. }
  869. static FORCEINLINE HRESULT IDot11AdHocInterface_GetIEnumSecuritySettings(IDot11AdHocInterface* This,IEnumDot11AdHocSecuritySettings **ppEnum) {
  870. return This->lpVtbl->GetIEnumSecuritySettings(This,ppEnum);
  871. }
  872. static FORCEINLINE HRESULT IDot11AdHocInterface_GetIEnumDot11AdHocNetworks(IDot11AdHocInterface* This,GUID *pFilterGuid,IEnumDot11AdHocNetworks **ppEnum) {
  873. return This->lpVtbl->GetIEnumDot11AdHocNetworks(This,pFilterGuid,ppEnum);
  874. }
  875. static FORCEINLINE HRESULT IDot11AdHocInterface_GetStatus(IDot11AdHocInterface* This,DOT11_ADHOC_NETWORK_CONNECTION_STATUS *pState) {
  876. return This->lpVtbl->GetStatus(This,pState);
  877. }
  878. #endif
  879. #endif
  880. #endif
  881. #endif /* __IDot11AdHocInterface_INTERFACE_DEFINED__ */
  882. /*****************************************************************************
  883. * IEnumDot11AdHocInterfaces interface
  884. */
  885. #ifndef __IEnumDot11AdHocInterfaces_INTERFACE_DEFINED__
  886. #define __IEnumDot11AdHocInterfaces_INTERFACE_DEFINED__
  887. DEFINE_GUID(IID_IEnumDot11AdHocInterfaces, 0x8f10cc2c, 0xcf0d, 0x42a0, 0xac,0xbe, 0xe2,0xde,0x70,0x07,0x38,0x4d);
  888. #if defined(__cplusplus) && !defined(CINTERFACE)
  889. MIDL_INTERFACE("8f10cc2c-cf0d-42a0-acbe-e2de7007384d")
  890. IEnumDot11AdHocInterfaces : public IUnknown
  891. {
  892. virtual HRESULT STDMETHODCALLTYPE Next(
  893. ULONG cElt,
  894. IDot11AdHocInterface **rgElt,
  895. ULONG *pcEltFetched) = 0;
  896. virtual HRESULT STDMETHODCALLTYPE Skip(
  897. ULONG cElt) = 0;
  898. virtual HRESULT STDMETHODCALLTYPE Reset(
  899. ) = 0;
  900. virtual HRESULT STDMETHODCALLTYPE Clone(
  901. IEnumDot11AdHocInterfaces **ppEnum) = 0;
  902. };
  903. #ifdef __CRT_UUID_DECL
  904. __CRT_UUID_DECL(IEnumDot11AdHocInterfaces, 0x8f10cc2c, 0xcf0d, 0x42a0, 0xac,0xbe, 0xe2,0xde,0x70,0x07,0x38,0x4d)
  905. #endif
  906. #else
  907. typedef struct IEnumDot11AdHocInterfacesVtbl {
  908. BEGIN_INTERFACE
  909. /*** IUnknown methods ***/
  910. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  911. IEnumDot11AdHocInterfaces *This,
  912. REFIID riid,
  913. void **ppvObject);
  914. ULONG (STDMETHODCALLTYPE *AddRef)(
  915. IEnumDot11AdHocInterfaces *This);
  916. ULONG (STDMETHODCALLTYPE *Release)(
  917. IEnumDot11AdHocInterfaces *This);
  918. /*** IEnumDot11AdHocInterfaces methods ***/
  919. HRESULT (STDMETHODCALLTYPE *Next)(
  920. IEnumDot11AdHocInterfaces *This,
  921. ULONG cElt,
  922. IDot11AdHocInterface **rgElt,
  923. ULONG *pcEltFetched);
  924. HRESULT (STDMETHODCALLTYPE *Skip)(
  925. IEnumDot11AdHocInterfaces *This,
  926. ULONG cElt);
  927. HRESULT (STDMETHODCALLTYPE *Reset)(
  928. IEnumDot11AdHocInterfaces *This);
  929. HRESULT (STDMETHODCALLTYPE *Clone)(
  930. IEnumDot11AdHocInterfaces *This,
  931. IEnumDot11AdHocInterfaces **ppEnum);
  932. END_INTERFACE
  933. } IEnumDot11AdHocInterfacesVtbl;
  934. interface IEnumDot11AdHocInterfaces {
  935. CONST_VTBL IEnumDot11AdHocInterfacesVtbl* lpVtbl;
  936. };
  937. #ifdef COBJMACROS
  938. #ifndef WIDL_C_INLINE_WRAPPERS
  939. /*** IUnknown methods ***/
  940. #define IEnumDot11AdHocInterfaces_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  941. #define IEnumDot11AdHocInterfaces_AddRef(This) (This)->lpVtbl->AddRef(This)
  942. #define IEnumDot11AdHocInterfaces_Release(This) (This)->lpVtbl->Release(This)
  943. /*** IEnumDot11AdHocInterfaces methods ***/
  944. #define IEnumDot11AdHocInterfaces_Next(This,cElt,rgElt,pcEltFetched) (This)->lpVtbl->Next(This,cElt,rgElt,pcEltFetched)
  945. #define IEnumDot11AdHocInterfaces_Skip(This,cElt) (This)->lpVtbl->Skip(This,cElt)
  946. #define IEnumDot11AdHocInterfaces_Reset(This) (This)->lpVtbl->Reset(This)
  947. #define IEnumDot11AdHocInterfaces_Clone(This,ppEnum) (This)->lpVtbl->Clone(This,ppEnum)
  948. #else
  949. /*** IUnknown methods ***/
  950. static FORCEINLINE HRESULT IEnumDot11AdHocInterfaces_QueryInterface(IEnumDot11AdHocInterfaces* This,REFIID riid,void **ppvObject) {
  951. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  952. }
  953. static FORCEINLINE ULONG IEnumDot11AdHocInterfaces_AddRef(IEnumDot11AdHocInterfaces* This) {
  954. return This->lpVtbl->AddRef(This);
  955. }
  956. static FORCEINLINE ULONG IEnumDot11AdHocInterfaces_Release(IEnumDot11AdHocInterfaces* This) {
  957. return This->lpVtbl->Release(This);
  958. }
  959. /*** IEnumDot11AdHocInterfaces methods ***/
  960. static FORCEINLINE HRESULT IEnumDot11AdHocInterfaces_Next(IEnumDot11AdHocInterfaces* This,ULONG cElt,IDot11AdHocInterface **rgElt,ULONG *pcEltFetched) {
  961. return This->lpVtbl->Next(This,cElt,rgElt,pcEltFetched);
  962. }
  963. static FORCEINLINE HRESULT IEnumDot11AdHocInterfaces_Skip(IEnumDot11AdHocInterfaces* This,ULONG cElt) {
  964. return This->lpVtbl->Skip(This,cElt);
  965. }
  966. static FORCEINLINE HRESULT IEnumDot11AdHocInterfaces_Reset(IEnumDot11AdHocInterfaces* This) {
  967. return This->lpVtbl->Reset(This);
  968. }
  969. static FORCEINLINE HRESULT IEnumDot11AdHocInterfaces_Clone(IEnumDot11AdHocInterfaces* This,IEnumDot11AdHocInterfaces **ppEnum) {
  970. return This->lpVtbl->Clone(This,ppEnum);
  971. }
  972. #endif
  973. #endif
  974. #endif
  975. #endif /* __IEnumDot11AdHocInterfaces_INTERFACE_DEFINED__ */
  976. /*****************************************************************************
  977. * IEnumDot11AdHocSecuritySettings interface
  978. */
  979. #ifndef __IEnumDot11AdHocSecuritySettings_INTERFACE_DEFINED__
  980. #define __IEnumDot11AdHocSecuritySettings_INTERFACE_DEFINED__
  981. DEFINE_GUID(IID_IEnumDot11AdHocSecuritySettings, 0x8f10cc2d, 0xcf0d, 0x42a0, 0xac,0xbe, 0xe2,0xde,0x70,0x07,0x38,0x4d);
  982. #if defined(__cplusplus) && !defined(CINTERFACE)
  983. MIDL_INTERFACE("8f10cc2d-cf0d-42a0-acbe-e2de7007384d")
  984. IEnumDot11AdHocSecuritySettings : public IUnknown
  985. {
  986. virtual HRESULT STDMETHODCALLTYPE Next(
  987. ULONG cElt,
  988. IDot11AdHocSecuritySettings **rgElt,
  989. ULONG *pcEltFetched) = 0;
  990. virtual HRESULT STDMETHODCALLTYPE Skip(
  991. ULONG cElt) = 0;
  992. virtual HRESULT STDMETHODCALLTYPE Reset(
  993. ) = 0;
  994. virtual HRESULT STDMETHODCALLTYPE Clone(
  995. IEnumDot11AdHocSecuritySettings **ppEnum) = 0;
  996. };
  997. #ifdef __CRT_UUID_DECL
  998. __CRT_UUID_DECL(IEnumDot11AdHocSecuritySettings, 0x8f10cc2d, 0xcf0d, 0x42a0, 0xac,0xbe, 0xe2,0xde,0x70,0x07,0x38,0x4d)
  999. #endif
  1000. #else
  1001. typedef struct IEnumDot11AdHocSecuritySettingsVtbl {
  1002. BEGIN_INTERFACE
  1003. /*** IUnknown methods ***/
  1004. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  1005. IEnumDot11AdHocSecuritySettings *This,
  1006. REFIID riid,
  1007. void **ppvObject);
  1008. ULONG (STDMETHODCALLTYPE *AddRef)(
  1009. IEnumDot11AdHocSecuritySettings *This);
  1010. ULONG (STDMETHODCALLTYPE *Release)(
  1011. IEnumDot11AdHocSecuritySettings *This);
  1012. /*** IEnumDot11AdHocSecuritySettings methods ***/
  1013. HRESULT (STDMETHODCALLTYPE *Next)(
  1014. IEnumDot11AdHocSecuritySettings *This,
  1015. ULONG cElt,
  1016. IDot11AdHocSecuritySettings **rgElt,
  1017. ULONG *pcEltFetched);
  1018. HRESULT (STDMETHODCALLTYPE *Skip)(
  1019. IEnumDot11AdHocSecuritySettings *This,
  1020. ULONG cElt);
  1021. HRESULT (STDMETHODCALLTYPE *Reset)(
  1022. IEnumDot11AdHocSecuritySettings *This);
  1023. HRESULT (STDMETHODCALLTYPE *Clone)(
  1024. IEnumDot11AdHocSecuritySettings *This,
  1025. IEnumDot11AdHocSecuritySettings **ppEnum);
  1026. END_INTERFACE
  1027. } IEnumDot11AdHocSecuritySettingsVtbl;
  1028. interface IEnumDot11AdHocSecuritySettings {
  1029. CONST_VTBL IEnumDot11AdHocSecuritySettingsVtbl* lpVtbl;
  1030. };
  1031. #ifdef COBJMACROS
  1032. #ifndef WIDL_C_INLINE_WRAPPERS
  1033. /*** IUnknown methods ***/
  1034. #define IEnumDot11AdHocSecuritySettings_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  1035. #define IEnumDot11AdHocSecuritySettings_AddRef(This) (This)->lpVtbl->AddRef(This)
  1036. #define IEnumDot11AdHocSecuritySettings_Release(This) (This)->lpVtbl->Release(This)
  1037. /*** IEnumDot11AdHocSecuritySettings methods ***/
  1038. #define IEnumDot11AdHocSecuritySettings_Next(This,cElt,rgElt,pcEltFetched) (This)->lpVtbl->Next(This,cElt,rgElt,pcEltFetched)
  1039. #define IEnumDot11AdHocSecuritySettings_Skip(This,cElt) (This)->lpVtbl->Skip(This,cElt)
  1040. #define IEnumDot11AdHocSecuritySettings_Reset(This) (This)->lpVtbl->Reset(This)
  1041. #define IEnumDot11AdHocSecuritySettings_Clone(This,ppEnum) (This)->lpVtbl->Clone(This,ppEnum)
  1042. #else
  1043. /*** IUnknown methods ***/
  1044. static FORCEINLINE HRESULT IEnumDot11AdHocSecuritySettings_QueryInterface(IEnumDot11AdHocSecuritySettings* This,REFIID riid,void **ppvObject) {
  1045. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  1046. }
  1047. static FORCEINLINE ULONG IEnumDot11AdHocSecuritySettings_AddRef(IEnumDot11AdHocSecuritySettings* This) {
  1048. return This->lpVtbl->AddRef(This);
  1049. }
  1050. static FORCEINLINE ULONG IEnumDot11AdHocSecuritySettings_Release(IEnumDot11AdHocSecuritySettings* This) {
  1051. return This->lpVtbl->Release(This);
  1052. }
  1053. /*** IEnumDot11AdHocSecuritySettings methods ***/
  1054. static FORCEINLINE HRESULT IEnumDot11AdHocSecuritySettings_Next(IEnumDot11AdHocSecuritySettings* This,ULONG cElt,IDot11AdHocSecuritySettings **rgElt,ULONG *pcEltFetched) {
  1055. return This->lpVtbl->Next(This,cElt,rgElt,pcEltFetched);
  1056. }
  1057. static FORCEINLINE HRESULT IEnumDot11AdHocSecuritySettings_Skip(IEnumDot11AdHocSecuritySettings* This,ULONG cElt) {
  1058. return This->lpVtbl->Skip(This,cElt);
  1059. }
  1060. static FORCEINLINE HRESULT IEnumDot11AdHocSecuritySettings_Reset(IEnumDot11AdHocSecuritySettings* This) {
  1061. return This->lpVtbl->Reset(This);
  1062. }
  1063. static FORCEINLINE HRESULT IEnumDot11AdHocSecuritySettings_Clone(IEnumDot11AdHocSecuritySettings* This,IEnumDot11AdHocSecuritySettings **ppEnum) {
  1064. return This->lpVtbl->Clone(This,ppEnum);
  1065. }
  1066. #endif
  1067. #endif
  1068. #endif
  1069. #endif /* __IEnumDot11AdHocSecuritySettings_INTERFACE_DEFINED__ */
  1070. /*****************************************************************************
  1071. * IDot11AdHocSecuritySettings interface
  1072. */
  1073. #ifndef __IDot11AdHocSecuritySettings_INTERFACE_DEFINED__
  1074. #define __IDot11AdHocSecuritySettings_INTERFACE_DEFINED__
  1075. DEFINE_GUID(IID_IDot11AdHocSecuritySettings, 0x8f10cc2e, 0xcf0d, 0x42a0, 0xac,0xbe, 0xe2,0xde,0x70,0x07,0x38,0x4d);
  1076. #if defined(__cplusplus) && !defined(CINTERFACE)
  1077. MIDL_INTERFACE("8f10cc2e-cf0d-42a0-acbe-e2de7007384d")
  1078. IDot11AdHocSecuritySettings : public IUnknown
  1079. {
  1080. virtual HRESULT STDMETHODCALLTYPE GetDot11AuthAlgorithm(
  1081. DOT11_ADHOC_AUTH_ALGORITHM *pAuth) = 0;
  1082. virtual HRESULT STDMETHODCALLTYPE GetDot11CipherAlgorithm(
  1083. DOT11_ADHOC_CIPHER_ALGORITHM *pCipher) = 0;
  1084. };
  1085. #ifdef __CRT_UUID_DECL
  1086. __CRT_UUID_DECL(IDot11AdHocSecuritySettings, 0x8f10cc2e, 0xcf0d, 0x42a0, 0xac,0xbe, 0xe2,0xde,0x70,0x07,0x38,0x4d)
  1087. #endif
  1088. #else
  1089. typedef struct IDot11AdHocSecuritySettingsVtbl {
  1090. BEGIN_INTERFACE
  1091. /*** IUnknown methods ***/
  1092. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  1093. IDot11AdHocSecuritySettings *This,
  1094. REFIID riid,
  1095. void **ppvObject);
  1096. ULONG (STDMETHODCALLTYPE *AddRef)(
  1097. IDot11AdHocSecuritySettings *This);
  1098. ULONG (STDMETHODCALLTYPE *Release)(
  1099. IDot11AdHocSecuritySettings *This);
  1100. /*** IDot11AdHocSecuritySettings methods ***/
  1101. HRESULT (STDMETHODCALLTYPE *GetDot11AuthAlgorithm)(
  1102. IDot11AdHocSecuritySettings *This,
  1103. DOT11_ADHOC_AUTH_ALGORITHM *pAuth);
  1104. HRESULT (STDMETHODCALLTYPE *GetDot11CipherAlgorithm)(
  1105. IDot11AdHocSecuritySettings *This,
  1106. DOT11_ADHOC_CIPHER_ALGORITHM *pCipher);
  1107. END_INTERFACE
  1108. } IDot11AdHocSecuritySettingsVtbl;
  1109. interface IDot11AdHocSecuritySettings {
  1110. CONST_VTBL IDot11AdHocSecuritySettingsVtbl* lpVtbl;
  1111. };
  1112. #ifdef COBJMACROS
  1113. #ifndef WIDL_C_INLINE_WRAPPERS
  1114. /*** IUnknown methods ***/
  1115. #define IDot11AdHocSecuritySettings_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  1116. #define IDot11AdHocSecuritySettings_AddRef(This) (This)->lpVtbl->AddRef(This)
  1117. #define IDot11AdHocSecuritySettings_Release(This) (This)->lpVtbl->Release(This)
  1118. /*** IDot11AdHocSecuritySettings methods ***/
  1119. #define IDot11AdHocSecuritySettings_GetDot11AuthAlgorithm(This,pAuth) (This)->lpVtbl->GetDot11AuthAlgorithm(This,pAuth)
  1120. #define IDot11AdHocSecuritySettings_GetDot11CipherAlgorithm(This,pCipher) (This)->lpVtbl->GetDot11CipherAlgorithm(This,pCipher)
  1121. #else
  1122. /*** IUnknown methods ***/
  1123. static FORCEINLINE HRESULT IDot11AdHocSecuritySettings_QueryInterface(IDot11AdHocSecuritySettings* This,REFIID riid,void **ppvObject) {
  1124. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  1125. }
  1126. static FORCEINLINE ULONG IDot11AdHocSecuritySettings_AddRef(IDot11AdHocSecuritySettings* This) {
  1127. return This->lpVtbl->AddRef(This);
  1128. }
  1129. static FORCEINLINE ULONG IDot11AdHocSecuritySettings_Release(IDot11AdHocSecuritySettings* This) {
  1130. return This->lpVtbl->Release(This);
  1131. }
  1132. /*** IDot11AdHocSecuritySettings methods ***/
  1133. static FORCEINLINE HRESULT IDot11AdHocSecuritySettings_GetDot11AuthAlgorithm(IDot11AdHocSecuritySettings* This,DOT11_ADHOC_AUTH_ALGORITHM *pAuth) {
  1134. return This->lpVtbl->GetDot11AuthAlgorithm(This,pAuth);
  1135. }
  1136. static FORCEINLINE HRESULT IDot11AdHocSecuritySettings_GetDot11CipherAlgorithm(IDot11AdHocSecuritySettings* This,DOT11_ADHOC_CIPHER_ALGORITHM *pCipher) {
  1137. return This->lpVtbl->GetDot11CipherAlgorithm(This,pCipher);
  1138. }
  1139. #endif
  1140. #endif
  1141. #endif
  1142. #endif /* __IDot11AdHocSecuritySettings_INTERFACE_DEFINED__ */
  1143. /*****************************************************************************
  1144. * IDot11AdHocInterfaceNotificationSink interface
  1145. */
  1146. #ifndef __IDot11AdHocInterfaceNotificationSink_INTERFACE_DEFINED__
  1147. #define __IDot11AdHocInterfaceNotificationSink_INTERFACE_DEFINED__
  1148. DEFINE_GUID(IID_IDot11AdHocInterfaceNotificationSink, 0x8f10cc2f, 0xcf0d, 0x42a0, 0xac,0xbe, 0xe2,0xde,0x70,0x07,0x38,0x4d);
  1149. #if defined(__cplusplus) && !defined(CINTERFACE)
  1150. MIDL_INTERFACE("8f10cc2f-cf0d-42a0-acbe-e2de7007384d")
  1151. IDot11AdHocInterfaceNotificationSink : public IUnknown
  1152. {
  1153. virtual HRESULT STDMETHODCALLTYPE OnConnectionStatusChange(
  1154. DOT11_ADHOC_NETWORK_CONNECTION_STATUS eStatus) = 0;
  1155. };
  1156. #ifdef __CRT_UUID_DECL
  1157. __CRT_UUID_DECL(IDot11AdHocInterfaceNotificationSink, 0x8f10cc2f, 0xcf0d, 0x42a0, 0xac,0xbe, 0xe2,0xde,0x70,0x07,0x38,0x4d)
  1158. #endif
  1159. #else
  1160. typedef struct IDot11AdHocInterfaceNotificationSinkVtbl {
  1161. BEGIN_INTERFACE
  1162. /*** IUnknown methods ***/
  1163. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  1164. IDot11AdHocInterfaceNotificationSink *This,
  1165. REFIID riid,
  1166. void **ppvObject);
  1167. ULONG (STDMETHODCALLTYPE *AddRef)(
  1168. IDot11AdHocInterfaceNotificationSink *This);
  1169. ULONG (STDMETHODCALLTYPE *Release)(
  1170. IDot11AdHocInterfaceNotificationSink *This);
  1171. /*** IDot11AdHocInterfaceNotificationSink methods ***/
  1172. HRESULT (STDMETHODCALLTYPE *OnConnectionStatusChange)(
  1173. IDot11AdHocInterfaceNotificationSink *This,
  1174. DOT11_ADHOC_NETWORK_CONNECTION_STATUS eStatus);
  1175. END_INTERFACE
  1176. } IDot11AdHocInterfaceNotificationSinkVtbl;
  1177. interface IDot11AdHocInterfaceNotificationSink {
  1178. CONST_VTBL IDot11AdHocInterfaceNotificationSinkVtbl* lpVtbl;
  1179. };
  1180. #ifdef COBJMACROS
  1181. #ifndef WIDL_C_INLINE_WRAPPERS
  1182. /*** IUnknown methods ***/
  1183. #define IDot11AdHocInterfaceNotificationSink_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  1184. #define IDot11AdHocInterfaceNotificationSink_AddRef(This) (This)->lpVtbl->AddRef(This)
  1185. #define IDot11AdHocInterfaceNotificationSink_Release(This) (This)->lpVtbl->Release(This)
  1186. /*** IDot11AdHocInterfaceNotificationSink methods ***/
  1187. #define IDot11AdHocInterfaceNotificationSink_OnConnectionStatusChange(This,eStatus) (This)->lpVtbl->OnConnectionStatusChange(This,eStatus)
  1188. #else
  1189. /*** IUnknown methods ***/
  1190. static FORCEINLINE HRESULT IDot11AdHocInterfaceNotificationSink_QueryInterface(IDot11AdHocInterfaceNotificationSink* This,REFIID riid,void **ppvObject) {
  1191. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  1192. }
  1193. static FORCEINLINE ULONG IDot11AdHocInterfaceNotificationSink_AddRef(IDot11AdHocInterfaceNotificationSink* This) {
  1194. return This->lpVtbl->AddRef(This);
  1195. }
  1196. static FORCEINLINE ULONG IDot11AdHocInterfaceNotificationSink_Release(IDot11AdHocInterfaceNotificationSink* This) {
  1197. return This->lpVtbl->Release(This);
  1198. }
  1199. /*** IDot11AdHocInterfaceNotificationSink methods ***/
  1200. static FORCEINLINE HRESULT IDot11AdHocInterfaceNotificationSink_OnConnectionStatusChange(IDot11AdHocInterfaceNotificationSink* This,DOT11_ADHOC_NETWORK_CONNECTION_STATUS eStatus) {
  1201. return This->lpVtbl->OnConnectionStatusChange(This,eStatus);
  1202. }
  1203. #endif
  1204. #endif
  1205. #endif
  1206. #endif /* __IDot11AdHocInterfaceNotificationSink_INTERFACE_DEFINED__ */
  1207. #ifndef __ADHOCLib_LIBRARY_DEFINED__
  1208. #define __ADHOCLib_LIBRARY_DEFINED__
  1209. DEFINE_GUID(LIBID_ADHOCLib, 0x45357166, 0xff38, 0x4302, 0x8f,0x5c, 0xdf,0x5b,0x70,0x3a,0x6e,0x3d);
  1210. /*****************************************************************************
  1211. * Dot11AdHocManager coclass
  1212. */
  1213. DEFINE_GUID(CLSID_Dot11AdHocManager, 0xdd06a84f, 0x83bd, 0x4d01, 0x8a,0xb9, 0x23,0x89,0xfe,0xa0,0x86,0x9e);
  1214. #ifdef __cplusplus
  1215. class DECLSPEC_UUID("dd06a84f-83bd-4d01-8ab9-2389fea0869e") Dot11AdHocManager;
  1216. #ifdef __CRT_UUID_DECL
  1217. __CRT_UUID_DECL(Dot11AdHocManager, 0xdd06a84f, 0x83bd, 0x4d01, 0x8a,0xb9, 0x23,0x89,0xfe,0xa0,0x86,0x9e)
  1218. #endif
  1219. #endif
  1220. #endif /* __ADHOCLib_LIBRARY_DEFINED__ */
  1221. #endif
  1222. /* Begin additional prototypes for all interfaces */
  1223. /* End additional prototypes */
  1224. #ifdef __cplusplus
  1225. }
  1226. #endif
  1227. #endif /* __adhoc_h__ */