-
Notifications
You must be signed in to change notification settings - Fork 10
/
Functions.cs
516 lines (509 loc) · 22.1 KB
/
Functions.cs
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
// Copyright (c) 2013 Eugen Pechanec
using System;
using System.Text;
using System.Runtime.InteropServices;
namespace EugenPechanec.NativeWifi {
internal static partial class NativeMethods {
// WI-FI DIRECT ==============================================================================
//[DllImport("wlanapi.dll", EntryPoint="WFD_OPEN_SESSION_COMPLETE_CALLBACK")]
//internal static extern delegate void WfdOpenSessionCompleteCallback(
// [In] ref IntPtr hSessionHandle,
// [In] IntPtr pvContext,
// [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidSessionInterface,
// [In] uint dwError,
// [In] WlanReasonCode dwReasonCode
//);
[DllImport("wlanapi.dll", EntryPoint="WFDCancelOpenSession")]
internal static extern int WfdCancelOpenSession(
[In] ref IntPtr hSessionHandle
);
[DllImport("wlanapi.dll", EntryPoint = "WFDCloseHandle")]
internal static extern int WfdCloseHandle(
[In] IntPtr hClientHandle
);
[DllImport("wlanapi.dll", EntryPoint = "WFDCloseSession")]
internal static extern int WfdCloseSession(
[In] ref IntPtr hSessionHandle
);
[DllImport("wlanapi.dll", EntryPoint = "WFDOpenHandle")]
internal static extern int WfdOpenHandle(
//[In] uint dwClientVersion,
[In] uint dwClientVersion,
[Out] out uint pdwNegotiatedVersion,
[Out] out IntPtr phClientHandle
);
[DllImport("wlanapi.dll", EntryPoint = "WFDOpenLegacySession")]
internal static extern int WfdOpenLegacySession(
[In] IntPtr hClientHandle,
[In] ref Dot11MacAddress pLegacyMacAddress,
[In] IntPtr phSessionHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid pGuidSessionInterface
);
[DllImport("wlanapi.dll", EntryPoint = "WFDStartOpenSession")]
internal static extern int WfdStartOpenSession(
[In] IntPtr hClientHandle,
[In] ref Dot11MacAddress pDeviceAddress,
[In, Optional] IntPtr pvContext,
[In] WfdOpenSessionCompleteCallbackDelegate pfnCallback,
[Out] out IntPtr phSessionHandle
);
[DllImport("wlanapi.dll", EntryPoint = "WFDUpdateDeviceVisibility")]
internal static extern int WfdUpdateDeviceVisibility(
[In] ref Dot11MacAddress pDeviceAddress
);
// WLAN PART 1 ===============================================================================
[DllImport("wlanapi.dll")]
internal static extern IntPtr WlanAllocateMemory(
[In] uint dwMemorySize
);
[DllImport("wlanapi.dll")]
internal static extern int WlanCloseHandle(
[In] IntPtr hClientHandle,
[In, Out] IntPtr pReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanConnect(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In] ref WlanConnectionParameters pConnectionParameters,
[In, Out] IntPtr pReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanDeleteProfile(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In, MarshalAs(UnmanagedType.LPWStr)] string strProfileName,
[In, Out] IntPtr pReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanDisconnect(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In, Out] IntPtr pReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanEnumInterfaces(
[In] IntPtr hClientHandle,
[In, Out] IntPtr pReserved,
[Out] out IntPtr ppInterfaceList
);
[DllImport("wlanapi.dll")]
internal static extern int WlanExtractPsdIEDataList(
[In] IntPtr hClientHandle,
[In] uint dwIeDataSize,
[In] IntPtr pRawIeData,
[In, MarshalAs(UnmanagedType.LPWStr)] string strFormat,
[In, Out] IntPtr pReserved,
[Out] out IntPtr ppPsdIEDataList
);
[DllImport("wlanapi.dll")]
internal static extern int WlanFreeMemory(
[In] IntPtr pMemory
);
[DllImport("wlanapi.dll")]
internal static extern int WlanGetAvailableNetworkList(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In] WlanGetAvailableNetworkFlags dwFlags,
[In, Out] IntPtr pReserved,
[Out] out IntPtr ppAvailableNetworkList
);
[DllImport("wlanapi.dll")]
internal static extern int WlanGetFilterList(
[In] IntPtr hClientHandle,
[In] WlanFilterListType wlanFilterListType,
[In, Out] IntPtr pReserved,
[Out] out IntPtr ppNetworkList
);
[DllImport("wlanapi.dll")]
internal static extern int WlanGetInterfaceCapability(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In, Out] IntPtr pReserved,
[Out] out IntPtr ppCapability
);
[DllImport("wlanapi.dll")]
internal static extern int WlanGetNetworkBssList(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In, Optional] ref Dot11Ssid pDot11Ssid,
[In] Dot11BssType dot11BssType,
[In] bool bSecurityEnabled,
[In, Out] IntPtr pReserved,
[Out] out IntPtr ppWlanBssList
);
[DllImport("wlanapi.dll")]
internal static extern int WlanGetNetworkBssList(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In, Optional] IntPtr pDot11Ssid,
[In] Dot11BssType dot11BssType,
[In] bool bSecurityEnabled,
[In, Out] IntPtr pReserved,
[Out] out IntPtr ppWlanBssList
);
[DllImport("wlanapi.dll")]
internal static extern int WlanGetProfile(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In, MarshalAs(UnmanagedType.LPWStr)] string strProfileName,
[In, Out] IntPtr pReserved,
[Out] out IntPtr strProfileXml,
[Out, Optional] out WlanProfileFlags dwFlags,
[Out, Optional] out WlanAccess pdwGrantedAccess
);
[DllImport("wlanapi.dll")]
internal static extern int WlanGetProfileCustomUserData(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In, MarshalAs(UnmanagedType.LPWStr)] string strProfileName,
[In, Out] IntPtr pReserved,
[Out, Optional] out uint dwDataSize,
[Out, Optional] out IntPtr ppData
);
[DllImport("wlanapi.dll")]
internal static extern int WlanGetProfileList(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In, Out] IntPtr pReserved,
[Out] out IntPtr ppProfileList
);
[DllImport("wlanapi.dll")]
internal static extern int WlanGetSecuritySettings(
[In] IntPtr hClientHandle,
[In] WlanSecurableObject SecurableObject,
[Out, Optional] out WlanOpcodeValueType pValueType,
[Out] out IntPtr strCurrentSDDL,
[Out] out WlanAccess pdwGrantedAccess
);
// WLAN PART 2 ===============================================================================
[DllImport("wlanapi.dll")]
internal static extern int WlanIhvControl(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In] WlanIhvControlType Type,
[In] uint dwInBufferSize,
[In] IntPtr pInBuffer,
[In] uint dwOutBufferSize,
[Out, Optional] out IntPtr pOutBuffer,
[Out] out uint pdwBytesReturned
);
[DllImport("wlanapi.dll")]
internal static extern int WlanOpenHandle(
[In] uint dwClientVersion,
[In, Out] IntPtr pReserved,
[Out] out uint pdwNegotiatedVersion,
[Out] out IntPtr phClientHandle
);
[DllImport("wlanapi.dll")]
internal static extern int WlanQueryAutoConfigParameter(
[In] IntPtr hClientHandle,
[In] WlanAutoConfOpcode OpCode,
[In, Out] IntPtr pReserved,
[Out] out uint pdwDataSize,
[Out] out IntPtr ppData,
[Out, Optional] out WlanOpcodeValueType pWlanOpodeValueType
);
[DllImport("wlanapi.dll")]
internal static extern int WlanQueryInterface(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In] WlanIntfOpcode OpCode,
[In, Out] IntPtr pReserved,
[Out] out uint pdwDataSize,
[Out] out IntPtr ppData,
[Out, Optional] out WlanOpcodeValueType pWlanOpcodeValueType
);
[DllImport("wlanapi.dll")]
internal static extern int WlanReasonCodeToString(
[In] WlanReasonCode dwReasonCode,
[In] uint dwBufferSize,
[In, MarshalAs(UnmanagedType.LPWStr)] StringBuilder pStringBuffer, //ref?
[In, Out] IntPtr pReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanRegisterNotification(
[In] IntPtr hClientHandle,
[In] WlanNotificationSource dwNotifSource,
[In] bool bIgnoreDuplicate,
[In, Optional] WlanNotificationCallbackDelegate funcCallback,
[In, Optional] IntPtr pCallbackContext,
[In, Out] IntPtr pReserved,
[Out, Optional] out WlanNotificationSource pdwPrevNotifSource
);
[DllImport("wlanapi.dll")]
internal static extern int WlanRegisterVirtualStationNotification(
[In] IntPtr hClientHandle,
[In] bool bRegister,
[In, Out] IntPtr pvReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanRenameProfile(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In, MarshalAs(UnmanagedType.LPWStr)] string strOldProfileName,
[In, MarshalAs(UnmanagedType.LPWStr)] string strNewProfileName,
[In, Out] IntPtr pReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanSaveTemporaryProfile(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In, MarshalAs(UnmanagedType.LPWStr)] string strProfileName,
[In, Optional, MarshalAs(UnmanagedType.LPWStr)] string strAllUserProfileSecurity,
[In] WlanProfileFlags dwFlags,
[In] bool bOverWrite,
[In, Out] IntPtr pReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanScan(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In, Optional] IntPtr pDot11Ssid,
[In, Optional] IntPtr pIeData,
[In, Out] IntPtr pReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanScan(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In, Optional] IntPtr pDot11Ssid,
[In, Optional] ref WlanRawData pIeData,
[In, Out] IntPtr pReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanScan(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In, Optional] ref Dot11Ssid pDot11Ssid,
[In, Optional] IntPtr pIeData,
[In, Out] IntPtr pReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanScan(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In, Optional] ref Dot11Ssid pDot11Ssid,
[In, Optional] ref WlanRawData pIeData,
[In, Out] IntPtr pReserved
);
[DllImport("wlanui.dll")]
internal static extern int WlanUIEditProfile(
[In] uint dwClientVersion,
[In, MarshalAs(UnmanagedType.LPWStr)] string wstrProfileName,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In] IntPtr hWnd,
[In] WlDisplayPages wlStartPage,
[In, Out] IntPtr pReserved,
[Out] out WlanReasonCode wlanReasonCode
);
//= WLAN PART 3 ===============================================================================
[DllImport("wlanapi.dll")]
internal static extern int WlanSetAutoConfigParameter(
[In] IntPtr hClientHandle,
[In] WlanAutoConfOpcode OpCode,
[In] uint dwDataSize,
[In] IntPtr pData,
[In, Out] IntPtr pReserved
);
//[DllImport("wlanapi.dll")]
//internal static extern int WlanSetAutoConfigParameter(
// [In] IntPtr hClientHandle,
// [In] WlanAutoConfOpcode OpCode,
// [In] uint dwDataSize,
// [In] ref bool pData,
// [In, Out] IntPtr pReserved
//);
//[DllImport("wlanapi.dll")]
//internal static extern int WlanSetAutoConfigParameter(
// [In] IntPtr hClientHandle,
// [In] WlanAutoConfOpcode OpCode,
// [In] uint dwDataSize,
// [In] ref uint pData,
// [In, Out] IntPtr pReserved
//);
[DllImport("wlanapi.dll")]
internal static extern int WlanSetFilterList(
[In] IntPtr hClientHandle,
[In] WlanFilterListType wlanFilterListType,
[In, Optional] IntPtr pNetworkList,
[In, Out] IntPtr pReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanSetFilterList(
[In] IntPtr hClientHandle,
[In] WlanFilterListType wlanFilterListType,
[In, Optional] ref Dot11NetworkList pNetworkList,
[In, Out] IntPtr pReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanSetInterface(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In] WlanIntfOpcode OpCode,
[In] uint dwDataSize,
[In] IntPtr pData,
[In, Out] IntPtr pReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanSetProfile(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In] WlanProfileFlags dwFlags,
[In, MarshalAs(UnmanagedType.LPWStr)] string strProfileXml,
[In, MarshalAs(UnmanagedType.LPWStr)] string strAllUserProfileSecurity,
[In] bool bOverwrite,
[In, Out] IntPtr pReserved,
[Out] out WlanReasonCode dwReasonCode
);
[DllImport("wlanapi.dll")]
internal static extern int WlanSetProfileCustomUserData(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In, MarshalAs(UnmanagedType.LPWStr)] string strProfileName,
[In] uint dwDataSize,
[In] IntPtr pData,
[In, Out] IntPtr pReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanSetProfileEapUserData(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In, MarshalAs(UnmanagedType.LPWStr)] string strProfileName,
[In] EapMethodType eapType,
[In] uint dwFlags, // flags?
[In] uint dwEapUserDataSize,
[In] IntPtr pbEapUserData,
[In, Out] IntPtr pReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanSetProfileEapXmlUserData(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In, MarshalAs(UnmanagedType.LPWStr)] string strProfileName,
[In] uint dwFlags, // flags?
[In, MarshalAs(UnmanagedType.LPWStr)] string strEapXmlUserData,
[In, Out] IntPtr pReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanSetProfileList(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In] uint dwItems,
[In] IntPtr strProfileNames, // ref?
[In, Out] IntPtr pReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanSetProfilePosition(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPStruct)] Guid interfaceGuid,
[In, MarshalAs(UnmanagedType.LPWStr)] string strProfileName,
[In] uint dwPosition,
[In, Out] IntPtr pReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanSetPsdIEDataList(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPWStr)] string strFormat,
[In] IntPtr pPsdIEDataList,
[In, Out] IntPtr pReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanSetPsdIEDataList(
[In] IntPtr hClientHandle,
[In, MarshalAs(UnmanagedType.LPWStr)] string strFormat,
[In] ref WlanRawDataList pPsdIEDataList, // check WlanRawDataList type!
[In, Out] IntPtr pReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanSetSecuritySettings(
[In] IntPtr hClientHandle,
[In] WlanSecurableObject SecurableObject,
[In, MarshalAs(UnmanagedType.LPWStr)] string strModifiedSDDL
);
// HOSTED NETWORK ============================================================================
[DllImport("wlanapi.dll")]
internal static extern int WlanHostedNetworkForceStart(
[In] IntPtr hClientHandle,
[Out, Optional] out WlanHostedNetworkReason pFailReason,
[In, Out] IntPtr pvReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanHostedNetworkForceStop(
[In] IntPtr hClientHandle,
[Out, Optional] out WlanHostedNetworkReason pFailReason,
[In, Out] IntPtr pvReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanHostedNetworkStartUsing(
[In] IntPtr hClientHandle,
[Out, Optional] out WlanHostedNetworkReason pFailReason,
[In, Out] IntPtr pvReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanHostedNetworkStopUsing(
[In] IntPtr hClientHandle,
[Out, Optional] out WlanHostedNetworkReason pFailReason,
[In, Out] IntPtr pvReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanHostedNetworkInitSettings(
[In] IntPtr hClientHandle,
[Out, Optional] out WlanHostedNetworkReason pFailReason,
[In, Out] IntPtr pvReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanHostedNetworkRefreshSecuritySettings(
[In] IntPtr hClientHandle,
[Out, Optional] out WlanHostedNetworkReason pFailReason,
[In, Out] IntPtr pvReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanHostedNetworkQueryProperty(
[In] IntPtr hClientHandle,
[In] WlanHostedNetworkOpcode OpCode,
[Out] out uint pdwDataSize,
[Out] out IntPtr ppvData,
[Out] out WlanOpcodeValueType pWlanOpcodeValueType,
[In, Out] IntPtr pvReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanHostedNetworkSetProperty(
[In] IntPtr hClientHandle,
[In] WlanHostedNetworkOpcode OpCode,
[In] int pdwDataSize,
[In] IntPtr ppvData,
[Out, Optional] out WlanOpcodeValueType pWlanOpcodeValueType,
[In, Out] IntPtr pvReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanHostedNetworkQuerySecondaryKey(
[In] IntPtr hClientHandle,
[Out] out uint pdwKeyLength,
[Out] out IntPtr ppucKeyData,
[Out] out bool pbIsPassPhrase,
[Out] out bool pbPersistent,
[Out, Optional] out WlanHostedNetworkReason pFailReason,
[In, Out] IntPtr pvReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanHostedNetworkSetSecondaryKey(
[In] IntPtr hClientHandle,
[In] uint pdwKeyLength,
[In] IntPtr ppucKeyData,
[In] bool pbIsPassPhrase,
[In] bool pbPersistent,
[Out, Optional] out WlanHostedNetworkReason pFailReason,
[In, Out] IntPtr pvReserved
);
[DllImport("wlanapi.dll")]
internal static extern int WlanHostedNetworkQueryStatus(
[In] IntPtr hClientHandle,
[Out] out IntPtr ppWlanHostedNetworkStatus,
[In, Out] IntPtr pvReserved
);
// DELEGATES ===================================================================================
internal delegate void WlanNotificationCallbackDelegate(ref WlanNotificationData notificationData, IntPtr context);
internal delegate void WfdOpenSessionCompleteCallbackDelegate(ref IntPtr hSessionHandle, IntPtr pvContext, Guid guidSessionInterface, uint dwError, WlanReasonCode dwReasonCode);
}
}