This repository has been archived by the owner on Jan 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
ole32.go
1875 lines (1696 loc) · 60.3 KB
/
ole32.go
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
// This file was automatically generated by https://github.com/kbinani/win/blob/generator/internal/cmd/gen/gen.go
// go run internal/cmd/gen/gen.go
// +build windows
package win
import (
"unsafe"
)
var (
// Library
libole32 uintptr
// Functions
coGetInterceptor uintptr
coGetInterceptorFromTypeInfo uintptr
propVariantChangeType uintptr
bindMoniker uintptr
cLSIDFromProgIDEx uintptr
cLSIDFromString uintptr
coAddRefServerProcess uintptr
coAllowSetForegroundWindow uintptr
coBuildVersion uintptr
coCopyProxy uintptr
coCreateFreeThreadedMarshaler uintptr
coCreateGuid uintptr
coDisconnectObject uintptr
coFileTimeNow uintptr
coFreeAllLibraries uintptr
coFreeLibrary uintptr
coGetActivationState uintptr
coGetApartmentType uintptr
coGetCallContext uintptr
coGetCallState uintptr
coGetCallerTID uintptr
coGetContextToken uintptr
coGetCurrentLogicalThreadId uintptr
coGetCurrentProcess uintptr
coGetDefaultContext uintptr
coGetInstanceFromIStorage uintptr
coGetInterfaceAndReleaseStream uintptr
coGetMalloc uintptr
coGetMarshalSizeMax uintptr
coGetObject uintptr
coGetObjectContext uintptr
coGetPSClsid uintptr
coGetStandardMarshal uintptr
coGetState uintptr
coGetTreatAsClass uintptr
coImpersonateClient uintptr
coInitialize uintptr
coInitializeSecurity uintptr
coInitializeWOW uintptr
coIsHandlerConnected uintptr
coIsOle1Class uintptr
coLoadLibrary uintptr
coLockObjectExternal uintptr
coMarshalHresult uintptr
coMarshalInterThreadInterfaceInStream uintptr
coMarshalInterface uintptr
coQueryClientBlanket uintptr
coQueryProxyBlanket uintptr
coRegisterChannelHook uintptr
coRegisterClassObject uintptr
coRegisterInitializeSpy uintptr
coRegisterMallocSpy uintptr
coRegisterMessageFilter uintptr
coRegisterPSClsid uintptr
coReleaseMarshalData uintptr
coReleaseServerProcess uintptr
coResumeClassObjects uintptr
coRevertToSelf uintptr
coRevokeInitializeSpy uintptr
coRevokeMallocSpy uintptr
coSetProxyBlanket uintptr
coSetState uintptr
coSuspendClassObjects uintptr
coSwitchCallContext uintptr
coTaskMemAlloc uintptr
coTaskMemFree uintptr
coTaskMemRealloc uintptr
coTreatAsClass uintptr
coUnmarshalHresult uintptr
coUnmarshalInterface uintptr
coWaitForMultipleHandles uintptr
createAntiMoniker uintptr
createBindCtx uintptr
createClassMoniker uintptr
createDataAdviseHolder uintptr
createDataCache uintptr
createFileMoniker uintptr
createGenericComposite uintptr
createILockBytesOnHGlobal uintptr
createItemMoniker uintptr
createOleAdviseHolder uintptr
createPointerMoniker uintptr
createStreamOnHGlobal uintptr
dllDebugObjectRPCHook uintptr
doDragDrop uintptr
fmtIdToPropStgName uintptr
freePropVariantArray uintptr
getClassFile uintptr
getConvertStg uintptr
getHGlobalFromILockBytes uintptr
getHGlobalFromStream uintptr
getRunningObjectTable uintptr
iIDFromString uintptr
isAccelerator uintptr
isEqualGUID uintptr
isValidInterface uintptr
mkParseDisplayName uintptr
monikerCommonPrefixWith uintptr
oleBuildVersion uintptr
oleConvertIStorageToOLESTREAM uintptr
oleConvertOLESTREAMToIStorage uintptr
oleCreate uintptr
oleCreateDefaultHandler uintptr
oleCreateEmbeddingHelper uintptr
oleCreateFromData uintptr
oleCreateFromDataEx uintptr
oleCreateFromFile uintptr
oleCreateFromFileEx uintptr
oleCreateLink uintptr
oleCreateLinkFromData uintptr
oleCreateLinkToFile uintptr
oleCreateMenuDescriptor uintptr
oleCreateStaticFromData uintptr
oleDestroyMenuDescriptor uintptr
oleDoAutoConvert uintptr
oleDraw uintptr
oleDuplicateData uintptr
oleFlushClipboard uintptr
oleGetAutoConvert uintptr
oleGetClipboard uintptr
oleGetIconOfClass uintptr
oleInitializeWOW uintptr
oleIsCurrentClipboard uintptr
oleIsRunning uintptr
oleLoad uintptr
oleLoadFromStream uintptr
oleLockRunning uintptr
oleMetafilePictFromIconAndLabel uintptr
oleNoteObjectVisible uintptr
oleQueryCreateFromData uintptr
oleQueryLinkFromData uintptr
oleRegEnumVerbs uintptr
oleRegGetMiscStatus uintptr
oleRegGetUserType uintptr
oleSave uintptr
oleSaveToStream uintptr
oleSetAutoConvert uintptr
oleSetClipboard uintptr
oleSetContainedObject uintptr
oleSetMenuDescriptor uintptr
oleTranslateAccelerator uintptr
propStgNameToFmtId uintptr
propSysAllocString uintptr
propSysFreeString uintptr
propVariantClear uintptr
propVariantCopy uintptr
readClassStg uintptr
readClassStm uintptr
readFmtUserTypeStg uintptr
registerDragDrop uintptr
releaseStgMedium uintptr
revokeDragDrop uintptr
setConvertStg uintptr
stgCreateDocfile uintptr
stgCreateDocfileOnILockBytes uintptr
stgCreatePropSetStg uintptr
stgCreatePropStg uintptr
stgIsStorageFile uintptr
stgIsStorageILockBytes uintptr
stgOpenPropStg uintptr
stgSetTimes uintptr
stringFromCLSID uintptr
stringFromGUID2 uintptr
wdtpInterfacePointer_UserFree uintptr
writeClassStg uintptr
writeClassStm uintptr
writeFmtUserTypeStg uintptr
)
func init() {
// Library
libole32 = doLoadLibrary("ole32.dll")
// Functions
coGetInterceptor = doGetProcAddress(libole32, "CoGetInterceptor")
coGetInterceptorFromTypeInfo = doGetProcAddress(libole32, "CoGetInterceptorFromTypeInfo")
propVariantChangeType = doGetProcAddress(libole32, "PropVariantChangeType")
bindMoniker = doGetProcAddress(libole32, "BindMoniker")
cLSIDFromProgIDEx = doGetProcAddress(libole32, "CLSIDFromProgIDEx")
cLSIDFromString = doGetProcAddress(libole32, "CLSIDFromString")
coAddRefServerProcess = doGetProcAddress(libole32, "CoAddRefServerProcess")
coAllowSetForegroundWindow = doGetProcAddress(libole32, "CoAllowSetForegroundWindow")
coBuildVersion = doGetProcAddress(libole32, "CoBuildVersion")
coCopyProxy = doGetProcAddress(libole32, "CoCopyProxy")
coCreateFreeThreadedMarshaler = doGetProcAddress(libole32, "CoCreateFreeThreadedMarshaler")
coCreateGuid = doGetProcAddress(libole32, "CoCreateGuid")
coDisconnectObject = doGetProcAddress(libole32, "CoDisconnectObject")
coFileTimeNow = doGetProcAddress(libole32, "CoFileTimeNow")
coFreeAllLibraries = doGetProcAddress(libole32, "CoFreeAllLibraries")
coFreeLibrary = doGetProcAddress(libole32, "CoFreeLibrary")
coGetActivationState = doGetProcAddress(libole32, "CoGetActivationState")
coGetApartmentType = doGetProcAddress(libole32, "CoGetApartmentType")
coGetCallContext = doGetProcAddress(libole32, "CoGetCallContext")
coGetCallState = doGetProcAddress(libole32, "CoGetCallState")
coGetCallerTID = doGetProcAddress(libole32, "CoGetCallerTID")
coGetContextToken = doGetProcAddress(libole32, "CoGetContextToken")
coGetCurrentLogicalThreadId = doGetProcAddress(libole32, "CoGetCurrentLogicalThreadId")
coGetCurrentProcess = doGetProcAddress(libole32, "CoGetCurrentProcess")
coGetDefaultContext = doGetProcAddress(libole32, "CoGetDefaultContext")
coGetInstanceFromIStorage = doGetProcAddress(libole32, "CoGetInstanceFromIStorage")
coGetInterfaceAndReleaseStream = doGetProcAddress(libole32, "CoGetInterfaceAndReleaseStream")
coGetMalloc = doGetProcAddress(libole32, "CoGetMalloc")
coGetMarshalSizeMax = doGetProcAddress(libole32, "CoGetMarshalSizeMax")
coGetObject = doGetProcAddress(libole32, "CoGetObject")
coGetObjectContext = doGetProcAddress(libole32, "CoGetObjectContext")
coGetPSClsid = doGetProcAddress(libole32, "CoGetPSClsid")
coGetStandardMarshal = doGetProcAddress(libole32, "CoGetStandardMarshal")
coGetState = doGetProcAddress(libole32, "CoGetState")
coGetTreatAsClass = doGetProcAddress(libole32, "CoGetTreatAsClass")
coImpersonateClient = doGetProcAddress(libole32, "CoImpersonateClient")
coInitialize = doGetProcAddress(libole32, "CoInitialize")
coInitializeSecurity = doGetProcAddress(libole32, "CoInitializeSecurity")
coInitializeWOW = doGetProcAddress(libole32, "CoInitializeWOW")
coIsHandlerConnected = doGetProcAddress(libole32, "CoIsHandlerConnected")
coIsOle1Class = doGetProcAddress(libole32, "CoIsOle1Class")
coLoadLibrary = doGetProcAddress(libole32, "CoLoadLibrary")
coLockObjectExternal = doGetProcAddress(libole32, "CoLockObjectExternal")
coMarshalHresult = doGetProcAddress(libole32, "CoMarshalHresult")
coMarshalInterThreadInterfaceInStream = doGetProcAddress(libole32, "CoMarshalInterThreadInterfaceInStream")
coMarshalInterface = doGetProcAddress(libole32, "CoMarshalInterface")
coQueryClientBlanket = doGetProcAddress(libole32, "CoQueryClientBlanket")
coQueryProxyBlanket = doGetProcAddress(libole32, "CoQueryProxyBlanket")
coRegisterChannelHook = doGetProcAddress(libole32, "CoRegisterChannelHook")
coRegisterClassObject = doGetProcAddress(libole32, "CoRegisterClassObject")
coRegisterInitializeSpy = doGetProcAddress(libole32, "CoRegisterInitializeSpy")
coRegisterMallocSpy = doGetProcAddress(libole32, "CoRegisterMallocSpy")
coRegisterMessageFilter = doGetProcAddress(libole32, "CoRegisterMessageFilter")
coRegisterPSClsid = doGetProcAddress(libole32, "CoRegisterPSClsid")
coReleaseMarshalData = doGetProcAddress(libole32, "CoReleaseMarshalData")
coReleaseServerProcess = doGetProcAddress(libole32, "CoReleaseServerProcess")
coResumeClassObjects = doGetProcAddress(libole32, "CoResumeClassObjects")
coRevertToSelf = doGetProcAddress(libole32, "CoRevertToSelf")
coRevokeInitializeSpy = doGetProcAddress(libole32, "CoRevokeInitializeSpy")
coRevokeMallocSpy = doGetProcAddress(libole32, "CoRevokeMallocSpy")
coSetProxyBlanket = doGetProcAddress(libole32, "CoSetProxyBlanket")
coSetState = doGetProcAddress(libole32, "CoSetState")
coSuspendClassObjects = doGetProcAddress(libole32, "CoSuspendClassObjects")
coSwitchCallContext = doGetProcAddress(libole32, "CoSwitchCallContext")
coTaskMemAlloc = doGetProcAddress(libole32, "CoTaskMemAlloc")
coTaskMemFree = doGetProcAddress(libole32, "CoTaskMemFree")
coTaskMemRealloc = doGetProcAddress(libole32, "CoTaskMemRealloc")
coTreatAsClass = doGetProcAddress(libole32, "CoTreatAsClass")
coUnmarshalHresult = doGetProcAddress(libole32, "CoUnmarshalHresult")
coUnmarshalInterface = doGetProcAddress(libole32, "CoUnmarshalInterface")
coWaitForMultipleHandles = doGetProcAddress(libole32, "CoWaitForMultipleHandles")
createAntiMoniker = doGetProcAddress(libole32, "CreateAntiMoniker")
createBindCtx = doGetProcAddress(libole32, "CreateBindCtx")
createClassMoniker = doGetProcAddress(libole32, "CreateClassMoniker")
createDataAdviseHolder = doGetProcAddress(libole32, "CreateDataAdviseHolder")
createDataCache = doGetProcAddress(libole32, "CreateDataCache")
createFileMoniker = doGetProcAddress(libole32, "CreateFileMoniker")
createGenericComposite = doGetProcAddress(libole32, "CreateGenericComposite")
createILockBytesOnHGlobal = doGetProcAddress(libole32, "CreateILockBytesOnHGlobal")
createItemMoniker = doGetProcAddress(libole32, "CreateItemMoniker")
createOleAdviseHolder = doGetProcAddress(libole32, "CreateOleAdviseHolder")
createPointerMoniker = doGetProcAddress(libole32, "CreatePointerMoniker")
createStreamOnHGlobal = doGetProcAddress(libole32, "CreateStreamOnHGlobal")
dllDebugObjectRPCHook = doGetProcAddress(libole32, "DllDebugObjectRPCHook")
doDragDrop = doGetProcAddress(libole32, "DoDragDrop")
fmtIdToPropStgName = doGetProcAddress(libole32, "FmtIdToPropStgName")
freePropVariantArray = doGetProcAddress(libole32, "FreePropVariantArray")
getClassFile = doGetProcAddress(libole32, "GetClassFile")
getConvertStg = doGetProcAddress(libole32, "GetConvertStg")
getHGlobalFromILockBytes = doGetProcAddress(libole32, "GetHGlobalFromILockBytes")
getHGlobalFromStream = doGetProcAddress(libole32, "GetHGlobalFromStream")
getRunningObjectTable = doGetProcAddress(libole32, "GetRunningObjectTable")
iIDFromString = doGetProcAddress(libole32, "IIDFromString")
isAccelerator = doGetProcAddress(libole32, "IsAccelerator")
isEqualGUID = doGetProcAddress(libole32, "IsEqualGUID")
isValidInterface = doGetProcAddress(libole32, "IsValidInterface")
mkParseDisplayName = doGetProcAddress(libole32, "MkParseDisplayName")
monikerCommonPrefixWith = doGetProcAddress(libole32, "MonikerCommonPrefixWith")
oleBuildVersion = doGetProcAddress(libole32, "OleBuildVersion")
oleConvertIStorageToOLESTREAM = doGetProcAddress(libole32, "OleConvertIStorageToOLESTREAM")
oleConvertOLESTREAMToIStorage = doGetProcAddress(libole32, "OleConvertOLESTREAMToIStorage")
oleCreate = doGetProcAddress(libole32, "OleCreate")
oleCreateDefaultHandler = doGetProcAddress(libole32, "OleCreateDefaultHandler")
oleCreateEmbeddingHelper = doGetProcAddress(libole32, "OleCreateEmbeddingHelper")
oleCreateFromData = doGetProcAddress(libole32, "OleCreateFromData")
oleCreateFromDataEx = doGetProcAddress(libole32, "OleCreateFromDataEx")
oleCreateFromFile = doGetProcAddress(libole32, "OleCreateFromFile")
oleCreateFromFileEx = doGetProcAddress(libole32, "OleCreateFromFileEx")
oleCreateLink = doGetProcAddress(libole32, "OleCreateLink")
oleCreateLinkFromData = doGetProcAddress(libole32, "OleCreateLinkFromData")
oleCreateLinkToFile = doGetProcAddress(libole32, "OleCreateLinkToFile")
oleCreateMenuDescriptor = doGetProcAddress(libole32, "OleCreateMenuDescriptor")
oleCreateStaticFromData = doGetProcAddress(libole32, "OleCreateStaticFromData")
oleDestroyMenuDescriptor = doGetProcAddress(libole32, "OleDestroyMenuDescriptor")
oleDoAutoConvert = doGetProcAddress(libole32, "OleDoAutoConvert")
oleDraw = doGetProcAddress(libole32, "OleDraw")
oleDuplicateData = doGetProcAddress(libole32, "OleDuplicateData")
oleFlushClipboard = doGetProcAddress(libole32, "OleFlushClipboard")
oleGetAutoConvert = doGetProcAddress(libole32, "OleGetAutoConvert")
oleGetClipboard = doGetProcAddress(libole32, "OleGetClipboard")
oleGetIconOfClass = doGetProcAddress(libole32, "OleGetIconOfClass")
oleInitializeWOW = doGetProcAddress(libole32, "OleInitializeWOW")
oleIsCurrentClipboard = doGetProcAddress(libole32, "OleIsCurrentClipboard")
oleIsRunning = doGetProcAddress(libole32, "OleIsRunning")
oleLoad = doGetProcAddress(libole32, "OleLoad")
oleLoadFromStream = doGetProcAddress(libole32, "OleLoadFromStream")
oleLockRunning = doGetProcAddress(libole32, "OleLockRunning")
oleMetafilePictFromIconAndLabel = doGetProcAddress(libole32, "OleMetafilePictFromIconAndLabel")
oleNoteObjectVisible = doGetProcAddress(libole32, "OleNoteObjectVisible")
oleQueryCreateFromData = doGetProcAddress(libole32, "OleQueryCreateFromData")
oleQueryLinkFromData = doGetProcAddress(libole32, "OleQueryLinkFromData")
oleRegEnumVerbs = doGetProcAddress(libole32, "OleRegEnumVerbs")
oleRegGetMiscStatus = doGetProcAddress(libole32, "OleRegGetMiscStatus")
oleRegGetUserType = doGetProcAddress(libole32, "OleRegGetUserType")
oleSave = doGetProcAddress(libole32, "OleSave")
oleSaveToStream = doGetProcAddress(libole32, "OleSaveToStream")
oleSetAutoConvert = doGetProcAddress(libole32, "OleSetAutoConvert")
oleSetClipboard = doGetProcAddress(libole32, "OleSetClipboard")
oleSetContainedObject = doGetProcAddress(libole32, "OleSetContainedObject")
oleSetMenuDescriptor = doGetProcAddress(libole32, "OleSetMenuDescriptor")
oleTranslateAccelerator = doGetProcAddress(libole32, "OleTranslateAccelerator")
propStgNameToFmtId = doGetProcAddress(libole32, "PropStgNameToFmtId")
propSysAllocString = doGetProcAddress(libole32, "PropSysAllocString")
propSysFreeString = doGetProcAddress(libole32, "PropSysFreeString")
propVariantClear = doGetProcAddress(libole32, "PropVariantClear")
propVariantCopy = doGetProcAddress(libole32, "PropVariantCopy")
readClassStg = doGetProcAddress(libole32, "ReadClassStg")
readClassStm = doGetProcAddress(libole32, "ReadClassStm")
readFmtUserTypeStg = doGetProcAddress(libole32, "ReadFmtUserTypeStg")
registerDragDrop = doGetProcAddress(libole32, "RegisterDragDrop")
releaseStgMedium = doGetProcAddress(libole32, "ReleaseStgMedium")
revokeDragDrop = doGetProcAddress(libole32, "RevokeDragDrop")
setConvertStg = doGetProcAddress(libole32, "SetConvertStg")
stgCreateDocfile = doGetProcAddress(libole32, "StgCreateDocfile")
stgCreateDocfileOnILockBytes = doGetProcAddress(libole32, "StgCreateDocfileOnILockBytes")
stgCreatePropSetStg = doGetProcAddress(libole32, "StgCreatePropSetStg")
stgCreatePropStg = doGetProcAddress(libole32, "StgCreatePropStg")
stgIsStorageFile = doGetProcAddress(libole32, "StgIsStorageFile")
stgIsStorageILockBytes = doGetProcAddress(libole32, "StgIsStorageILockBytes")
stgOpenPropStg = doGetProcAddress(libole32, "StgOpenPropStg")
stgSetTimes = doGetProcAddress(libole32, "StgSetTimes")
stringFromCLSID = doGetProcAddress(libole32, "StringFromCLSID")
stringFromGUID2 = doGetProcAddress(libole32, "StringFromGUID2")
wdtpInterfacePointer_UserFree = doGetProcAddress(libole32, "WdtpInterfacePointer_UserFree")
writeClassStg = doGetProcAddress(libole32, "WriteClassStg")
writeClassStm = doGetProcAddress(libole32, "WriteClassStm")
writeFmtUserTypeStg = doGetProcAddress(libole32, "WriteFmtUserTypeStg")
}
func CoGetInterceptor(iidIntercepted REFIID, punkOuter *IUnknown, iid REFIID, ppv uintptr) HRESULT {
ret1 := syscall6(coGetInterceptor, 4,
uintptr(unsafe.Pointer(iidIntercepted)),
uintptr(unsafe.Pointer(punkOuter)),
uintptr(unsafe.Pointer(iid)),
ppv,
0,
0)
return HRESULT(ret1)
}
func CoGetInterceptorFromTypeInfo(iidIntercepted REFIID, punkOuter *IUnknown, typeInfo *ITypeInfo, iid REFIID, ppv uintptr) HRESULT {
ret1 := syscall6(coGetInterceptorFromTypeInfo, 5,
uintptr(unsafe.Pointer(iidIntercepted)),
uintptr(unsafe.Pointer(punkOuter)),
uintptr(unsafe.Pointer(typeInfo)),
uintptr(unsafe.Pointer(iid)),
ppv,
0)
return HRESULT(ret1)
}
func PropVariantChangeType(ppropvarDest *PROPVARIANT, propvarSrc REFPROPVARIANT, flags PROPVAR_CHANGE_FLAGS, vt VARTYPE) HRESULT {
ret1 := syscall6(propVariantChangeType, 4,
uintptr(unsafe.Pointer(ppropvarDest)),
uintptr(unsafe.Pointer(propvarSrc)),
uintptr(flags),
uintptr(vt),
0,
0)
return HRESULT(ret1)
}
func BindMoniker(pmk LPMONIKER, grfOpt DWORD, riid REFIID, ppvResult *LPVOID) HRESULT {
ret1 := syscall6(bindMoniker, 4,
uintptr(unsafe.Pointer(pmk)),
uintptr(grfOpt),
uintptr(unsafe.Pointer(riid)),
uintptr(unsafe.Pointer(ppvResult)),
0,
0)
return HRESULT(ret1)
}
func CLSIDFromProgIDEx(progid /*const*/ LPCOLESTR, clsid *CLSID) HRESULT {
ret1 := syscall3(cLSIDFromProgIDEx, 2,
uintptr(unsafe.Pointer(progid)),
uintptr(unsafe.Pointer(clsid)),
0)
return HRESULT(ret1)
}
func CLSIDFromString(idstr /*const*/ LPCOLESTR, id *CLSID) HRESULT {
ret1 := syscall3(cLSIDFromString, 2,
uintptr(unsafe.Pointer(idstr)),
uintptr(unsafe.Pointer(id)),
0)
return HRESULT(ret1)
}
func CoAddRefServerProcess() ULONG {
ret1 := syscall3(coAddRefServerProcess, 0,
0,
0,
0)
return ULONG(ret1)
}
func CoAllowSetForegroundWindow(pUnk *IUnknown, pvReserved uintptr) HRESULT {
ret1 := syscall3(coAllowSetForegroundWindow, 2,
uintptr(unsafe.Pointer(pUnk)),
pvReserved,
0)
return HRESULT(ret1)
}
func CoBuildVersion() DWORD {
ret1 := syscall3(coBuildVersion, 0,
0,
0,
0)
return DWORD(ret1)
}
func CoCopyProxy(pProxy *IUnknown, ppCopy **IUnknown) HRESULT {
ret1 := syscall3(coCopyProxy, 2,
uintptr(unsafe.Pointer(pProxy)),
uintptr(unsafe.Pointer(ppCopy)),
0)
return HRESULT(ret1)
}
func CoCreateFreeThreadedMarshaler(punkOuter LPUNKNOWN, ppunkMarshal *LPUNKNOWN) HRESULT {
ret1 := syscall3(coCreateFreeThreadedMarshaler, 2,
uintptr(unsafe.Pointer(punkOuter)),
uintptr(unsafe.Pointer(ppunkMarshal)),
0)
return HRESULT(ret1)
}
func CoCreateGuid(pguid *GUID) HRESULT {
ret1 := syscall3(coCreateGuid, 1,
uintptr(unsafe.Pointer(pguid)),
0,
0)
return HRESULT(ret1)
}
func CoDisconnectObject(lpUnk LPUNKNOWN, reserved DWORD) HRESULT {
ret1 := syscall3(coDisconnectObject, 2,
uintptr(unsafe.Pointer(lpUnk)),
uintptr(reserved),
0)
return HRESULT(ret1)
}
func CoFileTimeNow(lpFileTime *FILETIME) HRESULT {
ret1 := syscall3(coFileTimeNow, 1,
uintptr(unsafe.Pointer(lpFileTime)),
0,
0)
return HRESULT(ret1)
}
func CoFreeAllLibraries() {
syscall3(coFreeAllLibraries, 0,
0,
0,
0)
}
func CoFreeLibrary(hLibrary HINSTANCE) {
syscall3(coFreeLibrary, 1,
uintptr(hLibrary),
0,
0)
}
func CoGetActivationState(guid GUID, unknown DWORD, unknown2 *uint32) HRESULT {
ret1 := syscall6(coGetActivationState, 6,
uintptr(guid.Data1),
uintptr((uint32(guid.Data2)<<16)|uint32(guid.Data3)),
uintptr((uint32(guid.Data4[0])<<24)|(uint32(guid.Data4[1]<<16))|(uint32(guid.Data4[2]<<8))|uint32(guid.Data4[3])),
uintptr((uint32(guid.Data4[4])<<24)|(uint32(guid.Data4[5]<<16))|(uint32(guid.Data4[6]<<8))|uint32(guid.Data4[7])),
uintptr(unknown),
uintptr(unsafe.Pointer(unknown2)))
return HRESULT(ret1)
}
func CoGetApartmentType(aType *APTTYPE, qualifier *APTTYPEQUALIFIER) HRESULT {
ret1 := syscall3(coGetApartmentType, 2,
uintptr(unsafe.Pointer(aType)),
uintptr(unsafe.Pointer(qualifier)),
0)
return HRESULT(ret1)
}
func CoGetCallContext(riid REFIID, ppv uintptr) HRESULT {
ret1 := syscall3(coGetCallContext, 2,
uintptr(unsafe.Pointer(riid)),
ppv,
0)
return HRESULT(ret1)
}
func CoGetCallState(unknown int32, unknown2 *uint32) HRESULT {
ret1 := syscall3(coGetCallState, 2,
uintptr(unknown),
uintptr(unsafe.Pointer(unknown2)),
0)
return HRESULT(ret1)
}
func CoGetCallerTID(lpdwTID *uint32) HRESULT {
ret1 := syscall3(coGetCallerTID, 1,
uintptr(unsafe.Pointer(lpdwTID)),
0,
0)
return HRESULT(ret1)
}
func CoGetContextToken(token *ULONG_PTR) HRESULT {
ret1 := syscall3(coGetContextToken, 1,
uintptr(unsafe.Pointer(token)),
0,
0)
return HRESULT(ret1)
}
func CoGetCurrentLogicalThreadId(id *GUID) HRESULT {
ret1 := syscall3(coGetCurrentLogicalThreadId, 1,
uintptr(unsafe.Pointer(id)),
0,
0)
return HRESULT(ret1)
}
func CoGetCurrentProcess() DWORD {
ret1 := syscall3(coGetCurrentProcess, 0,
0,
0,
0)
return DWORD(ret1)
}
func CoGetDefaultContext(aType APTTYPE, riid REFIID, ppv *LPVOID) HRESULT {
ret1 := syscall3(coGetDefaultContext, 3,
uintptr(aType),
uintptr(unsafe.Pointer(riid)),
uintptr(unsafe.Pointer(ppv)))
return HRESULT(ret1)
}
func CoGetInstanceFromIStorage(server_info *COSERVERINFO, rclsid *CLSID, outer *IUnknown, cls_context DWORD, storage *IStorage, count DWORD, results *MULTI_QI) HRESULT {
ret1 := syscall9(coGetInstanceFromIStorage, 7,
uintptr(unsafe.Pointer(server_info)),
uintptr(unsafe.Pointer(rclsid)),
uintptr(unsafe.Pointer(outer)),
uintptr(cls_context),
uintptr(unsafe.Pointer(storage)),
uintptr(count),
uintptr(unsafe.Pointer(results)),
0,
0)
return HRESULT(ret1)
}
func CoGetInterfaceAndReleaseStream(pStm LPSTREAM, riid REFIID, ppv *LPVOID) HRESULT {
ret1 := syscall3(coGetInterfaceAndReleaseStream, 3,
uintptr(unsafe.Pointer(pStm)),
uintptr(unsafe.Pointer(riid)),
uintptr(unsafe.Pointer(ppv)))
return HRESULT(ret1)
}
func CoGetMalloc(context DWORD, imalloc **IMalloc) HRESULT {
ret1 := syscall3(coGetMalloc, 2,
uintptr(context),
uintptr(unsafe.Pointer(imalloc)),
0)
return HRESULT(ret1)
}
func CoGetMarshalSizeMax(pulSize *ULONG, riid REFIID, pUnk *IUnknown, dwDestContext DWORD, pvDestContext uintptr, mshlFlags DWORD) HRESULT {
ret1 := syscall6(coGetMarshalSizeMax, 6,
uintptr(unsafe.Pointer(pulSize)),
uintptr(unsafe.Pointer(riid)),
uintptr(unsafe.Pointer(pUnk)),
uintptr(dwDestContext),
pvDestContext,
uintptr(mshlFlags))
return HRESULT(ret1)
}
func CoGetObject(pszName string, pBindOptions *BIND_OPTS, riid REFIID, ppv uintptr) HRESULT {
pszNameStr := unicode16FromString(pszName)
ret1 := syscall6(coGetObject, 4,
uintptr(unsafe.Pointer(&pszNameStr[0])),
uintptr(unsafe.Pointer(pBindOptions)),
uintptr(unsafe.Pointer(riid)),
ppv,
0,
0)
return HRESULT(ret1)
}
func CoGetObjectContext(riid REFIID, ppv uintptr) HRESULT {
ret1 := syscall3(coGetObjectContext, 2,
uintptr(unsafe.Pointer(riid)),
ppv,
0)
return HRESULT(ret1)
}
func CoGetPSClsid(riid REFIID, pclsid *CLSID) HRESULT {
ret1 := syscall3(coGetPSClsid, 2,
uintptr(unsafe.Pointer(riid)),
uintptr(unsafe.Pointer(pclsid)),
0)
return HRESULT(ret1)
}
func CoGetStandardMarshal(riid REFIID, pUnk *IUnknown, dwDestContext DWORD, pvDestContext LPVOID, mshlflags DWORD, ppMarshal *LPMARSHAL) HRESULT {
ret1 := syscall6(coGetStandardMarshal, 6,
uintptr(unsafe.Pointer(riid)),
uintptr(unsafe.Pointer(pUnk)),
uintptr(dwDestContext),
uintptr(unsafe.Pointer(pvDestContext)),
uintptr(mshlflags),
uintptr(unsafe.Pointer(ppMarshal)))
return HRESULT(ret1)
}
func CoGetState(ppv **IUnknown) HRESULT {
ret1 := syscall3(coGetState, 1,
uintptr(unsafe.Pointer(ppv)),
0,
0)
return HRESULT(ret1)
}
func CoGetTreatAsClass(clsidOld /*const*/ REFCLSID, clsidNew *CLSID) HRESULT {
ret1 := syscall3(coGetTreatAsClass, 2,
uintptr(unsafe.Pointer(clsidOld)),
uintptr(unsafe.Pointer(clsidNew)),
0)
return HRESULT(ret1)
}
func CoImpersonateClient() HRESULT {
ret1 := syscall3(coImpersonateClient, 0,
0,
0,
0)
return HRESULT(ret1)
}
func CoInitialize(lpReserved LPVOID) HRESULT {
ret1 := syscall3(coInitialize, 1,
uintptr(unsafe.Pointer(lpReserved)),
0,
0)
return HRESULT(ret1)
}
func CoInitializeSecurity(pSecDesc PSECURITY_DESCRIPTOR, cAuthSvc LONG, asAuthSvc *SOLE_AUTHENTICATION_SERVICE, pReserved1 uintptr, dwAuthnLevel DWORD, dwImpLevel DWORD, pReserved2 uintptr, dwCapabilities DWORD, pReserved3 uintptr) HRESULT {
ret1 := syscall9(coInitializeSecurity, 9,
uintptr(unsafe.Pointer(pSecDesc)),
uintptr(cAuthSvc),
uintptr(unsafe.Pointer(asAuthSvc)),
pReserved1,
uintptr(dwAuthnLevel),
uintptr(dwImpLevel),
pReserved2,
uintptr(dwCapabilities),
pReserved3)
return HRESULT(ret1)
}
func CoInitializeWOW(x DWORD, y DWORD) HRESULT {
ret1 := syscall3(coInitializeWOW, 2,
uintptr(x),
uintptr(y),
0)
return HRESULT(ret1)
}
func CoIsHandlerConnected(pUnk *IUnknown) bool {
ret1 := syscall3(coIsHandlerConnected, 1,
uintptr(unsafe.Pointer(pUnk)),
0,
0)
return ret1 != 0
}
func CoIsOle1Class(clsid /*const*/ REFCLSID) bool {
ret1 := syscall3(coIsOle1Class, 1,
uintptr(unsafe.Pointer(clsid)),
0,
0)
return ret1 != 0
}
func CoLoadLibrary(lpszLibName LPOLESTR, bAutoFree bool) HINSTANCE {
ret1 := syscall3(coLoadLibrary, 2,
uintptr(unsafe.Pointer(lpszLibName)),
getUintptrFromBool(bAutoFree),
0)
return HINSTANCE(ret1)
}
func CoLockObjectExternal(pUnk LPUNKNOWN, fLock bool, fLastUnlockReleases bool) HRESULT {
ret1 := syscall3(coLockObjectExternal, 3,
uintptr(unsafe.Pointer(pUnk)),
getUintptrFromBool(fLock),
getUintptrFromBool(fLastUnlockReleases))
return HRESULT(ret1)
}
func CoMarshalHresult(pStm LPSTREAM, hresult HRESULT) HRESULT {
ret1 := syscall3(coMarshalHresult, 2,
uintptr(unsafe.Pointer(pStm)),
uintptr(hresult),
0)
return HRESULT(ret1)
}
func CoMarshalInterThreadInterfaceInStream(riid REFIID, pUnk LPUNKNOWN, ppStm *LPSTREAM) HRESULT {
ret1 := syscall3(coMarshalInterThreadInterfaceInStream, 3,
uintptr(unsafe.Pointer(riid)),
uintptr(unsafe.Pointer(pUnk)),
uintptr(unsafe.Pointer(ppStm)))
return HRESULT(ret1)
}
func CoMarshalInterface(pStream *IStream, riid REFIID, pUnk *IUnknown, dwDestContext DWORD, pvDestContext uintptr, mshlFlags DWORD) HRESULT {
ret1 := syscall6(coMarshalInterface, 6,
uintptr(unsafe.Pointer(pStream)),
uintptr(unsafe.Pointer(riid)),
uintptr(unsafe.Pointer(pUnk)),
uintptr(dwDestContext),
pvDestContext,
uintptr(mshlFlags))
return HRESULT(ret1)
}
func CoQueryClientBlanket(pAuthnSvc *uint32, pAuthzSvc *uint32, pServerPrincName **OLECHAR, pAuthnLevel *uint32, pImpLevel *uint32, pPrivs *RPC_AUTHZ_HANDLE, pCapabilities *uint32) HRESULT {
ret1 := syscall9(coQueryClientBlanket, 7,
uintptr(unsafe.Pointer(pAuthnSvc)),
uintptr(unsafe.Pointer(pAuthzSvc)),
uintptr(unsafe.Pointer(pServerPrincName)),
uintptr(unsafe.Pointer(pAuthnLevel)),
uintptr(unsafe.Pointer(pImpLevel)),
uintptr(unsafe.Pointer(pPrivs)),
uintptr(unsafe.Pointer(pCapabilities)),
0,
0)
return HRESULT(ret1)
}
func CoQueryProxyBlanket(pProxy *IUnknown, pAuthnSvc *uint32, pAuthzSvc *uint32, ppServerPrincName **OLECHAR, pAuthnLevel *uint32, pImpLevel *uint32, ppAuthInfo uintptr, pCapabilities *uint32) HRESULT {
ret1 := syscall9(coQueryProxyBlanket, 8,
uintptr(unsafe.Pointer(pProxy)),
uintptr(unsafe.Pointer(pAuthnSvc)),
uintptr(unsafe.Pointer(pAuthzSvc)),
uintptr(unsafe.Pointer(ppServerPrincName)),
uintptr(unsafe.Pointer(pAuthnLevel)),
uintptr(unsafe.Pointer(pImpLevel)),
ppAuthInfo,
uintptr(unsafe.Pointer(pCapabilities)),
0)
return HRESULT(ret1)
}
func CoRegisterChannelHook(guidExtension REFGUID, pChannelHook *IChannelHook) HRESULT {
ret1 := syscall3(coRegisterChannelHook, 2,
uintptr(unsafe.Pointer(guidExtension)),
uintptr(unsafe.Pointer(pChannelHook)),
0)
return HRESULT(ret1)
}
func CoRegisterClassObject(rclsid /*const*/ REFCLSID, pUnk LPUNKNOWN, dwClsContext DWORD, flags DWORD, lpdwRegister *uint32) HRESULT {
ret1 := syscall6(coRegisterClassObject, 5,
uintptr(unsafe.Pointer(rclsid)),
uintptr(unsafe.Pointer(pUnk)),
uintptr(dwClsContext),
uintptr(flags),
uintptr(unsafe.Pointer(lpdwRegister)),
0)
return HRESULT(ret1)
}
func CoRegisterInitializeSpy(spy *IInitializeSpy, cookie *ULARGE_INTEGER) HRESULT {
ret1 := syscall3(coRegisterInitializeSpy, 2,
uintptr(unsafe.Pointer(spy)),
uintptr(unsafe.Pointer(cookie)),
0)
return HRESULT(ret1)
}
func CoRegisterMallocSpy(pMallocSpy LPMALLOCSPY) HRESULT {
ret1 := syscall3(coRegisterMallocSpy, 1,
uintptr(unsafe.Pointer(pMallocSpy)),
0,
0)
return HRESULT(ret1)
}
func CoRegisterMessageFilter(lpMessageFilter LPMESSAGEFILTER, lplpMessageFilter *LPMESSAGEFILTER) HRESULT {
ret1 := syscall3(coRegisterMessageFilter, 2,
uintptr(unsafe.Pointer(lpMessageFilter)),
uintptr(unsafe.Pointer(lplpMessageFilter)),
0)
return HRESULT(ret1)
}
func CoRegisterPSClsid(riid REFIID, rclsid /*const*/ REFCLSID) HRESULT {
ret1 := syscall3(coRegisterPSClsid, 2,
uintptr(unsafe.Pointer(riid)),
uintptr(unsafe.Pointer(rclsid)),
0)
return HRESULT(ret1)
}
func CoReleaseMarshalData(pStream *IStream) HRESULT {
ret1 := syscall3(coReleaseMarshalData, 1,
uintptr(unsafe.Pointer(pStream)),
0,
0)
return HRESULT(ret1)
}
func CoReleaseServerProcess() ULONG {
ret1 := syscall3(coReleaseServerProcess, 0,
0,
0,
0)
return ULONG(ret1)
}
func CoResumeClassObjects() HRESULT {
ret1 := syscall3(coResumeClassObjects, 0,
0,
0,
0)
return HRESULT(ret1)
}
func CoRevertToSelf() HRESULT {
ret1 := syscall3(coRevertToSelf, 0,
0,
0,
0)
return HRESULT(ret1)
}
func CoRevokeInitializeSpy(cookie ULARGE_INTEGER) HRESULT {
ret1 := syscall3(coRevokeInitializeSpy, 2,
uintptr(*(*uint32)(unsafe.Pointer(&cookie))),
uintptr(*(*uint32)(unsafe.Pointer(uintptr(unsafe.Pointer(&cookie)) + uintptr(4)))),
0)
return HRESULT(ret1)
}
func CoRevokeMallocSpy() HRESULT {
ret1 := syscall3(coRevokeMallocSpy, 0,
0,
0,
0)
return HRESULT(ret1)
}
func CoSetProxyBlanket(pProxy *IUnknown, authnSvc DWORD, authzSvc DWORD, pServerPrincName *OLECHAR, authnLevel DWORD, impLevel DWORD, pAuthInfo uintptr, capabilities DWORD) HRESULT {
ret1 := syscall9(coSetProxyBlanket, 8,
uintptr(unsafe.Pointer(pProxy)),
uintptr(authnSvc),
uintptr(authzSvc),
uintptr(unsafe.Pointer(pServerPrincName)),
uintptr(authnLevel),
uintptr(impLevel),
pAuthInfo,
uintptr(capabilities),
0)
return HRESULT(ret1)
}
func CoSetState(pv *IUnknown) HRESULT {
ret1 := syscall3(coSetState, 1,
uintptr(unsafe.Pointer(pv)),
0,
0)
return HRESULT(ret1)
}
func CoSuspendClassObjects() HRESULT {
ret1 := syscall3(coSuspendClassObjects, 0,
0,
0,
0)
return HRESULT(ret1)
}
func CoSwitchCallContext(pObject *IUnknown, ppOldObject **IUnknown) HRESULT {
ret1 := syscall3(coSwitchCallContext, 2,
uintptr(unsafe.Pointer(pObject)),
uintptr(unsafe.Pointer(ppOldObject)),
0)
return HRESULT(ret1)
}
func CoTaskMemAlloc(size SIZE_T) LPVOID {
ret1 := syscall3(coTaskMemAlloc, 1,
uintptr(size),
0,
0)
return (LPVOID)(unsafe.Pointer(ret1))
}
func CoTaskMemFree(ptr LPVOID) {
syscall3(coTaskMemFree, 1,
uintptr(unsafe.Pointer(ptr)),
0,
0)
}
func CoTaskMemRealloc(pvOld LPVOID, size SIZE_T) LPVOID {
ret1 := syscall3(coTaskMemRealloc, 2,
uintptr(unsafe.Pointer(pvOld)),
uintptr(size),
0)
return (LPVOID)(unsafe.Pointer(ret1))
}
func CoTreatAsClass(clsidOld /*const*/ REFCLSID, clsidNew /*const*/ REFCLSID) HRESULT {
ret1 := syscall3(coTreatAsClass, 2,
uintptr(unsafe.Pointer(clsidOld)),
uintptr(unsafe.Pointer(clsidNew)),
0)
return HRESULT(ret1)
}
func CoUnmarshalHresult(pStm LPSTREAM, phresult *HRESULT) HRESULT {
ret1 := syscall3(coUnmarshalHresult, 2,
uintptr(unsafe.Pointer(pStm)),
uintptr(unsafe.Pointer(phresult)),
0)
return HRESULT(ret1)
}
func CoUnmarshalInterface(pStream *IStream, riid REFIID, ppv *LPVOID) HRESULT {
ret1 := syscall3(coUnmarshalInterface, 3,
uintptr(unsafe.Pointer(pStream)),
uintptr(unsafe.Pointer(riid)),
uintptr(unsafe.Pointer(ppv)))
return HRESULT(ret1)
}
func CoWaitForMultipleHandles(dwFlags DWORD, dwTimeout DWORD, cHandles ULONG, pHandles *HANDLE, lpdwindex *uint32) HRESULT {
ret1 := syscall6(coWaitForMultipleHandles, 5,
uintptr(dwFlags),
uintptr(dwTimeout),
uintptr(cHandles),
uintptr(unsafe.Pointer(pHandles)),
uintptr(unsafe.Pointer(lpdwindex)),
0)
return HRESULT(ret1)
}
func CreateAntiMoniker(ppmk **IMoniker) HRESULT {
ret1 := syscall3(createAntiMoniker, 1,
uintptr(unsafe.Pointer(ppmk)),
0,
0)
return HRESULT(ret1)
}
func CreateBindCtx(reserved DWORD, ppbc *LPBC) HRESULT {
ret1 := syscall3(createBindCtx, 2,
uintptr(reserved),
uintptr(unsafe.Pointer(ppbc)),