forked from kbinani/win
-
Notifications
You must be signed in to change notification settings - Fork 1
/
rpcrt4.go
1382 lines (1177 loc) · 52.8 KB
/
rpcrt4.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 (
"syscall"
"unsafe"
)
var (
// Library
librpcrt4 uintptr
// Functions
cStdStubBuffer_AddRef uintptr
cStdStubBuffer_Connect uintptr
cStdStubBuffer_CountRefs uintptr
cStdStubBuffer_DebugServerQueryInterface uintptr
cStdStubBuffer_DebugServerRelease uintptr
cStdStubBuffer_Disconnect uintptr
cStdStubBuffer_QueryInterface uintptr
createStubFromTypeInfo uintptr
iUnknown_AddRef_Proxy uintptr
iUnknown_QueryInterface_Proxy uintptr
iUnknown_Release_Proxy uintptr
i_RpcBindingInqLocalClientPID uintptr
i_RpcExceptionFilter uintptr
i_RpcFree uintptr
i_RpcFreeBuffer uintptr
i_RpcGetBuffer uintptr
i_RpcGetCurrentCallHandle uintptr
i_RpcMapWin32Status uintptr
i_RpcNegotiateTransferSyntax uintptr
i_RpcReceive uintptr
i_RpcSend uintptr
i_RpcSendReceive uintptr
nDRSContextMarshall uintptr
nDRSContextMarshall2 uintptr
nDRSContextMarshallEx uintptr
nDRSContextUnmarshall uintptr
nDRSContextUnmarshall2 uintptr
nDRSContextUnmarshallEx uintptr
ndrByteCountPointerBufferSize uintptr
ndrByteCountPointerFree uintptr
ndrClearOutParameters uintptr
ndrComplexArrayBufferSize uintptr
ndrComplexArrayFree uintptr
ndrComplexArrayMemorySize uintptr
ndrComplexStructBufferSize uintptr
ndrComplexStructFree uintptr
ndrComplexStructMemorySize uintptr
ndrConformantArrayBufferSize uintptr
ndrConformantArrayFree uintptr
ndrConformantArrayMemorySize uintptr
ndrConformantStringBufferSize uintptr
ndrConformantStringMemorySize uintptr
ndrConformantStructBufferSize uintptr
ndrConformantStructFree uintptr
ndrConformantStructMemorySize uintptr
ndrConformantVaryingArrayBufferSize uintptr
ndrConformantVaryingArrayFree uintptr
ndrConformantVaryingArrayMemorySize uintptr
ndrConformantVaryingStructBufferSize uintptr
ndrConformantVaryingStructFree uintptr
ndrConformantVaryingStructMemorySize uintptr
ndrContextHandleInitialize uintptr
ndrContextHandleSize uintptr
ndrConvert uintptr
ndrConvert2 uintptr
ndrCorrelationFree uintptr
ndrCorrelationInitialize uintptr
ndrCorrelationPass uintptr
ndrEncapsulatedUnionBufferSize uintptr
ndrEncapsulatedUnionFree uintptr
ndrEncapsulatedUnionMemorySize uintptr
ndrFixedArrayBufferSize uintptr
ndrFixedArrayFree uintptr
ndrFixedArrayMemorySize uintptr
ndrFreeBuffer uintptr
ndrInterfacePointerBufferSize uintptr
ndrInterfacePointerFree uintptr
ndrInterfacePointerMemorySize uintptr
ndrNonConformantStringBufferSize uintptr
ndrNonConformantStringMemorySize uintptr
ndrNonEncapsulatedUnionBufferSize uintptr
ndrNonEncapsulatedUnionFree uintptr
ndrNonEncapsulatedUnionMemorySize uintptr
ndrOleFree uintptr
ndrPointerBufferSize uintptr
ndrPointerFree uintptr
ndrPointerMemorySize uintptr
ndrProxyErrorHandler uintptr
ndrProxyFreeBuffer uintptr
ndrProxyGetBuffer uintptr
ndrProxySendReceive uintptr
ndrRpcSmSetClientToOsf uintptr
ndrServerCall2 uintptr
ndrServerContextMarshall uintptr
ndrServerContextNewMarshall uintptr
ndrServerContextNewUnmarshall uintptr
ndrServerContextUnmarshall uintptr
ndrSimpleStructBufferSize uintptr
ndrSimpleStructFree uintptr
ndrSimpleStructMemorySize uintptr
ndrUserMarshalBufferSize uintptr
ndrUserMarshalFree uintptr
ndrUserMarshalMemorySize uintptr
ndrVaryingArrayBufferSize uintptr
ndrVaryingArrayFree uintptr
ndrVaryingArrayMemorySize uintptr
ndrXmitOrRepAsBufferSize uintptr
ndrXmitOrRepAsFree uintptr
ndrXmitOrRepAsMemorySize uintptr
rpcBindingFree uintptr
rpcBindingSetOption uintptr
rpcImpersonateClient uintptr
rpcMgmtEnableIdleCleanup uintptr
rpcMgmtIsServerListening uintptr
rpcMgmtSetComTimeout uintptr
rpcMgmtSetServerStackSize uintptr
rpcMgmtStopServerListening uintptr
rpcMgmtWaitServerListen uintptr
rpcRevertToSelf uintptr
rpcRevertToSelfEx uintptr
rpcServerListen uintptr
rpcSmDestroyClientContext uintptr
rpcSsDestroyClientContext uintptr
rpcSsDontSerializeContext uintptr
)
func init() {
// Library
librpcrt4 = doLoadLibrary("rpcrt4.dll")
// Functions
cStdStubBuffer_AddRef = doGetProcAddress(librpcrt4, "CStdStubBuffer_AddRef")
cStdStubBuffer_Connect = doGetProcAddress(librpcrt4, "CStdStubBuffer_Connect")
cStdStubBuffer_CountRefs = doGetProcAddress(librpcrt4, "CStdStubBuffer_CountRefs")
cStdStubBuffer_DebugServerQueryInterface = doGetProcAddress(librpcrt4, "CStdStubBuffer_DebugServerQueryInterface")
cStdStubBuffer_DebugServerRelease = doGetProcAddress(librpcrt4, "CStdStubBuffer_DebugServerRelease")
cStdStubBuffer_Disconnect = doGetProcAddress(librpcrt4, "CStdStubBuffer_Disconnect")
cStdStubBuffer_QueryInterface = doGetProcAddress(librpcrt4, "CStdStubBuffer_QueryInterface")
createStubFromTypeInfo = doGetProcAddress(librpcrt4, "CreateStubFromTypeInfo")
iUnknown_AddRef_Proxy = doGetProcAddress(librpcrt4, "IUnknown_AddRef_Proxy")
iUnknown_QueryInterface_Proxy = doGetProcAddress(librpcrt4, "IUnknown_QueryInterface_Proxy")
iUnknown_Release_Proxy = doGetProcAddress(librpcrt4, "IUnknown_Release_Proxy")
i_RpcBindingInqLocalClientPID = doGetProcAddress(librpcrt4, "I_RpcBindingInqLocalClientPID")
i_RpcExceptionFilter = doGetProcAddress(librpcrt4, "I_RpcExceptionFilter")
i_RpcFree = doGetProcAddress(librpcrt4, "I_RpcFree")
i_RpcFreeBuffer = doGetProcAddress(librpcrt4, "I_RpcFreeBuffer")
i_RpcGetBuffer = doGetProcAddress(librpcrt4, "I_RpcGetBuffer")
i_RpcGetCurrentCallHandle = doGetProcAddress(librpcrt4, "I_RpcGetCurrentCallHandle")
i_RpcMapWin32Status = doGetProcAddress(librpcrt4, "I_RpcMapWin32Status")
i_RpcNegotiateTransferSyntax = doGetProcAddress(librpcrt4, "I_RpcNegotiateTransferSyntax")
i_RpcReceive = doGetProcAddress(librpcrt4, "I_RpcReceive")
i_RpcSend = doGetProcAddress(librpcrt4, "I_RpcSend")
i_RpcSendReceive = doGetProcAddress(librpcrt4, "I_RpcSendReceive")
nDRSContextMarshall = doGetProcAddress(librpcrt4, "NDRSContextMarshall")
nDRSContextMarshall2 = doGetProcAddress(librpcrt4, "NDRSContextMarshall2")
nDRSContextMarshallEx = doGetProcAddress(librpcrt4, "NDRSContextMarshallEx")
nDRSContextUnmarshall = doGetProcAddress(librpcrt4, "NDRSContextUnmarshall")
nDRSContextUnmarshall2 = doGetProcAddress(librpcrt4, "NDRSContextUnmarshall2")
nDRSContextUnmarshallEx = doGetProcAddress(librpcrt4, "NDRSContextUnmarshallEx")
ndrByteCountPointerBufferSize = doGetProcAddress(librpcrt4, "NdrByteCountPointerBufferSize")
ndrByteCountPointerFree = doGetProcAddress(librpcrt4, "NdrByteCountPointerFree")
ndrClearOutParameters = doGetProcAddress(librpcrt4, "NdrClearOutParameters")
ndrComplexArrayBufferSize = doGetProcAddress(librpcrt4, "NdrComplexArrayBufferSize")
ndrComplexArrayFree = doGetProcAddress(librpcrt4, "NdrComplexArrayFree")
ndrComplexArrayMemorySize = doGetProcAddress(librpcrt4, "NdrComplexArrayMemorySize")
ndrComplexStructBufferSize = doGetProcAddress(librpcrt4, "NdrComplexStructBufferSize")
ndrComplexStructFree = doGetProcAddress(librpcrt4, "NdrComplexStructFree")
ndrComplexStructMemorySize = doGetProcAddress(librpcrt4, "NdrComplexStructMemorySize")
ndrConformantArrayBufferSize = doGetProcAddress(librpcrt4, "NdrConformantArrayBufferSize")
ndrConformantArrayFree = doGetProcAddress(librpcrt4, "NdrConformantArrayFree")
ndrConformantArrayMemorySize = doGetProcAddress(librpcrt4, "NdrConformantArrayMemorySize")
ndrConformantStringBufferSize = doGetProcAddress(librpcrt4, "NdrConformantStringBufferSize")
ndrConformantStringMemorySize = doGetProcAddress(librpcrt4, "NdrConformantStringMemorySize")
ndrConformantStructBufferSize = doGetProcAddress(librpcrt4, "NdrConformantStructBufferSize")
ndrConformantStructFree = doGetProcAddress(librpcrt4, "NdrConformantStructFree")
ndrConformantStructMemorySize = doGetProcAddress(librpcrt4, "NdrConformantStructMemorySize")
ndrConformantVaryingArrayBufferSize = doGetProcAddress(librpcrt4, "NdrConformantVaryingArrayBufferSize")
ndrConformantVaryingArrayFree = doGetProcAddress(librpcrt4, "NdrConformantVaryingArrayFree")
ndrConformantVaryingArrayMemorySize = doGetProcAddress(librpcrt4, "NdrConformantVaryingArrayMemorySize")
ndrConformantVaryingStructBufferSize = doGetProcAddress(librpcrt4, "NdrConformantVaryingStructBufferSize")
ndrConformantVaryingStructFree = doGetProcAddress(librpcrt4, "NdrConformantVaryingStructFree")
ndrConformantVaryingStructMemorySize = doGetProcAddress(librpcrt4, "NdrConformantVaryingStructMemorySize")
ndrContextHandleInitialize = doGetProcAddress(librpcrt4, "NdrContextHandleInitialize")
ndrContextHandleSize = doGetProcAddress(librpcrt4, "NdrContextHandleSize")
ndrConvert = doGetProcAddress(librpcrt4, "NdrConvert")
ndrConvert2 = doGetProcAddress(librpcrt4, "NdrConvert2")
ndrCorrelationFree = doGetProcAddress(librpcrt4, "NdrCorrelationFree")
ndrCorrelationInitialize = doGetProcAddress(librpcrt4, "NdrCorrelationInitialize")
ndrCorrelationPass = doGetProcAddress(librpcrt4, "NdrCorrelationPass")
ndrEncapsulatedUnionBufferSize = doGetProcAddress(librpcrt4, "NdrEncapsulatedUnionBufferSize")
ndrEncapsulatedUnionFree = doGetProcAddress(librpcrt4, "NdrEncapsulatedUnionFree")
ndrEncapsulatedUnionMemorySize = doGetProcAddress(librpcrt4, "NdrEncapsulatedUnionMemorySize")
ndrFixedArrayBufferSize = doGetProcAddress(librpcrt4, "NdrFixedArrayBufferSize")
ndrFixedArrayFree = doGetProcAddress(librpcrt4, "NdrFixedArrayFree")
ndrFixedArrayMemorySize = doGetProcAddress(librpcrt4, "NdrFixedArrayMemorySize")
ndrFreeBuffer = doGetProcAddress(librpcrt4, "NdrFreeBuffer")
ndrInterfacePointerBufferSize = doGetProcAddress(librpcrt4, "NdrInterfacePointerBufferSize")
ndrInterfacePointerFree = doGetProcAddress(librpcrt4, "NdrInterfacePointerFree")
ndrInterfacePointerMemorySize = doGetProcAddress(librpcrt4, "NdrInterfacePointerMemorySize")
ndrNonConformantStringBufferSize = doGetProcAddress(librpcrt4, "NdrNonConformantStringBufferSize")
ndrNonConformantStringMemorySize = doGetProcAddress(librpcrt4, "NdrNonConformantStringMemorySize")
ndrNonEncapsulatedUnionBufferSize = doGetProcAddress(librpcrt4, "NdrNonEncapsulatedUnionBufferSize")
ndrNonEncapsulatedUnionFree = doGetProcAddress(librpcrt4, "NdrNonEncapsulatedUnionFree")
ndrNonEncapsulatedUnionMemorySize = doGetProcAddress(librpcrt4, "NdrNonEncapsulatedUnionMemorySize")
ndrOleFree = doGetProcAddress(librpcrt4, "NdrOleFree")
ndrPointerBufferSize = doGetProcAddress(librpcrt4, "NdrPointerBufferSize")
ndrPointerFree = doGetProcAddress(librpcrt4, "NdrPointerFree")
ndrPointerMemorySize = doGetProcAddress(librpcrt4, "NdrPointerMemorySize")
ndrProxyErrorHandler = doGetProcAddress(librpcrt4, "NdrProxyErrorHandler")
ndrProxyFreeBuffer = doGetProcAddress(librpcrt4, "NdrProxyFreeBuffer")
ndrProxyGetBuffer = doGetProcAddress(librpcrt4, "NdrProxyGetBuffer")
ndrProxySendReceive = doGetProcAddress(librpcrt4, "NdrProxySendReceive")
ndrRpcSmSetClientToOsf = doGetProcAddress(librpcrt4, "NdrRpcSmSetClientToOsf")
ndrServerCall2 = doGetProcAddress(librpcrt4, "NdrServerCall2")
ndrServerContextMarshall = doGetProcAddress(librpcrt4, "NdrServerContextMarshall")
ndrServerContextNewMarshall = doGetProcAddress(librpcrt4, "NdrServerContextNewMarshall")
ndrServerContextNewUnmarshall = doGetProcAddress(librpcrt4, "NdrServerContextNewUnmarshall")
ndrServerContextUnmarshall = doGetProcAddress(librpcrt4, "NdrServerContextUnmarshall")
ndrSimpleStructBufferSize = doGetProcAddress(librpcrt4, "NdrSimpleStructBufferSize")
ndrSimpleStructFree = doGetProcAddress(librpcrt4, "NdrSimpleStructFree")
ndrSimpleStructMemorySize = doGetProcAddress(librpcrt4, "NdrSimpleStructMemorySize")
ndrUserMarshalBufferSize = doGetProcAddress(librpcrt4, "NdrUserMarshalBufferSize")
ndrUserMarshalFree = doGetProcAddress(librpcrt4, "NdrUserMarshalFree")
ndrUserMarshalMemorySize = doGetProcAddress(librpcrt4, "NdrUserMarshalMemorySize")
ndrVaryingArrayBufferSize = doGetProcAddress(librpcrt4, "NdrVaryingArrayBufferSize")
ndrVaryingArrayFree = doGetProcAddress(librpcrt4, "NdrVaryingArrayFree")
ndrVaryingArrayMemorySize = doGetProcAddress(librpcrt4, "NdrVaryingArrayMemorySize")
ndrXmitOrRepAsBufferSize = doGetProcAddress(librpcrt4, "NdrXmitOrRepAsBufferSize")
ndrXmitOrRepAsFree = doGetProcAddress(librpcrt4, "NdrXmitOrRepAsFree")
ndrXmitOrRepAsMemorySize = doGetProcAddress(librpcrt4, "NdrXmitOrRepAsMemorySize")
rpcBindingFree = doGetProcAddress(librpcrt4, "RpcBindingFree")
rpcBindingSetOption = doGetProcAddress(librpcrt4, "RpcBindingSetOption")
rpcImpersonateClient = doGetProcAddress(librpcrt4, "RpcImpersonateClient")
rpcMgmtEnableIdleCleanup = doGetProcAddress(librpcrt4, "RpcMgmtEnableIdleCleanup")
rpcMgmtIsServerListening = doGetProcAddress(librpcrt4, "RpcMgmtIsServerListening")
rpcMgmtSetComTimeout = doGetProcAddress(librpcrt4, "RpcMgmtSetComTimeout")
rpcMgmtSetServerStackSize = doGetProcAddress(librpcrt4, "RpcMgmtSetServerStackSize")
rpcMgmtStopServerListening = doGetProcAddress(librpcrt4, "RpcMgmtStopServerListening")
rpcMgmtWaitServerListen = doGetProcAddress(librpcrt4, "RpcMgmtWaitServerListen")
rpcRevertToSelf = doGetProcAddress(librpcrt4, "RpcRevertToSelf")
rpcRevertToSelfEx = doGetProcAddress(librpcrt4, "RpcRevertToSelfEx")
rpcServerListen = doGetProcAddress(librpcrt4, "RpcServerListen")
rpcSmDestroyClientContext = doGetProcAddress(librpcrt4, "RpcSmDestroyClientContext")
rpcSsDestroyClientContext = doGetProcAddress(librpcrt4, "RpcSsDestroyClientContext")
rpcSsDontSerializeContext = doGetProcAddress(librpcrt4, "RpcSsDontSerializeContext")
}
func CStdStubBuffer_AddRef(this *IRpcStubBuffer) ULONG {
ret1 := syscall3(cStdStubBuffer_AddRef, 1,
uintptr(unsafe.Pointer(this)),
0,
0)
return ULONG(ret1)
}
func CStdStubBuffer_Connect(this *IRpcStubBuffer, pUnkServer *IUnknown) HRESULT {
ret1 := syscall3(cStdStubBuffer_Connect, 2,
uintptr(unsafe.Pointer(this)),
uintptr(unsafe.Pointer(pUnkServer)),
0)
return HRESULT(ret1)
}
func CStdStubBuffer_CountRefs(this *IRpcStubBuffer) ULONG {
ret1 := syscall3(cStdStubBuffer_CountRefs, 1,
uintptr(unsafe.Pointer(this)),
0,
0)
return ULONG(ret1)
}
func CStdStubBuffer_DebugServerQueryInterface(this *IRpcStubBuffer, ppv uintptr) HRESULT {
ret1 := syscall3(cStdStubBuffer_DebugServerQueryInterface, 2,
uintptr(unsafe.Pointer(this)),
ppv,
0)
return HRESULT(ret1)
}
func CStdStubBuffer_DebugServerRelease(this *IRpcStubBuffer, pv uintptr) {
syscall3(cStdStubBuffer_DebugServerRelease, 2,
uintptr(unsafe.Pointer(this)),
pv,
0)
}
func CStdStubBuffer_Disconnect(this *IRpcStubBuffer) {
syscall3(cStdStubBuffer_Disconnect, 1,
uintptr(unsafe.Pointer(this)),
0,
0)
}
// TODO: Unknown type(s): RPCOLEMESSAGE *
// func CStdStubBuffer_Invoke(this *IRpcStubBuffer, pRpcMsg RPCOLEMESSAGE *, pRpcChannelBuffer *IRpcChannelBuffer) HRESULT
func CStdStubBuffer_QueryInterface(this *IRpcStubBuffer, riid REFIID, ppvObject uintptr) HRESULT {
ret1 := syscall3(cStdStubBuffer_QueryInterface, 3,
uintptr(unsafe.Pointer(this)),
uintptr(unsafe.Pointer(riid)),
ppvObject)
return HRESULT(ret1)
}
// TODO: Unknown type(s): IPSFactoryBuffer *
// func NdrCStdStubBuffer2_Release(this *IRpcStubBuffer, pPSF IPSFactoryBuffer *) ULONG
// TODO: Unknown type(s): IPSFactoryBuffer *
// func NdrCStdStubBuffer_Release(this *IRpcStubBuffer, pPSF IPSFactoryBuffer *) ULONG
// TODO: Unknown type(s): LPRPCSTUBBUFFER
// func CStdStubBuffer_IsIIDSupported(iface LPRPCSTUBBUFFER, riid REFIID) LPRPCSTUBBUFFER
// TODO: Unknown type(s): LPRPCPROXYBUFFER *, LPTYPEINFO
// func CreateProxyFromTypeInfo(pTypeInfo LPTYPEINFO, pUnkOuter LPUNKNOWN, riid REFIID, ppProxy LPRPCPROXYBUFFER *, ppv *LPVOID) HRESULT
func CreateStubFromTypeInfo(pTypeInfo *ITypeInfo, riid REFIID, pUnkServer *IUnknown, ppStub **IRpcStubBuffer) HRESULT {
ret1 := syscall6(createStubFromTypeInfo, 4,
uintptr(unsafe.Pointer(pTypeInfo)),
uintptr(unsafe.Pointer(riid)),
uintptr(unsafe.Pointer(pUnkServer)),
uintptr(unsafe.Pointer(ppStub)),
0,
0)
return HRESULT(ret1)
}
func IUnknown_AddRef_Proxy(iface LPUNKNOWN) ULONG {
ret1 := syscall3(iUnknown_AddRef_Proxy, 1,
uintptr(unsafe.Pointer(iface)),
0,
0)
return ULONG(ret1)
}
func IUnknown_QueryInterface_Proxy(iface LPUNKNOWN, riid REFIID, ppvObj *LPVOID) HRESULT {
ret1 := syscall3(iUnknown_QueryInterface_Proxy, 3,
uintptr(unsafe.Pointer(iface)),
uintptr(unsafe.Pointer(riid)),
uintptr(unsafe.Pointer(ppvObj)))
return HRESULT(ret1)
}
func IUnknown_Release_Proxy(iface LPUNKNOWN) ULONG {
ret1 := syscall3(iUnknown_Release_Proxy, 1,
uintptr(unsafe.Pointer(iface)),
0,
0)
return ULONG(ret1)
}
// TODO: Unknown type(s): PRPC_ASYNC_STATE
// func I_RpcAsyncAbortCall(pAsync PRPC_ASYNC_STATE, exceptionCode ULONG) RPC_STATUS
// TODO: Unknown type(s): PRPC_ASYNC_STATE
// func I_RpcAsyncSetHandle(pMsg PRPC_MESSAGE, pAsync PRPC_ASYNC_STATE) RPC_STATUS
func I_RpcBindingInqLocalClientPID(clientBinding RPC_BINDING_HANDLE, clientPID *ULONG) RPC_STATUS {
ret1 := syscall3(i_RpcBindingInqLocalClientPID, 2,
uintptr(clientBinding),
uintptr(unsafe.Pointer(clientPID)),
0)
return RPC_STATUS(ret1)
}
// TODO: Unknown type(s): unsigned int *
// func I_RpcBindingInqTransportType(binding RPC_BINDING_HANDLE, aType unsigned int *) RPC_STATUS
func I_RpcExceptionFilter(exceptionCode ULONG) int32 {
ret1 := syscall3(i_RpcExceptionFilter, 1,
uintptr(exceptionCode),
0,
0)
return int32(ret1)
}
func I_RpcFree(object uintptr) {
syscall3(i_RpcFree, 1,
object,
0,
0)
}
func I_RpcFreeBuffer(pMsg PRPC_MESSAGE) RPC_STATUS {
ret1 := syscall3(i_RpcFreeBuffer, 1,
uintptr(unsafe.Pointer(pMsg)),
0,
0)
return RPC_STATUS(ret1)
}
func I_RpcGetBuffer(pMsg PRPC_MESSAGE) RPC_STATUS {
ret1 := syscall3(i_RpcGetBuffer, 1,
uintptr(unsafe.Pointer(pMsg)),
0,
0)
return RPC_STATUS(ret1)
}
func I_RpcGetCurrentCallHandle() RPC_BINDING_HANDLE {
ret1 := syscall3(i_RpcGetCurrentCallHandle, 0,
0,
0,
0)
return RPC_BINDING_HANDLE(ret1)
}
func I_RpcMapWin32Status(status RPC_STATUS) LONG {
ret1 := syscall3(i_RpcMapWin32Status, 1,
uintptr(status),
0,
0)
return LONG(ret1)
}
func I_RpcNegotiateTransferSyntax(pMsg PRPC_MESSAGE) RPC_STATUS {
ret1 := syscall3(i_RpcNegotiateTransferSyntax, 1,
uintptr(unsafe.Pointer(pMsg)),
0,
0)
return RPC_STATUS(ret1)
}
func I_RpcReceive(pMsg PRPC_MESSAGE) RPC_STATUS {
ret1 := syscall3(i_RpcReceive, 1,
uintptr(unsafe.Pointer(pMsg)),
0,
0)
return RPC_STATUS(ret1)
}
func I_RpcSend(pMsg PRPC_MESSAGE) RPC_STATUS {
ret1 := syscall3(i_RpcSend, 1,
uintptr(unsafe.Pointer(pMsg)),
0,
0)
return RPC_STATUS(ret1)
}
func I_RpcSendReceive(pMsg PRPC_MESSAGE) RPC_STATUS {
ret1 := syscall3(i_RpcSendReceive, 1,
uintptr(unsafe.Pointer(pMsg)),
0,
0)
return RPC_STATUS(ret1)
}
// TODO: Unknown type(s): UUID *
// func I_UuidCreate(uuid UUID *) RPC_STATUS
// TODO: Unknown type(s): MIDL_ES_CODE, char * *, handle_t
// func MesBufferHandleReset(handle handle_t, handleStyle ULONG, operation MIDL_ES_CODE, buffer char * *, bufferSize ULONG, encodedSize *ULONG) RPC_STATUS
// TODO: Unknown type(s): MIDL_ES_READ, handle_t *
// func MesDecodeIncrementalHandleCreate(userState uintptr, readFn MIDL_ES_READ, pHandle handle_t *) RPC_STATUS
// TODO: Unknown type(s): MIDL_ES_ALLOC, MIDL_ES_WRITE, handle_t *
// func MesEncodeIncrementalHandleCreate(userState uintptr, allocFn MIDL_ES_ALLOC, writeFn MIDL_ES_WRITE, pHandle handle_t *) RPC_STATUS
// TODO: Unknown type(s): handle_t
// func MesHandleFree(handle handle_t) RPC_STATUS
// TODO: Unknown type(s): MIDL_ES_ALLOC, MIDL_ES_CODE, MIDL_ES_READ, MIDL_ES_WRITE, handle_t
// func MesIncrementalHandleReset(handle handle_t, userState uintptr, allocFn MIDL_ES_ALLOC, writeFn MIDL_ES_WRITE, readFn MIDL_ES_READ, operation MIDL_ES_CODE) RPC_STATUS
// TODO: Unknown type(s): NDR_CCONTEXT
// func NDRCContextBinding(cContext NDR_CCONTEXT) RPC_BINDING_HANDLE
// TODO: Unknown type(s): NDR_CCONTEXT
// func NDRCContextMarshall(cContext NDR_CCONTEXT, pBuff uintptr)
// TODO: Unknown type(s): NDR_CCONTEXT *
// func NDRCContextUnmarshall(cContext NDR_CCONTEXT *, hBinding RPC_BINDING_HANDLE, pBuff uintptr, dataRepresentation ULONG)
func NDRSContextMarshall(sContext NDR_SCONTEXT, pBuff uintptr, userRunDownIn NDR_RUNDOWN) {
userRunDownInCallback := syscall.NewCallback(userRunDownIn)
syscall3(nDRSContextMarshall, 3,
uintptr(unsafe.Pointer(sContext)),
pBuff,
userRunDownInCallback)
}
func NDRSContextMarshall2(hBinding RPC_BINDING_HANDLE, sContext NDR_SCONTEXT, pBuff uintptr, userRunDownIn NDR_RUNDOWN, ctxGuard uintptr, flags ULONG) {
userRunDownInCallback := syscall.NewCallback(userRunDownIn)
syscall6(nDRSContextMarshall2, 6,
uintptr(hBinding),
uintptr(unsafe.Pointer(sContext)),
pBuff,
userRunDownInCallback,
ctxGuard,
uintptr(flags))
}
func NDRSContextMarshallEx(hBinding RPC_BINDING_HANDLE, sContext NDR_SCONTEXT, pBuff uintptr, userRunDownIn NDR_RUNDOWN) {
userRunDownInCallback := syscall.NewCallback(userRunDownIn)
syscall6(nDRSContextMarshallEx, 4,
uintptr(hBinding),
uintptr(unsafe.Pointer(sContext)),
pBuff,
userRunDownInCallback,
0,
0)
}
func NDRSContextUnmarshall(pBuff uintptr, dataRepresentation ULONG) NDR_SCONTEXT {
ret1 := syscall3(nDRSContextUnmarshall, 2,
pBuff,
uintptr(dataRepresentation),
0)
return (NDR_SCONTEXT)(unsafe.Pointer(ret1))
}
func NDRSContextUnmarshall2(hBinding RPC_BINDING_HANDLE, pBuff uintptr, dataRepresentation ULONG, ctxGuard uintptr, flags ULONG) NDR_SCONTEXT {
ret1 := syscall6(nDRSContextUnmarshall2, 5,
uintptr(hBinding),
pBuff,
uintptr(dataRepresentation),
ctxGuard,
uintptr(flags),
0)
return (NDR_SCONTEXT)(unsafe.Pointer(ret1))
}
func NDRSContextUnmarshallEx(hBinding RPC_BINDING_HANDLE, pBuff uintptr, dataRepresentation ULONG) NDR_SCONTEXT {
ret1 := syscall3(nDRSContextUnmarshallEx, 3,
uintptr(hBinding),
pBuff,
uintptr(dataRepresentation))
return (NDR_SCONTEXT)(unsafe.Pointer(ret1))
}
func NdrByteCountPointerBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrByteCountPointerBufferSize, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrByteCountPointerFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrByteCountPointerFree, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrClearOutParameters(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING, argAddr uintptr) {
syscall3(ndrClearOutParameters, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pFormat)),
argAddr)
}
// TODO: Unknown type(s): NDR_CCONTEXT
// func NdrClientContextMarshall(pStubMsg PMIDL_STUB_MESSAGE, contextHandle NDR_CCONTEXT, fCheck int32)
// TODO: Unknown type(s): NDR_CCONTEXT *
// func NdrClientContextUnmarshall(pStubMsg PMIDL_STUB_MESSAGE, pContextHandle NDR_CCONTEXT *, bindHandle RPC_BINDING_HANDLE)
// TODO: Unknown type(s): PMIDL_STUB_DESC
// func NdrClientInitializeNew(pRpcMessage PRPC_MESSAGE, pStubMsg PMIDL_STUB_MESSAGE, pStubDesc PMIDL_STUB_DESC, procNum uint32)
func NdrComplexArrayBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrComplexArrayBufferSize, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrComplexArrayFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrComplexArrayFree, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrComplexArrayMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
ret1 := syscall3(ndrComplexArrayMemorySize, 2,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pFormat)),
0)
return ULONG(ret1)
}
func NdrComplexStructBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrComplexStructBufferSize, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrComplexStructFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrComplexStructFree, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrComplexStructMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
ret1 := syscall3(ndrComplexStructMemorySize, 2,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pFormat)),
0)
return ULONG(ret1)
}
func NdrConformantArrayBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrConformantArrayBufferSize, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrConformantArrayFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrConformantArrayFree, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrConformantArrayMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
ret1 := syscall3(ndrConformantArrayMemorySize, 2,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pFormat)),
0)
return ULONG(ret1)
}
func NdrConformantStringBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrConformantStringBufferSize, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrConformantStringMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
ret1 := syscall3(ndrConformantStringMemorySize, 2,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pFormat)),
0)
return ULONG(ret1)
}
func NdrConformantStructBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrConformantStructBufferSize, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrConformantStructFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrConformantStructFree, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrConformantStructMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
ret1 := syscall3(ndrConformantStructMemorySize, 2,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pFormat)),
0)
return ULONG(ret1)
}
func NdrConformantVaryingArrayBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrConformantVaryingArrayBufferSize, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrConformantVaryingArrayFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrConformantVaryingArrayFree, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrConformantVaryingArrayMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
ret1 := syscall3(ndrConformantVaryingArrayMemorySize, 2,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pFormat)),
0)
return ULONG(ret1)
}
func NdrConformantVaryingStructBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrConformantVaryingStructBufferSize, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrConformantVaryingStructFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrConformantVaryingStructFree, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrConformantVaryingStructMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
ret1 := syscall3(ndrConformantVaryingStructMemorySize, 2,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pFormat)),
0)
return ULONG(ret1)
}
func NdrContextHandleInitialize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) NDR_SCONTEXT {
ret1 := syscall3(ndrContextHandleInitialize, 2,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pFormat)),
0)
return (NDR_SCONTEXT)(unsafe.Pointer(ret1))
}
func NdrContextHandleSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrContextHandleSize, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrConvert(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrConvert, 2,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pFormat)),
0)
}
func NdrConvert2(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING, numberParams LONG) {
syscall3(ndrConvert2, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pFormat)),
uintptr(numberParams))
}
func NdrCorrelationFree(pStubMsg PMIDL_STUB_MESSAGE) {
syscall3(ndrCorrelationFree, 1,
uintptr(unsafe.Pointer(pStubMsg)),
0,
0)
}
func NdrCorrelationInitialize(pStubMsg PMIDL_STUB_MESSAGE, pMemory uintptr, cacheSize ULONG, flags ULONG) {
syscall6(ndrCorrelationInitialize, 4,
uintptr(unsafe.Pointer(pStubMsg)),
pMemory,
uintptr(cacheSize),
uintptr(flags),
0,
0)
}
func NdrCorrelationPass(pStubMsg PMIDL_STUB_MESSAGE) {
syscall3(ndrCorrelationPass, 1,
uintptr(unsafe.Pointer(pStubMsg)),
0,
0)
}
// TODO: Unknown type(s): CStdPSFactoryBuffer *
// func NdrDllCanUnloadNow(pPSFactoryBuffer CStdPSFactoryBuffer *) HRESULT
// TODO: Unknown type(s): CStdPSFactoryBuffer *, const ProxyFileInfo * *
// func NdrDllGetClassObject(rclsid /*const*/ REFCLSID, iid REFIID, ppv *LPVOID, pProxyFileList /*const*/ const ProxyFileInfo * *, pclsid /*const*/ *CLSID, pPSFactoryBuffer CStdPSFactoryBuffer *) HRESULT
// TODO: Unknown type(s): const ProxyFileInfo * *
// func NdrDllRegisterProxy(hDll HMODULE, pProxyFileList /*const*/ const ProxyFileInfo * *, pclsid /*const*/ *CLSID) HRESULT
// TODO: Unknown type(s): const ProxyFileInfo * *
// func NdrDllUnregisterProxy(hDll HMODULE, pProxyFileList /*const*/ const ProxyFileInfo * *, pclsid /*const*/ *CLSID) HRESULT
func NdrEncapsulatedUnionBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrEncapsulatedUnionBufferSize, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrEncapsulatedUnionFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrEncapsulatedUnionFree, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrEncapsulatedUnionMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
ret1 := syscall3(ndrEncapsulatedUnionMemorySize, 2,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pFormat)),
0)
return ULONG(ret1)
}
func NdrFixedArrayBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrFixedArrayBufferSize, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrFixedArrayFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrFixedArrayFree, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrFixedArrayMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
ret1 := syscall3(ndrFixedArrayMemorySize, 2,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pFormat)),
0)
return ULONG(ret1)
}
func NdrFreeBuffer(pStubMsg PMIDL_STUB_MESSAGE) {
syscall3(ndrFreeBuffer, 1,
uintptr(unsafe.Pointer(pStubMsg)),
0,
0)
}
// TODO: Unknown type(s): PFULL_PTR_XLAT_TABLES
// func NdrFullPointerFree(pXlatTables PFULL_PTR_XLAT_TABLES, pointer uintptr) int32
// TODO: Unknown type(s): PFULL_PTR_XLAT_TABLES
// func NdrFullPointerInsertRefId(pXlatTables PFULL_PTR_XLAT_TABLES, refId ULONG, pPointer uintptr)
// TODO: Unknown type(s): PFULL_PTR_XLAT_TABLES, unsigned char
// func NdrFullPointerQueryPointer(pXlatTables PFULL_PTR_XLAT_TABLES, pPointer uintptr, queryType unsigned char, pRefId *ULONG) int32
// TODO: Unknown type(s): PFULL_PTR_XLAT_TABLES, unsigned char
// func NdrFullPointerQueryRefId(pXlatTables PFULL_PTR_XLAT_TABLES, refId ULONG, queryType unsigned char, ppPointer uintptr) int32
// TODO: Unknown type(s): PFULL_PTR_XLAT_TABLES
// func NdrFullPointerXlatFree(pXlatTables PFULL_PTR_XLAT_TABLES)
// TODO: Unknown type(s): PFULL_PTR_XLAT_TABLES
// func NdrFullPointerXlatInit(numberOfPointers ULONG, xlatSide XLAT_SIDE) PFULL_PTR_XLAT_TABLES
func NdrInterfacePointerBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrInterfacePointerBufferSize, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrInterfacePointerFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrInterfacePointerFree, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrInterfacePointerMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
ret1 := syscall3(ndrInterfacePointerMemorySize, 2,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pFormat)),
0)
return ULONG(ret1)
}
func NdrNonConformantStringBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrNonConformantStringBufferSize, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrNonConformantStringMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
ret1 := syscall3(ndrNonConformantStringMemorySize, 2,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pFormat)),
0)
return ULONG(ret1)
}
func NdrNonEncapsulatedUnionBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrNonEncapsulatedUnionBufferSize, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrNonEncapsulatedUnionFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrNonEncapsulatedUnionFree, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrNonEncapsulatedUnionMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
ret1 := syscall3(ndrNonEncapsulatedUnionMemorySize, 2,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pFormat)),
0)
return ULONG(ret1)
}
func NdrOleFree(nodeToFree uintptr) {
syscall3(ndrOleFree, 1,
nodeToFree,
0,
0)
}
func NdrPointerBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrPointerBufferSize, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrPointerFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
syscall3(ndrPointerFree, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pMemory)),
uintptr(unsafe.Pointer(pFormat)))
}
func NdrPointerMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
ret1 := syscall3(ndrPointerMemorySize, 2,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(pFormat)),
0)
return ULONG(ret1)
}
func NdrProxyErrorHandler(dwExceptionCode DWORD) HRESULT {
ret1 := syscall3(ndrProxyErrorHandler, 1,
uintptr(dwExceptionCode),
0,
0)
return HRESULT(ret1)
}
func NdrProxyFreeBuffer(this uintptr, pStubMsg PMIDL_STUB_MESSAGE) {
syscall3(ndrProxyFreeBuffer, 2,
this,
uintptr(unsafe.Pointer(pStubMsg)),
0)
}
func NdrProxyGetBuffer(this uintptr, pStubMsg PMIDL_STUB_MESSAGE) {
syscall3(ndrProxyGetBuffer, 2,
this,
uintptr(unsafe.Pointer(pStubMsg)),
0)
}
// TODO: Unknown type(s): PMIDL_STUB_DESC
// func NdrProxyInitialize(this uintptr, pRpcMsg PRPC_MESSAGE, pStubMsg PMIDL_STUB_MESSAGE, pStubDescriptor PMIDL_STUB_DESC, procNum uint32)
func NdrProxySendReceive(this uintptr, pStubMsg PMIDL_STUB_MESSAGE) {
syscall3(ndrProxySendReceive, 2,
this,
uintptr(unsafe.Pointer(pStubMsg)),
0)
}
func NdrRpcSmSetClientToOsf(pMessage PMIDL_STUB_MESSAGE) {
syscall3(ndrRpcSmSetClientToOsf, 1,
uintptr(unsafe.Pointer(pMessage)),
0,
0)
}
func NdrServerCall2(pRpcMsg PRPC_MESSAGE) {
syscall3(ndrServerCall2, 1,
uintptr(unsafe.Pointer(pRpcMsg)),
0,
0)
}
func NdrServerContextMarshall(pStubMsg PMIDL_STUB_MESSAGE, contextHandle NDR_SCONTEXT, rundownRoutine NDR_RUNDOWN) {
rundownRoutineCallback := syscall.NewCallback(rundownRoutine)
syscall3(ndrServerContextMarshall, 3,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(contextHandle)),
rundownRoutineCallback)
}
func NdrServerContextNewMarshall(pStubMsg PMIDL_STUB_MESSAGE, contextHandle NDR_SCONTEXT, rundownRoutine NDR_RUNDOWN, pFormat /*const*/ PFORMAT_STRING) {
rundownRoutineCallback := syscall.NewCallback(rundownRoutine)
syscall6(ndrServerContextNewMarshall, 4,
uintptr(unsafe.Pointer(pStubMsg)),
uintptr(unsafe.Pointer(contextHandle)),
rundownRoutineCallback,
uintptr(unsafe.Pointer(pFormat)),
0,
0)