-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwifidirect.py
1326 lines (1212 loc) · 59.4 KB
/
wifidirect.py
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
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Autogenerated from windows.devices.wifidirect.idl, wifidirect.hacks.idl on 2023-09-13 12:54:59.782000
from wrtcommon import *
class WiFiDirectDeviceSelectorType(ENUM):
"""
enum WiFiDirectDeviceSelectorType
{
DeviceInterface = 0,
AssociationEndpoint = 1
};
"""
DeviceInterface = 0
AssociationEndpoint = 1
class WiFiDirectAdvertisementListenStateDiscoverability(ENUM):
"""
enum WiFiDirectAdvertisementListenStateDiscoverability
{
None = 0,
Normal = 1,
Intensive = 2
};
"""
None_ = 0
Normal = 1
Intensive = 2
class WiFiDirectConnectionStatus(ENUM):
"""
enum WiFiDirectConnectionStatus
{
Disconnected = 0,
Connected = 1
};
"""
Disconnected = 0
Connected = 1
class WiFiDirectError(ENUM):
"""
enum WiFiDirectError
{
Success = 0,
RadioNotAvailable = 1,
ResourceInUse = 2
};
"""
Success = 0
RadioNotAvailable = 1
ResourceInUse = 2
class WiFiDirectAdvertisementPublisherStatus(ENUM):
"""
enum WiFiDirectAdvertisementPublisherStatus
{
Created = 0,
Started = 1,
Stopped = 2,
Aborted = 3
};
"""
Created = 0
Started = 1
Stopped = 2
Aborted = 3
class DevicePairingKinds(ENUM):
"""
enum DevicePairingKinds
{
None = 0x0,
ConfirmOnly = 0x1,
DisplayPin = 0x2,
ProvidePin = 0x4,
ConfirmPinMatch = 0x8
};
"""
None_ = 0
ConfirmOnly = 1
DisplayPin = 2
ProvidePin = 4
ConfirmPinMatch = 8
class WiFiDirectConfigurationMethod(ENUM):
"""
enum WiFiDirectConfigurationMethod
{
ProvidePin = 0,
DisplayPin = 1,
PushButton = 2
};
"""
ProvidePin = 0
DisplayPin = 1
PushButton = 2
class WiFiDirectPairingProcedure(ENUM):
"""
enum WiFiDirectPairingProcedure
{
GroupOwnerNegotiation = 0,
Invitation = 1
};
"""
GroupOwnerNegotiation = 0
Invitation = 1
IID_EnclosureLocation = comtypes.GUID('{42340A27-5810-459C-AABB-C65E1F813ECF}')
class EnclosureLocation(IInspectable):
"""
[uuid(42340A27-5810-459C-AABB-C65E1F813ECF)]
interface EnclosureLocation : IInspectable
{
}
"""
_iid_ = IID_EnclosureLocation
IID_IWiFiDirectDeviceStatics2 = comtypes.GUID('{1A953E49-B103-437E-9226-AB67971342F9}')
class IWiFiDirectDeviceStatics2(IInspectable):
"""
[exclusiveto(Windows.Devices.WiFiDirect.WiFiDirectDevice)]
[uuid(1A953E49-B103-437E-9226-AB67971342F9)]
interface IWiFiDirectDeviceStatics2 : IInspectable
{
[overload("GetDeviceSelector")] HRESULT GetDeviceSelector([in] Windows.Devices.WiFiDirect.WiFiDirectDeviceSelectorType type, [out] [retval] HSTRING* result);
[overload("FromIdAsync")] HRESULT FromIdAsync([in] HSTRING deviceId, [in] Windows.Devices.WiFiDirect.WiFiDirectConnectionParameters* connectionParameters, [out] [retval] Windows.Foundation.IAsyncOperation<Windows.Devices.WiFiDirect.WiFiDirectDevice*>** result);
}
"""
_iid_ = IID_IWiFiDirectDeviceStatics2
IID_IWiFiDirectAdvertisement = comtypes.GUID('{AB511A2D-2A06-49A1-A584-61435C7905A6}')
class IWiFiDirectAdvertisement(IInspectable):
"""
[exclusiveto(Windows.Devices.WiFiDirect.WiFiDirectAdvertisement)]
[uuid(AB511A2D-2A06-49A1-A584-61435C7905A6)]
interface IWiFiDirectAdvertisement : IInspectable
{
[propget] HRESULT InformationElements([out] [retval] Windows.Foundation.Collections.IVector<Windows.Devices.WiFiDirect.WiFiDirectInformationElement*>** value);
[propput] HRESULT InformationElements([in] Windows.Foundation.Collections.IVector<Windows.Devices.WiFiDirect.WiFiDirectInformationElement*>* value);
[propget] HRESULT ListenStateDiscoverability([out] [retval] Windows.Devices.WiFiDirect.WiFiDirectAdvertisementListenStateDiscoverability* value);
[propput] HRESULT ListenStateDiscoverability([in] Windows.Devices.WiFiDirect.WiFiDirectAdvertisementListenStateDiscoverability value);
[propget] HRESULT IsAutonomousGroupOwnerEnabled([out] [retval] boolean* value);
[propput] HRESULT IsAutonomousGroupOwnerEnabled([in] boolean value);
[propget] HRESULT LegacySettings([out] [retval] Windows.Devices.WiFiDirect.WiFiDirectLegacySettings** value);
}
"""
_iid_ = IID_IWiFiDirectAdvertisement
IID_IWiFiDirectAdvertisementPublisher = comtypes.GUID('{B35A2D1A-9B1F-45D9-925A-694D66DF68EF}')
class IWiFiDirectAdvertisementPublisher(IInspectable):
"""
[exclusiveto(Windows.Devices.WiFiDirect.WiFiDirectAdvertisementPublisher)]
[uuid(B35A2D1A-9B1F-45D9-925A-694D66DF68EF)]
interface IWiFiDirectAdvertisementPublisher : IInspectable
{
[propget] HRESULT Advertisement([out] [retval] Windows.Devices.WiFiDirect.WiFiDirectAdvertisement** value);
[propget] HRESULT Status([out] [retval] Windows.Devices.WiFiDirect.WiFiDirectAdvertisementPublisherStatus* value);
[eventadd] HRESULT StatusChanged([in] Windows.Foundation.TypedEventHandler<Windows.Devices.WiFiDirect.WiFiDirectAdvertisementPublisher*, Windows.Devices.WiFiDirect.WiFiDirectAdvertisementPublisherStatusChangedEventArgs*>* handler, [out] [retval] EventRegistrationToken* token);
[eventremove] HRESULT StatusChanged([in] EventRegistrationToken token);
HRESULT Start();
HRESULT Stop();
}
"""
_iid_ = IID_IWiFiDirectAdvertisementPublisher
def __init__(self):
self._OnStatusChangedFn = None
self._OnStatusChangedToken = None
self._OnStatusChangedHandler = None
self._OnStatusChangedHandlerClass = None
@property
def OnStatusChanged(self):
logger.info("")
# type:()->FWiFiDirectAdvertisementPublisher_WiFiDirectAdvertisementPublisherStatusChangedEventArgs
return self._OnStatusChangedFn
@OnStatusChanged.setter
def OnStatusChanged(self, fn):
logger.info("")
# type:(FWiFiDirectAdvertisementPublisher_WiFiDirectAdvertisementPublisherStatusChangedEventArgs) -> None
if (self._OnStatusChangedToken is not None):
self._IWiFiDirectAdvertisementPublisher__com_remove_StatusChanged(self._OnStatusChangedToken)
self._OnStatusChangedToken = None
self._OnStatusChangedHandler = None
self._OnStatusChangedHandlerClass = None
if (fn is not None):
self._OnStatusChangedHandlerClass = make_typed_event_handler_class(
TypedEventHandler_2_WiFiDirectAdvertisementPublisher_WiFiDirectAdvertisementPublisherStatusChangedEventArgs,
wintypes.POINTER(WiFiDirectAdvertisementPublisher),
wintypes.POINTER(WiFiDirectAdvertisementPublisherStatusChangedEventArgs),
fn
)
self._OnStatusChangedHandler = self._OnStatusChangedHandlerClass()
self._OnStatusChangedToken = EventRegistrationToken()
handler = self._OnStatusChangedHandler.QueryInterface(self._OnStatusChangedHandlerClass._event_handler_interface_)
self._IWiFiDirectAdvertisementPublisher__com_add_StatusChanged(
handler,
ctypes.byref(self._OnStatusChangedToken)
)
self._OnStatusChangedFn = fn
IID_IWiFiDirectInformationElementStatics = comtypes.GUID('{DBD02F16-11A5-4E60-8CAA-34772148378A}')
class IWiFiDirectInformationElementStatics(IInspectable):
"""
[exclusiveto(Windows.Devices.WiFiDirect.WiFiDirectInformationElement)]
[uuid(DBD02F16-11A5-4E60-8CAA-34772148378A)]
interface IWiFiDirectInformationElementStatics : IInspectable
{
HRESULT CreateFromBuffer([in] Windows.Storage.Streams.IBuffer* buffer, [out] [retval] Windows.Foundation.Collections.IVector<Windows.Devices.WiFiDirect.WiFiDirectInformationElement*>** result);
HRESULT CreateFromDeviceInformation([in] Windows.Devices.Enumeration.DeviceInformation* deviceInformation, [out] [retval] Windows.Foundation.Collections.IVector<Windows.Devices.WiFiDirect.WiFiDirectInformationElement*>** result);
}
"""
_iid_ = IID_IWiFiDirectInformationElementStatics
IID_IWiFiDirectAdvertisement2 = comtypes.GUID('{B759AA46-D816-491B-917A-B40D7DC403A2}')
class IWiFiDirectAdvertisement2(IInspectable):
"""
[exclusiveto(Windows.Devices.WiFiDirect.WiFiDirectAdvertisement)]
[uuid(B759AA46-D816-491B-917A-B40D7DC403A2)]
interface IWiFiDirectAdvertisement2 : IInspectable
{
[propget] HRESULT SupportedConfigurationMethods([out] [retval] Windows.Foundation.Collections.IVector<Windows.Devices.WiFiDirect.WiFiDirectConfigurationMethod>** value);
}
"""
_iid_ = IID_IWiFiDirectAdvertisement2
IID_IWiFiDirectConnectionRequest = comtypes.GUID('{8EB99605-914F-49C3-A614-D18DC5B19B43}')
class IWiFiDirectConnectionRequest(IInspectable):
"""
[exclusiveto(Windows.Devices.WiFiDirect.WiFiDirectConnectionRequest)]
[uuid(8EB99605-914F-49C3-A614-D18DC5B19B43)]
interface IWiFiDirectConnectionRequest : IInspectable
{
[propget] HRESULT DeviceInformation([out] [retval] Windows.Devices.Enumeration.DeviceInformation** value);
}
"""
_iid_ = IID_IWiFiDirectConnectionRequest
IID_IVector_1_WiFiDirectConfigurationMethod = comtypes.GUID('{913337e9-11a1-4345-a3a2-4e7f956e222d}')
class IVector_1_WiFiDirectConfigurationMethod(IInspectable):
"""
uuid(913337e9-11a1-4345-a3a2-4e7f956e222d)
interface IVector_1_WiFiDirectConfigurationMethod : IInspectable
{
}
"""
_iid_ = IID_IVector_1_WiFiDirectConfigurationMethod
IID_IWiFiDirectLegacySettings = comtypes.GUID('{A64FDBBA-F2FD-4567-A91B-F5C2F5321057}')
class IWiFiDirectLegacySettings(IInspectable):
"""
[exclusiveto(Windows.Devices.WiFiDirect.WiFiDirectLegacySettings)]
[uuid(A64FDBBA-F2FD-4567-A91B-F5C2F5321057)]
interface IWiFiDirectLegacySettings : IInspectable
{
[propget] HRESULT IsEnabled([out] [retval] boolean* value);
[propput] HRESULT IsEnabled([in] boolean value);
[propget] HRESULT Ssid([out] [retval] HSTRING* value);
[propput] HRESULT Ssid([in] HSTRING value);
[propget] HRESULT Passphrase([out] [retval] Windows.Security.Credentials.PasswordCredential** value);
[propput] HRESULT Passphrase([in] Windows.Security.Credentials.PasswordCredential* value);
}
"""
_iid_ = IID_IWiFiDirectLegacySettings
IID_DeviceInformationUpdate = comtypes.GUID('{8F315305-D972-44B7-A37E-9E822C78213B}')
class DeviceInformationUpdate(IInspectable):
"""
[exclusiveto(Windows.Devices.Enumeration.DeviceInformationUpdate)]
[uuid(8F315305-D972-44B7-A37E-9E822C78213B)]
interface DeviceInformationUpdate : IInspectable
{
}
"""
_iid_ = IID_DeviceInformationUpdate
IID_IPropertySet = comtypes.GUID('{8A43ED9F-F4E6-4421-ACF9-1DAB2986820C}')
class IPropertySet(IInspectable):
"""
[uuid(8A43ED9F-F4E6-4421-ACF9-1DAB2986820C)]
interface IPropertySet : IInspectable
{
}
"""
_iid_ = IID_IPropertySet
IID_IBuffer = comtypes.GUID('{905A0FE0-BC53-11DF-8C49-001E4FC686DA}')
class IBuffer(IInspectable):
"""
[uuid(905A0FE0-BC53-11DF-8C49-001E4FC686DA)]
interface IBuffer : IInspectable
{
[propget] HRESULT Capacity([out] [retval] UINT32* value);
[propget] HRESULT Length([out] [retval] UINT32* value);
[propput] HRESULT Length([in] UINT32 value);
}
"""
_iid_ = IID_IBuffer
IID_IAsyncOperation_1_WiFiDirectDevice = comtypes.GUID('{DAD01B61-A82D-566C-BA82-224C11500669}')
class IAsyncOperation_1_WiFiDirectDevice(IInspectable):
"""
[uuid(DAD01B61-A82D-566C-BA82-224C11500669)]
interface IAsyncOperation_1_WiFiDirectDevice : IInspectable
{
[propput] HRESULT Completed([in] IAsyncOperationCompletedHandler<Windows.Devices.WiFiDirect.WiFiDirectDevice*>* handler);
[propget] HRESULT Completed([out] [retval] IAsyncOperationCompletedHandler<Windows.Devices.WiFiDirect.WiFiDirectDevice*>** handler);
HRESULT GetResults([out] [retval] Windows.Devices.WiFiDirect.IWiFiDirectDevice** results);
}
"""
_iid_ = IID_IAsyncOperation_1_WiFiDirectDevice
def __init__(self):
self._OnCompletedFn = None
self._OnCompletedHandler = None
self._OnCompletedHandlerClass = None
@property
def OnCompleted(self):
logger.info("")
# type:()->FWiFiDirectAdvertisementPublisher_WiFiDirectAdvertisementPublisherCompletedEventArgs
return self._OnCompletedFn
@OnCompleted.setter
def OnCompleted(self, fn):
logger.info("")
# type:(FWiFiDirectAdvertisementPublisher_WiFiDirectAdvertisementPublisherCompletedEventArgs) -> None
if (self._OnCompletedHandler is not None):
self._OnCompletedHandler = None
self._OnCompletedHandlerClass = None
# XXX Does setting a null handler remove it?
# XXX Does this need to point to the right interface?
handler = wintypes.POINTER(IAsyncOperationCompletedHandler_1_WiFiDirectDevice)()
if (fn is not None):
self._OnCompletedHandlerClass = make_typed_event_handler_class(
IAsyncOperationCompletedHandler_1_WiFiDirectDevice,
wintypes.POINTER(IAsyncOperation_1_WiFiDirectDevice),
AsyncStatus,
fn
)
self._OnCompletedHandler = self._OnCompletedHandlerClass()
handler = self._OnCompletedHandler.QueryInterface(self._OnCompletedHandlerClass._event_handler_interface_)
self._IAsyncOperation_1_WiFiDirectDevice__com__set_Completed(handler)
self._OnCompletedFn = fn
IID_IWiFiDirectDevice = comtypes.GUID('{72DEAAA8-72EB-4DAE-8A28-8513355D2777}')
class IWiFiDirectDevice(IInspectable):
"""
[exclusiveto(Windows.Devices.WiFiDirect.WiFiDirectDevice)]
[uuid(72DEAAA8-72EB-4DAE-8A28-8513355D2777)]
interface IWiFiDirectDevice : IInspectable
{
[propget] HRESULT ConnectionStatus([out] [retval] Windows.Devices.WiFiDirect.WiFiDirectConnectionStatus* value);
[propget] HRESULT DeviceId([out] [retval] HSTRING* value);
[eventadd] HRESULT ConnectionStatusChanged([in] Windows.Foundation.TypedEventHandler<Windows.Devices.WiFiDirect.WiFiDirectDevice*, IInspectable*>* handler, [out] [retval] EventRegistrationToken* token);
[eventremove] HRESULT ConnectionStatusChanged([in] EventRegistrationToken token);
HRESULT GetConnectionEndpointPairs([out] [retval] Windows.Foundation.Collections.IVectorView<Windows.Networking.EndpointPair*>** value);
}
"""
_iid_ = IID_IWiFiDirectDevice
def __init__(self):
self._OnConnectionStatusChangedFn = None
self._OnConnectionStatusChangedToken = None
self._OnConnectionStatusChangedHandler = None
self._OnConnectionStatusChangedHandlerClass = None
@property
def OnConnectionStatusChanged(self):
logger.info("")
# type:()->FWiFiDirectAdvertisementPublisher_WiFiDirectAdvertisementPublisherConnectionStatusChangedEventArgs
return self._OnConnectionStatusChangedFn
@OnConnectionStatusChanged.setter
def OnConnectionStatusChanged(self, fn):
logger.info("")
# type:(FWiFiDirectAdvertisementPublisher_WiFiDirectAdvertisementPublisherConnectionStatusChangedEventArgs) -> None
if (self._OnConnectionStatusChangedToken is not None):
self._IWiFiDirectDevice__com_remove_ConnectionStatusChanged(self._OnConnectionStatusChangedToken)
self._OnConnectionStatusChangedToken = None
self._OnConnectionStatusChangedHandler = None
self._OnConnectionStatusChangedHandlerClass = None
if (fn is not None):
self._OnConnectionStatusChangedHandlerClass = make_typed_event_handler_class(
TypedEventHandler_2_WiFiDirectDevice_IInspectable,
wintypes.POINTER(WiFiDirectDevice),
wintypes.POINTER(IInspectable),
fn
)
self._OnConnectionStatusChangedHandler = self._OnConnectionStatusChangedHandlerClass()
self._OnConnectionStatusChangedToken = EventRegistrationToken()
handler = self._OnConnectionStatusChangedHandler.QueryInterface(self._OnConnectionStatusChangedHandlerClass._event_handler_interface_)
self._IWiFiDirectDevice__com_add_ConnectionStatusChanged(
handler,
ctypes.byref(self._OnConnectionStatusChangedToken)
)
self._OnConnectionStatusChangedFn = fn
IID_TypedEventHandler_2_WiFiDirectConnectionListener_WiFiDirectConnectionRequestedEventArgs = comtypes.GUID('{d04b0403-1fe2-532f-8e47-4823a14e624f}')
class TypedEventHandler_2_WiFiDirectConnectionListener_WiFiDirectConnectionRequestedEventArgs(comtypes.IUnknown):
"""
[uuid(d04b0403-1fe2-532f-8e47-4823a14e624f)]
interface TypedEventHandler_2_WiFiDirectConnectionListener_WiFiDirectConnectionRequestedEventArgs : IUnknown
{
HRESULT Invoke([in] WiFiDirectConnectionListener *sender, [in] WiFiDirectConnectionRequestedEventArgs *args);
}
"""
_iid_ = IID_TypedEventHandler_2_WiFiDirectConnectionListener_WiFiDirectConnectionRequestedEventArgs
IID_IWiFiDirectInformationElement = comtypes.GUID('{AFFB72D6-76BB-497E-AC8B-DC72838BC309}')
class IWiFiDirectInformationElement(IInspectable):
"""
[exclusiveto(Windows.Devices.WiFiDirect.WiFiDirectInformationElement)]
[uuid(AFFB72D6-76BB-497E-AC8B-DC72838BC309)]
interface IWiFiDirectInformationElement : IInspectable
{
[propget] HRESULT Oui([out] [retval] Windows.Storage.Streams.IBuffer** value);
[propput] HRESULT Oui([in] Windows.Storage.Streams.IBuffer* value);
[propget] HRESULT OuiType([out] [retval] BYTE* value);
[propput] HRESULT OuiType([in] BYTE value);
[propget] HRESULT Value([out] [retval] Windows.Storage.Streams.IBuffer** value);
[propput] HRESULT Value([in] Windows.Storage.Streams.IBuffer* value);
}
"""
_iid_ = IID_IWiFiDirectInformationElement
IID_TypedEventHandler_2_WiFiDirectDevice_IInspectable = comtypes.GUID('{9208929a-2a3c-50ad-aa08-a0a986edbabe}')
class TypedEventHandler_2_WiFiDirectDevice_IInspectable(comtypes.IUnknown):
"""
[uuid(9208929a-2a3c-50ad-aa08-a0a986edbabe)]
interface TypedEventHandler_2_WiFiDirectDevice_IInspectable : IUnknown
{
HRESULT Invoke([in] WiFiDirectDevice *sender, [in] IInspectable *args);
}
"""
_iid_ = IID_TypedEventHandler_2_WiFiDirectDevice_IInspectable
IID_IWiFiDirectConnectionParametersStatics = comtypes.GUID('{598AF493-7642-456F-B9D8-E8A9EB1F401A}')
class IWiFiDirectConnectionParametersStatics(IInspectable):
"""
[exclusiveto(Windows.Devices.WiFiDirect.WiFiDirectConnectionParameters)]
[uuid(598AF493-7642-456F-B9D8-E8A9EB1F401A)]
interface IWiFiDirectConnectionParametersStatics : IInspectable
{
HRESULT GetDevicePairingKinds([in] Windows.Devices.WiFiDirect.WiFiDirectConfigurationMethod configurationMethod, [out] [retval] Windows.Devices.Enumeration.DevicePairingKinds* result);
}
"""
_iid_ = IID_IWiFiDirectConnectionParametersStatics
IID_IAsyncOperation_1_DeviceThumbnail = comtypes.GUID('{9FC2B0BB-E446-44E2-AA61-9CAB8F636AF2}')
class IAsyncOperation_1_DeviceThumbnail(IInspectable):
"""
[uuid(2680336571, 58438, 17634, 170, 97, 156, 171, 143, 99, 106, 242)]
interface IAsyncOperation_1_DeviceThumbnail : IInspectable
{
}
"""
_iid_ = IID_IAsyncOperation_1_DeviceThumbnail
IID_IWiFiDirectConnectionParameters = comtypes.GUID('{B2E55405-5702-4B16-A02C-BBCD21EF6098}')
class IWiFiDirectConnectionParameters(IInspectable):
"""
[exclusiveto(Windows.Devices.WiFiDirect.WiFiDirectConnectionParameters)]
[uuid(B2E55405-5702-4B16-A02C-BBCD21EF6098)]
interface IWiFiDirectConnectionParameters : IInspectable
{
[propget] HRESULT GroupOwnerIntent([out] [retval] INT16* value);
[propput] HRESULT GroupOwnerIntent([in] INT16 value);
}
"""
_iid_ = IID_IWiFiDirectConnectionParameters
IID_IWiFiDirectConnectionParameters2 = comtypes.GUID('{AB3B0FBE-AA82-44B4-88C8-E3056B89801D}')
class IWiFiDirectConnectionParameters2(IInspectable):
"""
[exclusiveto(Windows.Devices.WiFiDirect.WiFiDirectConnectionParameters)]
[uuid(AB3B0FBE-AA82-44B4-88C8-E3056B89801D)]
interface IWiFiDirectConnectionParameters2 : IInspectable
{
[propget] HRESULT PreferenceOrderedConfigurationMethods([out] [retval] Windows.Foundation.Collections.IVector<Windows.Devices.WiFiDirect.WiFiDirectConfigurationMethod>** value);
[propget] HRESULT PreferredPairingProcedure([out] [retval] Windows.Devices.WiFiDirect.WiFiDirectPairingProcedure* value);
[propput] HRESULT PreferredPairingProcedure([in] Windows.Devices.WiFiDirect.WiFiDirectPairingProcedure value);
}
"""
_iid_ = IID_IWiFiDirectConnectionParameters2
IID_IAsyncOperationCompletedHandler_1_WiFiDirectDevice = comtypes.GUID('{d34abe17-fb19-57be-bc41-0eb83dea151c}')
class IAsyncOperationCompletedHandler_1_WiFiDirectDevice(comtypes.IUnknown):
"""
[uuid(d34abe17-fb19-57be-bc41-0eb83dea151c)]
interface IAsyncOperationCompletedHandler_1_WiFiDirectDevice : IUnknown
{
HRESULT Invoke([in] IAsyncOperation_1_WiFiDirectDevice *asyncInfo, [in] AsyncStatus status);
}
"""
_iid_ = IID_IAsyncOperationCompletedHandler_1_WiFiDirectDevice
IID_IDeviceInformation = comtypes.GUID('{ABA0FB95-4398-489D-8E44-E6130927011F}')
class IDeviceInformation(IInspectable):
"""
[exclusiveto(Windows.Devices.Enumeration.DeviceInformation)]
[uuid(ABA0FB95-4398-489D-8E44-E6130927011F)]
interface IDeviceInformation : IInspectable
{
[propget] HRESULT Id([out] [retval] HSTRING* value);
[propget] HRESULT Name([out] [retval] HSTRING* value);
[propget] HRESULT IsEnabled([out] [retval] boolean* value);
[propget] HRESULT IsDefault([out] [retval] boolean* value);
[propget] HRESULT EnclosureLocation([out] [retval] Windows.Devices.Enumeration.EnclosureLocation** value);
[propget] HRESULT Properties([out] [retval] Windows.Foundation.Collections.IMapView<HSTRING, IInspectable*>** value);
HRESULT Update([in] Windows.Devices.Enumeration.DeviceInformationUpdate* updateInfo);
HRESULT GetThumbnailAsync([out] [retval] Windows.Foundation.IAsyncOperation<Windows.Devices.Enumeration.DeviceThumbnail*>** asyncOp);
HRESULT GetGlyphThumbnailAsync([out] [retval] Windows.Foundation.IAsyncOperation<Windows.Devices.Enumeration.DeviceThumbnail*>** asyncOp);
}
"""
_iid_ = IID_IDeviceInformation
IID_IWiFiDirectConnectionListener = comtypes.GUID('{699C1B0D-8D13-4EE9-B9EC-9C72F8251F7D}')
class IWiFiDirectConnectionListener(IInspectable):
"""
[exclusiveto(Windows.Devices.WiFiDirect.WiFiDirectConnectionListener)]
[uuid(699C1B0D-8D13-4EE9-B9EC-9C72F8251F7D)]
interface IWiFiDirectConnectionListener : IInspectable
{
[eventadd] HRESULT ConnectionRequested([in] Windows.Foundation.TypedEventHandler<Windows.Devices.WiFiDirect.WiFiDirectConnectionListener*, Windows.Devices.WiFiDirect.WiFiDirectConnectionRequestedEventArgs*>* handler, [out] [retval] EventRegistrationToken* token);
[eventremove] HRESULT ConnectionRequested([in] EventRegistrationToken token);
}
"""
_iid_ = IID_IWiFiDirectConnectionListener
def __init__(self):
self._OnConnectionRequestedFn = None
self._OnConnectionRequestedToken = None
self._OnConnectionRequestedHandler = None
self._OnConnectionRequestedHandlerClass = None
@property
def OnConnectionRequested(self):
logger.info("")
# type:()->FWiFiDirectAdvertisementPublisher_WiFiDirectAdvertisementPublisherConnectionRequestedEventArgs
return self._OnConnectionRequestedFn
@OnConnectionRequested.setter
def OnConnectionRequested(self, fn):
logger.info("")
# type:(FWiFiDirectAdvertisementPublisher_WiFiDirectAdvertisementPublisherConnectionRequestedEventArgs) -> None
if (self._OnConnectionRequestedToken is not None):
self._IWiFiDirectConnectionListener__com_remove_ConnectionRequested(self._OnConnectionRequestedToken)
self._OnConnectionRequestedToken = None
self._OnConnectionRequestedHandler = None
self._OnConnectionRequestedHandlerClass = None
if (fn is not None):
self._OnConnectionRequestedHandlerClass = make_typed_event_handler_class(
TypedEventHandler_2_WiFiDirectConnectionListener_WiFiDirectConnectionRequestedEventArgs,
wintypes.POINTER(WiFiDirectConnectionListener),
wintypes.POINTER(WiFiDirectConnectionRequestedEventArgs),
fn
)
self._OnConnectionRequestedHandler = self._OnConnectionRequestedHandlerClass()
self._OnConnectionRequestedToken = EventRegistrationToken()
handler = self._OnConnectionRequestedHandler.QueryInterface(self._OnConnectionRequestedHandlerClass._event_handler_interface_)
self._IWiFiDirectConnectionListener__com_add_ConnectionRequested(
handler,
ctypes.byref(self._OnConnectionRequestedToken)
)
self._OnConnectionRequestedFn = fn
IID_IWiFiDirectConnectionRequestedEventArgs = comtypes.GUID('{F99D20BE-D38D-484F-8215-E7B65ABF244C}')
class IWiFiDirectConnectionRequestedEventArgs(IInspectable):
"""
[exclusiveto(Windows.Devices.WiFiDirect.WiFiDirectConnectionRequestedEventArgs)]
[uuid(F99D20BE-D38D-484F-8215-E7B65ABF244C)]
interface IWiFiDirectConnectionRequestedEventArgs : IInspectable
{
HRESULT GetConnectionRequest([out] [retval] Windows.Devices.WiFiDirect.WiFiDirectConnectionRequest** result);
}
"""
_iid_ = IID_IWiFiDirectConnectionRequestedEventArgs
IID_IWiFiDirectAdvertisementPublisherStatusChangedEventArgs = comtypes.GUID('{AAFDE53C-5481-46E6-90DD-32116518F192}')
class IWiFiDirectAdvertisementPublisherStatusChangedEventArgs(IInspectable):
"""
[exclusiveto(Windows.Devices.WiFiDirect.WiFiDirectAdvertisementPublisherStatusChangedEventArgs)]
[uuid(AAFDE53C-5481-46E6-90DD-32116518F192)]
interface IWiFiDirectAdvertisementPublisherStatusChangedEventArgs : IInspectable
{
[propget] HRESULT Status([out] [retval] Windows.Devices.WiFiDirect.WiFiDirectAdvertisementPublisherStatus* value);
[propget] HRESULT Error([out] [retval] Windows.Devices.WiFiDirect.WiFiDirectError* value);
}
"""
_iid_ = IID_IWiFiDirectAdvertisementPublisherStatusChangedEventArgs
IID_IMapView_2_HSTRING_IInspectable = comtypes.GUID('{e480ce40-a338-4ada-adcf-272272e48cb9}')
class IMapView_2_HSTRING_IInspectable(IInspectable):
"""
uuid(e480ce40-a338-4ada-adcf-272272e48cb9)
interface IMapView_2_HSTRING_IInspectable : IInspectable
{
}
"""
_iid_ = IID_IMapView_2_HSTRING_IInspectable
IID_IWiFiDirectDeviceStatics = comtypes.GUID('{E86CB57C-3AAC-4851-A792-482AAF931B04}')
class IWiFiDirectDeviceStatics(IInspectable):
"""
[exclusiveto(Windows.Devices.WiFiDirect.WiFiDirectDevice)]
[uuid(E86CB57C-3AAC-4851-A792-482AAF931B04)]
interface IWiFiDirectDeviceStatics : IInspectable
{
[overload("GetDeviceSelector")] HRESULT GetDeviceSelector([out] [retval] HSTRING* deviceSelector);
[overload("FromIdAsync")] HRESULT FromIdAsync([in] HSTRING deviceId, [out] [retval] Windows.Foundation.IAsyncOperation<Windows.Devices.WiFiDirect.WiFiDirectDevice*>** asyncOp);
}
"""
_iid_ = IID_IWiFiDirectDeviceStatics
IID_IVector_1_WiFiDirectInformationElement = comtypes.GUID('{913337e9-11a1-4345-a3a2-4e7f956e222d}')
class IVector_1_WiFiDirectInformationElement(IInspectable):
"""
uuid(913337e9-11a1-4345-a3a2-4e7f956e222d)
interface IVector_1_WiFiDirectInformationElement : IInspectable
{
}
"""
_iid_ = IID_IVector_1_WiFiDirectInformationElement
IID_IVectorView_1_EndpointPair = comtypes.GUID('{bbe1fa4c-b0e3-4583-baef-1f1b2e483e56}')
class IVectorView_1_EndpointPair(IInspectable):
"""
uuid(bbe1fa4c-b0e3-4583-baef-1f1b2e483e56)
interface IVectorView_1_EndpointPair : IInspectable
{
}
"""
_iid_ = IID_IVectorView_1_EndpointPair
IID_IPasswordCredential = comtypes.GUID('{6AB18989-C720-41A7-A6C1-FEADB36329A0}')
class IPasswordCredential(IInspectable):
"""
[exclusiveto(Windows.Security.Credentials.PasswordCredential)]
[uuid(6AB18989-C720-41A7-A6C1-FEADB36329A0)]
interface IPasswordCredential : IInspectable
{
[propget] HRESULT Resource([out] [retval] HSTRING* resource);
[propput] HRESULT Resource([in] HSTRING resource);
[propget] HRESULT UserName([out] [retval] HSTRING* userName);
[propput] HRESULT UserName([in] HSTRING userName);
[propget] HRESULT Password([out] [retval] HSTRING* password);
[propput] HRESULT Password([in] HSTRING password);
HRESULT RetrievePassword();
[propget] HRESULT Properties([out] [retval] Windows.Foundation.Collections.IPropertySet** props);
}
"""
_iid_ = IID_IPasswordCredential
IID_TypedEventHandler_2_WiFiDirectAdvertisementPublisher_WiFiDirectAdvertisementPublisherStatusChangedEventArgs = comtypes.GUID('{de73cba7-370d-550c-b23a-53dd0b4e480d}')
class TypedEventHandler_2_WiFiDirectAdvertisementPublisher_WiFiDirectAdvertisementPublisherStatusChangedEventArgs(comtypes.IUnknown):
"""
[uuid(de73cba7-370d-550c-b23a-53dd0b4e480d)]
interface TypedEventHandler_2_WiFiDirectAdvertisementPublisher_WiFiDirectAdvertisementPublisherStatusChangedEventArgs : IUnknown
{
HRESULT Invoke([in] WiFiDirectAdvertisementPublisher *sender, [in] WiFiDirectAdvertisementPublisherStatusChangedEventArgs *args);
}
"""
_iid_ = IID_TypedEventHandler_2_WiFiDirectAdvertisementPublisher_WiFiDirectAdvertisementPublisherStatusChangedEventArgs
class WiFiDirectDevice(IWiFiDirectDevice):
"""
[static(Windows.Devices.WiFiDirect.IWiFiDirectDeviceStatics, Windows.Foundation.UniversalApiContract, 1.0)]
[static(Windows.Devices.WiFiDirect.IWiFiDirectDeviceStatics2, Windows.Foundation.UniversalApiContract, 1.0)]
runtimeclass WiFiDirectDevice
{
[default] interface Windows.Devices.WiFiDirect.IWiFiDirectDevice;
}
"""
class IWiFiDirectDeviceStatics_s(IInspectable):
_iid_ = IID_IWiFiDirectDeviceStatics
def __new__(cls):
static = activate_static("Windows.Devices.WiFiDirect.WiFiDirectDevice", IWiFiDirectDeviceStatics)
return static
class IWiFiDirectDeviceStatics2_s(IInspectable):
_iid_ = IID_IWiFiDirectDeviceStatics2
def __new__(cls):
static = activate_static("Windows.Devices.WiFiDirect.WiFiDirectDevice", IWiFiDirectDeviceStatics2)
return static
class WiFiDirectConnectionRequest(IWiFiDirectConnectionRequest):
"""
runtimeclass WiFiDirectConnectionRequest
{
[default] interface Windows.Devices.WiFiDirect.IWiFiDirectConnectionRequest;
}
"""
class WiFiDirectInformationElement(IWiFiDirectInformationElement):
"""
[activatable(Windows.Foundation.UniversalApiContract, 1.0)]
[static(Windows.Devices.WiFiDirect.IWiFiDirectInformationElementStatics, Windows.Foundation.UniversalApiContract, 1.0)]
runtimeclass WiFiDirectInformationElement
{
[default] interface Windows.Devices.WiFiDirect.IWiFiDirectInformationElement;
}
"""
def __new__(cls):
instance = activate_instance('Windows.Devices.WiFiDirect.WiFiDirectInformationElement', IWiFiDirectInformationElement)
# XXX This calls __init__ to wrap the object just created so the
# pythonic methods in the wrapper can be used (eg event
# hooking), do it in activate_instance or find another
# mechanism?
instance.__init__()
return instance
class IWiFiDirectInformationElementStatics_s(IInspectable):
_iid_ = IID_IWiFiDirectInformationElementStatics
def __new__(cls):
static = activate_static("Windows.Devices.WiFiDirect.WiFiDirectInformationElement", IWiFiDirectInformationElementStatics)
return static
class WiFiDirectConnectionParameters(IWiFiDirectConnectionParameters):
"""
[activatable(Windows.Foundation.UniversalApiContract, 1.0)]
[static(Windows.Devices.WiFiDirect.IWiFiDirectConnectionParametersStatics, Windows.Foundation.UniversalApiContract, 2.0)]
runtimeclass WiFiDirectConnectionParameters
{
[default] interface Windows.Devices.WiFiDirect.IWiFiDirectConnectionParameters;
}
"""
def __new__(cls):
instance = activate_instance('Windows.Devices.WiFiDirect.WiFiDirectConnectionParameters', IWiFiDirectConnectionParameters)
# XXX This calls __init__ to wrap the object just created so the
# pythonic methods in the wrapper can be used (eg event
# hooking), do it in activate_instance or find another
# mechanism?
instance.__init__()
return instance
class IWiFiDirectConnectionParametersStatics_s(IInspectable):
_iid_ = IID_IWiFiDirectConnectionParametersStatics
def __new__(cls):
static = activate_static("Windows.Devices.WiFiDirect.WiFiDirectConnectionParameters", IWiFiDirectConnectionParametersStatics)
return static
class WiFiDirectConnectionRequestedEventArgs(IWiFiDirectConnectionRequestedEventArgs):
"""
runtimeclass WiFiDirectConnectionRequestedEventArgs
{
[default] interface Windows.Devices.WiFiDirect.IWiFiDirectConnectionRequestedEventArgs;
}
"""
class WiFiDirectConnectionListener(IWiFiDirectConnectionListener):
"""
[activatable(Windows.Foundation.UniversalApiContract, 1.0)]
runtimeclass WiFiDirectConnectionListener
{
[default] interface Windows.Devices.WiFiDirect.IWiFiDirectConnectionListener;
}
"""
def __new__(cls):
instance = activate_instance('Windows.Devices.WiFiDirect.WiFiDirectConnectionListener', IWiFiDirectConnectionListener)
# XXX This calls __init__ to wrap the object just created so the
# pythonic methods in the wrapper can be used (eg event
# hooking), do it in activate_instance or find another
# mechanism?
instance.__init__()
return instance
class PasswordCredential(IPasswordCredential):
"""
runtimeclass PasswordCredential
{
[default] interface Windows.Security.Credentials.IPasswordCredential;
}
"""
class WiFiDirectAdvertisementPublisherStatusChangedEventArgs(IWiFiDirectAdvertisementPublisherStatusChangedEventArgs):
"""
runtimeclass WiFiDirectAdvertisementPublisherStatusChangedEventArgs
{
[default] interface Windows.Devices.WiFiDirect.IWiFiDirectAdvertisementPublisherStatusChangedEventArgs;
}
"""
class WiFiDirectAdvertisementPublisher(IWiFiDirectAdvertisementPublisher):
"""
[activatable(Windows.Foundation.UniversalApiContract, 1.0)]
runtimeclass WiFiDirectAdvertisementPublisher
{
[default] interface Windows.Devices.WiFiDirect.IWiFiDirectAdvertisementPublisher;
}
"""
def __new__(cls):
instance = activate_instance('Windows.Devices.WiFiDirect.WiFiDirectAdvertisementPublisher', IWiFiDirectAdvertisementPublisher)
# XXX This calls __init__ to wrap the object just created so the
# pythonic methods in the wrapper can be used (eg event
# hooking), do it in activate_instance or find another
# mechanism?
instance.__init__()
return instance
class DeviceInformation(IDeviceInformation):
"""
runtimeclass DeviceInformation
{
[default] interface Windows.Devices.Enumeration.IDeviceInformation;
}
"""
class WiFiDirectLegacySettings(IWiFiDirectLegacySettings):
"""
runtimeclass WiFiDirectLegacySettings
{
[default] interface Windows.Devices.WiFiDirect.IWiFiDirectLegacySettings;
}
"""
class WiFiDirectAdvertisement(IWiFiDirectAdvertisement):
"""
runtimeclass WiFiDirectAdvertisement
{
[default] interface Windows.Devices.WiFiDirect.IWiFiDirectAdvertisement;
}
"""
EnclosureLocation._methods_ = [
]
IWiFiDirectDeviceStatics2._methods_ = [
# [overload("GetDeviceSelector")] HRESULT GetDeviceSelector([in] Windows.Devices.WiFiDirect.WiFiDirectDeviceSelectorType type,[out] [retval] HSTRING* result)
comtypes.COMMETHOD(
['overload("GetDeviceSelector")'], wintypes.HRESULT, 'GetDeviceSelector',
(['in'], WiFiDirectDeviceSelectorType, 'type'),
(['out','retval'], wintypes.POINTER(HSTRING), 'result'),
),
# [overload("FromIdAsync")] HRESULT FromIdAsync([in] HSTRING deviceId,[in] Windows.Devices.WiFiDirect.WiFiDirectConnectionParameters* connectionParameters,[out] [retval] Windows.Foundation.IAsyncOperation<Windows.Devices.WiFiDirect.WiFiDirectDevice*>** result)
comtypes.COMMETHOD(
['overload("FromIdAsync")'], wintypes.HRESULT, 'FromIdAsync',
(['in'], HSTRING, 'deviceId'),
(['in'], wintypes.POINTER(WiFiDirectConnectionParameters), 'connectionParameters'),
(['out','retval'], wintypes.POINTER(wintypes.POINTER(IAsyncOperation_1_WiFiDirectDevice)), 'result'),
),
]
IWiFiDirectAdvertisement._methods_ = [
# [propget] HRESULT InformationElements([out] [retval] Windows.Foundation.Collections.IVector<Windows.Devices.WiFiDirect.WiFiDirectInformationElement*>** value)
comtypes.COMMETHOD(
['propget'], wintypes.HRESULT, 'InformationElements',
(['out','retval'], wintypes.POINTER(wintypes.POINTER(IVector_1_WiFiDirectInformationElement)), 'value'),
),
# [propput] HRESULT InformationElements([in] Windows.Foundation.Collections.IVector<Windows.Devices.WiFiDirect.WiFiDirectInformationElement*>* value)
comtypes.COMMETHOD(
['propput'], wintypes.HRESULT, 'InformationElements',
(['in'], wintypes.POINTER(IVector_1_WiFiDirectInformationElement), 'value'),
),
# [propget] HRESULT ListenStateDiscoverability([out] [retval] Windows.Devices.WiFiDirect.WiFiDirectAdvertisementListenStateDiscoverability* value)
comtypes.COMMETHOD(
['propget'], wintypes.HRESULT, 'ListenStateDiscoverability',
(['out','retval'], wintypes.POINTER(WiFiDirectAdvertisementListenStateDiscoverability), 'value'),
),
# [propput] HRESULT ListenStateDiscoverability([in] Windows.Devices.WiFiDirect.WiFiDirectAdvertisementListenStateDiscoverability value)
comtypes.COMMETHOD(
['propput'], wintypes.HRESULT, 'ListenStateDiscoverability',
(['in'], WiFiDirectAdvertisementListenStateDiscoverability, 'value'),
),
# [propget] HRESULT IsAutonomousGroupOwnerEnabled([out] [retval] boolean* value)
comtypes.COMMETHOD(
['propget'], wintypes.HRESULT, 'IsAutonomousGroupOwnerEnabled',
(['out','retval'], wintypes.POINTER(wintypes.BOOL), 'value'),
),
# [propput] HRESULT IsAutonomousGroupOwnerEnabled([in] boolean value)
comtypes.COMMETHOD(
['propput'], wintypes.HRESULT, 'IsAutonomousGroupOwnerEnabled',
(['in'], wintypes.BOOL, 'value'),
),
# [propget] HRESULT LegacySettings([out] [retval] Windows.Devices.WiFiDirect.WiFiDirectLegacySettings** value)
comtypes.COMMETHOD(
['propget'], wintypes.HRESULT, 'LegacySettings',
(['out','retval'], wintypes.POINTER(wintypes.POINTER(WiFiDirectLegacySettings)), 'value'),
),
]
IWiFiDirectAdvertisementPublisher._methods_ = [
# [propget] HRESULT Advertisement([out] [retval] Windows.Devices.WiFiDirect.WiFiDirectAdvertisement** value)
comtypes.COMMETHOD(
['propget'], wintypes.HRESULT, 'Advertisement',
(['out','retval'], wintypes.POINTER(wintypes.POINTER(WiFiDirectAdvertisement)), 'value'),
),
# [propget] HRESULT Status([out] [retval] Windows.Devices.WiFiDirect.WiFiDirectAdvertisementPublisherStatus* value)
comtypes.COMMETHOD(
['propget'], wintypes.HRESULT, 'Status',
(['out','retval'], wintypes.POINTER(WiFiDirectAdvertisementPublisherStatus), 'value'),
),
# [eventadd] HRESULT StatusChanged([in] Windows.Foundation.TypedEventHandler<Windows.Devices.WiFiDirect.WiFiDirectAdvertisementPublisher*,Windows.Devices.WiFiDirect.WiFiDirectAdvertisementPublisherStatusChangedEventArgs*>* handler,[out] [retval] EventRegistrationToken* token)
comtypes.COMMETHOD(
['eventadd'], wintypes.HRESULT, 'add_StatusChanged',
(['in'], wintypes.POINTER(TypedEventHandler_2_WiFiDirectAdvertisementPublisher_WiFiDirectAdvertisementPublisherStatusChangedEventArgs), 'handler'),
(['out','retval'], wintypes.POINTER(EventRegistrationToken), 'token'),
),
# [eventremove] HRESULT StatusChanged([in] EventRegistrationToken token)
comtypes.COMMETHOD(
['eventremove'], wintypes.HRESULT, 'remove_StatusChanged',
(['in'], EventRegistrationToken, 'token'),
),
# [None] HRESULT Start()
comtypes.COMMETHOD(
[], wintypes.HRESULT, 'Start',
),
# [None] HRESULT Stop()
comtypes.COMMETHOD(
[], wintypes.HRESULT, 'Stop',
),
]
IWiFiDirectInformationElementStatics._methods_ = [
# [None] HRESULT CreateFromBuffer([in] Windows.Storage.Streams.IBuffer* buffer,[out] [retval] Windows.Foundation.Collections.IVector<Windows.Devices.WiFiDirect.WiFiDirectInformationElement*>** result)
comtypes.COMMETHOD(
[], wintypes.HRESULT, 'CreateFromBuffer',
(['in'], wintypes.POINTER(IBuffer), 'buffer'),
(['out','retval'], wintypes.POINTER(wintypes.POINTER(IVector_1_WiFiDirectInformationElement)), 'result'),
),
# [None] HRESULT CreateFromDeviceInformation([in] Windows.Devices.Enumeration.DeviceInformation* deviceInformation,[out] [retval] Windows.Foundation.Collections.IVector<Windows.Devices.WiFiDirect.WiFiDirectInformationElement*>** result)
comtypes.COMMETHOD(
[], wintypes.HRESULT, 'CreateFromDeviceInformation',
(['in'], wintypes.POINTER(DeviceInformation), 'deviceInformation'),
(['out','retval'], wintypes.POINTER(wintypes.POINTER(IVector_1_WiFiDirectInformationElement)), 'result'),
),
]
IWiFiDirectAdvertisement2._methods_ = [
# [propget] HRESULT SupportedConfigurationMethods([out] [retval] Windows.Foundation.Collections.IVector<Windows.Devices.WiFiDirect.WiFiDirectConfigurationMethod>** value)
comtypes.COMMETHOD(
['propget'], wintypes.HRESULT, 'SupportedConfigurationMethods',
(['out','retval'], wintypes.POINTER(wintypes.POINTER(IVector_1_WiFiDirectConfigurationMethod)), 'value'),
),
]
IWiFiDirectConnectionRequest._methods_ = [
# [propget] HRESULT DeviceInformation([out] [retval] Windows.Devices.Enumeration.DeviceInformation** value)
comtypes.COMMETHOD(
['propget'], wintypes.HRESULT, 'DeviceInformation',
(['out','retval'], wintypes.POINTER(wintypes.POINTER(DeviceInformation)), 'value'),
),
]
IVector_1_WiFiDirectConfigurationMethod._methods_ = [
]
IWiFiDirectLegacySettings._methods_ = [
# [propget] HRESULT IsEnabled([out] [retval] boolean* value)
comtypes.COMMETHOD(
['propget'], wintypes.HRESULT, 'IsEnabled',
(['out','retval'], wintypes.POINTER(wintypes.BOOL), 'value'),
),
# [propput] HRESULT IsEnabled([in] boolean value)
comtypes.COMMETHOD(
['propput'], wintypes.HRESULT, 'IsEnabled',
(['in'], wintypes.BOOL, 'value'),
),
# [propget] HRESULT Ssid([out] [retval] HSTRING* value)
comtypes.COMMETHOD(
['propget'], wintypes.HRESULT, 'Ssid',
(['out','retval'], wintypes.POINTER(HSTRING), 'value'),
),
# [propput] HRESULT Ssid([in] HSTRING value)
comtypes.COMMETHOD(
['propput'], wintypes.HRESULT, 'Ssid',
(['in'], HSTRING, 'value'),
),
# [propget] HRESULT Passphrase([out] [retval] Windows.Security.Credentials.PasswordCredential** value)
comtypes.COMMETHOD(
['propget'], wintypes.HRESULT, 'Passphrase',
(['out','retval'], wintypes.POINTER(wintypes.POINTER(PasswordCredential)), 'value'),
),
# [propput] HRESULT Passphrase([in] Windows.Security.Credentials.PasswordCredential* value)
comtypes.COMMETHOD(
['propput'], wintypes.HRESULT, 'Passphrase',
(['in'], wintypes.POINTER(PasswordCredential), 'value'),
),
]
DeviceInformationUpdate._methods_ = [
]
IPropertySet._methods_ = [
]