github.com/kbinani/win@v0.3.0/rpcrt4.go (about)

     1  // This file was automatically generated by https://github.com/kbinani/win/blob/generator/internal/cmd/gen/gen.go
     2  // go run internal/cmd/gen/gen.go
     3  
     4  // +build windows
     5  
     6  package win
     7  
     8  import (
     9  	"syscall"
    10  	"unsafe"
    11  )
    12  
    13  var (
    14  	// Library
    15  	librpcrt4 uintptr
    16  
    17  	// Functions
    18  	cStdStubBuffer_AddRef                    uintptr
    19  	cStdStubBuffer_Connect                   uintptr
    20  	cStdStubBuffer_CountRefs                 uintptr
    21  	cStdStubBuffer_DebugServerQueryInterface uintptr
    22  	cStdStubBuffer_DebugServerRelease        uintptr
    23  	cStdStubBuffer_Disconnect                uintptr
    24  	cStdStubBuffer_QueryInterface            uintptr
    25  	createStubFromTypeInfo                   uintptr
    26  	iUnknown_AddRef_Proxy                    uintptr
    27  	iUnknown_QueryInterface_Proxy            uintptr
    28  	iUnknown_Release_Proxy                   uintptr
    29  	i_RpcBindingInqLocalClientPID            uintptr
    30  	i_RpcExceptionFilter                     uintptr
    31  	i_RpcFree                                uintptr
    32  	i_RpcFreeBuffer                          uintptr
    33  	i_RpcGetBuffer                           uintptr
    34  	i_RpcGetCurrentCallHandle                uintptr
    35  	i_RpcMapWin32Status                      uintptr
    36  	i_RpcNegotiateTransferSyntax             uintptr
    37  	i_RpcReceive                             uintptr
    38  	i_RpcSend                                uintptr
    39  	i_RpcSendReceive                         uintptr
    40  	nDRSContextMarshall                      uintptr
    41  	nDRSContextMarshall2                     uintptr
    42  	nDRSContextMarshallEx                    uintptr
    43  	nDRSContextUnmarshall                    uintptr
    44  	nDRSContextUnmarshall2                   uintptr
    45  	nDRSContextUnmarshallEx                  uintptr
    46  	ndrByteCountPointerBufferSize            uintptr
    47  	ndrByteCountPointerFree                  uintptr
    48  	ndrClearOutParameters                    uintptr
    49  	ndrComplexArrayBufferSize                uintptr
    50  	ndrComplexArrayFree                      uintptr
    51  	ndrComplexArrayMemorySize                uintptr
    52  	ndrComplexStructBufferSize               uintptr
    53  	ndrComplexStructFree                     uintptr
    54  	ndrComplexStructMemorySize               uintptr
    55  	ndrConformantArrayBufferSize             uintptr
    56  	ndrConformantArrayFree                   uintptr
    57  	ndrConformantArrayMemorySize             uintptr
    58  	ndrConformantStringBufferSize            uintptr
    59  	ndrConformantStringMemorySize            uintptr
    60  	ndrConformantStructBufferSize            uintptr
    61  	ndrConformantStructFree                  uintptr
    62  	ndrConformantStructMemorySize            uintptr
    63  	ndrConformantVaryingArrayBufferSize      uintptr
    64  	ndrConformantVaryingArrayFree            uintptr
    65  	ndrConformantVaryingArrayMemorySize      uintptr
    66  	ndrConformantVaryingStructBufferSize     uintptr
    67  	ndrConformantVaryingStructFree           uintptr
    68  	ndrConformantVaryingStructMemorySize     uintptr
    69  	ndrContextHandleInitialize               uintptr
    70  	ndrContextHandleSize                     uintptr
    71  	ndrConvert                               uintptr
    72  	ndrConvert2                              uintptr
    73  	ndrCorrelationFree                       uintptr
    74  	ndrCorrelationInitialize                 uintptr
    75  	ndrCorrelationPass                       uintptr
    76  	ndrEncapsulatedUnionBufferSize           uintptr
    77  	ndrEncapsulatedUnionFree                 uintptr
    78  	ndrEncapsulatedUnionMemorySize           uintptr
    79  	ndrFixedArrayBufferSize                  uintptr
    80  	ndrFixedArrayFree                        uintptr
    81  	ndrFixedArrayMemorySize                  uintptr
    82  	ndrFreeBuffer                            uintptr
    83  	ndrInterfacePointerBufferSize            uintptr
    84  	ndrInterfacePointerFree                  uintptr
    85  	ndrInterfacePointerMemorySize            uintptr
    86  	ndrNonConformantStringBufferSize         uintptr
    87  	ndrNonConformantStringMemorySize         uintptr
    88  	ndrNonEncapsulatedUnionBufferSize        uintptr
    89  	ndrNonEncapsulatedUnionFree              uintptr
    90  	ndrNonEncapsulatedUnionMemorySize        uintptr
    91  	ndrOleFree                               uintptr
    92  	ndrPointerBufferSize                     uintptr
    93  	ndrPointerFree                           uintptr
    94  	ndrPointerMemorySize                     uintptr
    95  	ndrProxyErrorHandler                     uintptr
    96  	ndrProxyFreeBuffer                       uintptr
    97  	ndrProxyGetBuffer                        uintptr
    98  	ndrProxySendReceive                      uintptr
    99  	ndrRpcSmSetClientToOsf                   uintptr
   100  	ndrServerCall2                           uintptr
   101  	ndrServerContextMarshall                 uintptr
   102  	ndrServerContextNewMarshall              uintptr
   103  	ndrServerContextNewUnmarshall            uintptr
   104  	ndrServerContextUnmarshall               uintptr
   105  	ndrSimpleStructBufferSize                uintptr
   106  	ndrSimpleStructFree                      uintptr
   107  	ndrSimpleStructMemorySize                uintptr
   108  	ndrUserMarshalBufferSize                 uintptr
   109  	ndrUserMarshalFree                       uintptr
   110  	ndrUserMarshalMemorySize                 uintptr
   111  	ndrVaryingArrayBufferSize                uintptr
   112  	ndrVaryingArrayFree                      uintptr
   113  	ndrVaryingArrayMemorySize                uintptr
   114  	ndrXmitOrRepAsBufferSize                 uintptr
   115  	ndrXmitOrRepAsFree                       uintptr
   116  	ndrXmitOrRepAsMemorySize                 uintptr
   117  	rpcBindingFree                           uintptr
   118  	rpcBindingSetOption                      uintptr
   119  	rpcImpersonateClient                     uintptr
   120  	rpcMgmtEnableIdleCleanup                 uintptr
   121  	rpcMgmtIsServerListening                 uintptr
   122  	rpcMgmtSetComTimeout                     uintptr
   123  	rpcMgmtSetServerStackSize                uintptr
   124  	rpcMgmtStopServerListening               uintptr
   125  	rpcMgmtWaitServerListen                  uintptr
   126  	rpcRevertToSelf                          uintptr
   127  	rpcRevertToSelfEx                        uintptr
   128  	rpcServerListen                          uintptr
   129  	rpcSmDestroyClientContext                uintptr
   130  	rpcSsDestroyClientContext                uintptr
   131  	rpcSsDontSerializeContext                uintptr
   132  )
   133  
   134  func init() {
   135  	// Library
   136  	librpcrt4 = doLoadLibrary("rpcrt4.dll")
   137  
   138  	// Functions
   139  	cStdStubBuffer_AddRef = doGetProcAddress(librpcrt4, "CStdStubBuffer_AddRef")
   140  	cStdStubBuffer_Connect = doGetProcAddress(librpcrt4, "CStdStubBuffer_Connect")
   141  	cStdStubBuffer_CountRefs = doGetProcAddress(librpcrt4, "CStdStubBuffer_CountRefs")
   142  	cStdStubBuffer_DebugServerQueryInterface = doGetProcAddress(librpcrt4, "CStdStubBuffer_DebugServerQueryInterface")
   143  	cStdStubBuffer_DebugServerRelease = doGetProcAddress(librpcrt4, "CStdStubBuffer_DebugServerRelease")
   144  	cStdStubBuffer_Disconnect = doGetProcAddress(librpcrt4, "CStdStubBuffer_Disconnect")
   145  	cStdStubBuffer_QueryInterface = doGetProcAddress(librpcrt4, "CStdStubBuffer_QueryInterface")
   146  	createStubFromTypeInfo = doGetProcAddress(librpcrt4, "CreateStubFromTypeInfo")
   147  	iUnknown_AddRef_Proxy = doGetProcAddress(librpcrt4, "IUnknown_AddRef_Proxy")
   148  	iUnknown_QueryInterface_Proxy = doGetProcAddress(librpcrt4, "IUnknown_QueryInterface_Proxy")
   149  	iUnknown_Release_Proxy = doGetProcAddress(librpcrt4, "IUnknown_Release_Proxy")
   150  	i_RpcBindingInqLocalClientPID = doGetProcAddress(librpcrt4, "I_RpcBindingInqLocalClientPID")
   151  	i_RpcExceptionFilter = doGetProcAddress(librpcrt4, "I_RpcExceptionFilter")
   152  	i_RpcFree = doGetProcAddress(librpcrt4, "I_RpcFree")
   153  	i_RpcFreeBuffer = doGetProcAddress(librpcrt4, "I_RpcFreeBuffer")
   154  	i_RpcGetBuffer = doGetProcAddress(librpcrt4, "I_RpcGetBuffer")
   155  	i_RpcGetCurrentCallHandle = doGetProcAddress(librpcrt4, "I_RpcGetCurrentCallHandle")
   156  	i_RpcMapWin32Status = doGetProcAddress(librpcrt4, "I_RpcMapWin32Status")
   157  	i_RpcNegotiateTransferSyntax = doGetProcAddress(librpcrt4, "I_RpcNegotiateTransferSyntax")
   158  	i_RpcReceive = doGetProcAddress(librpcrt4, "I_RpcReceive")
   159  	i_RpcSend = doGetProcAddress(librpcrt4, "I_RpcSend")
   160  	i_RpcSendReceive = doGetProcAddress(librpcrt4, "I_RpcSendReceive")
   161  	nDRSContextMarshall = doGetProcAddress(librpcrt4, "NDRSContextMarshall")
   162  	nDRSContextMarshall2 = doGetProcAddress(librpcrt4, "NDRSContextMarshall2")
   163  	nDRSContextMarshallEx = doGetProcAddress(librpcrt4, "NDRSContextMarshallEx")
   164  	nDRSContextUnmarshall = doGetProcAddress(librpcrt4, "NDRSContextUnmarshall")
   165  	nDRSContextUnmarshall2 = doGetProcAddress(librpcrt4, "NDRSContextUnmarshall2")
   166  	nDRSContextUnmarshallEx = doGetProcAddress(librpcrt4, "NDRSContextUnmarshallEx")
   167  	ndrByteCountPointerBufferSize = doGetProcAddress(librpcrt4, "NdrByteCountPointerBufferSize")
   168  	ndrByteCountPointerFree = doGetProcAddress(librpcrt4, "NdrByteCountPointerFree")
   169  	ndrClearOutParameters = doGetProcAddress(librpcrt4, "NdrClearOutParameters")
   170  	ndrComplexArrayBufferSize = doGetProcAddress(librpcrt4, "NdrComplexArrayBufferSize")
   171  	ndrComplexArrayFree = doGetProcAddress(librpcrt4, "NdrComplexArrayFree")
   172  	ndrComplexArrayMemorySize = doGetProcAddress(librpcrt4, "NdrComplexArrayMemorySize")
   173  	ndrComplexStructBufferSize = doGetProcAddress(librpcrt4, "NdrComplexStructBufferSize")
   174  	ndrComplexStructFree = doGetProcAddress(librpcrt4, "NdrComplexStructFree")
   175  	ndrComplexStructMemorySize = doGetProcAddress(librpcrt4, "NdrComplexStructMemorySize")
   176  	ndrConformantArrayBufferSize = doGetProcAddress(librpcrt4, "NdrConformantArrayBufferSize")
   177  	ndrConformantArrayFree = doGetProcAddress(librpcrt4, "NdrConformantArrayFree")
   178  	ndrConformantArrayMemorySize = doGetProcAddress(librpcrt4, "NdrConformantArrayMemorySize")
   179  	ndrConformantStringBufferSize = doGetProcAddress(librpcrt4, "NdrConformantStringBufferSize")
   180  	ndrConformantStringMemorySize = doGetProcAddress(librpcrt4, "NdrConformantStringMemorySize")
   181  	ndrConformantStructBufferSize = doGetProcAddress(librpcrt4, "NdrConformantStructBufferSize")
   182  	ndrConformantStructFree = doGetProcAddress(librpcrt4, "NdrConformantStructFree")
   183  	ndrConformantStructMemorySize = doGetProcAddress(librpcrt4, "NdrConformantStructMemorySize")
   184  	ndrConformantVaryingArrayBufferSize = doGetProcAddress(librpcrt4, "NdrConformantVaryingArrayBufferSize")
   185  	ndrConformantVaryingArrayFree = doGetProcAddress(librpcrt4, "NdrConformantVaryingArrayFree")
   186  	ndrConformantVaryingArrayMemorySize = doGetProcAddress(librpcrt4, "NdrConformantVaryingArrayMemorySize")
   187  	ndrConformantVaryingStructBufferSize = doGetProcAddress(librpcrt4, "NdrConformantVaryingStructBufferSize")
   188  	ndrConformantVaryingStructFree = doGetProcAddress(librpcrt4, "NdrConformantVaryingStructFree")
   189  	ndrConformantVaryingStructMemorySize = doGetProcAddress(librpcrt4, "NdrConformantVaryingStructMemorySize")
   190  	ndrContextHandleInitialize = doGetProcAddress(librpcrt4, "NdrContextHandleInitialize")
   191  	ndrContextHandleSize = doGetProcAddress(librpcrt4, "NdrContextHandleSize")
   192  	ndrConvert = doGetProcAddress(librpcrt4, "NdrConvert")
   193  	ndrConvert2 = doGetProcAddress(librpcrt4, "NdrConvert2")
   194  	ndrCorrelationFree = doGetProcAddress(librpcrt4, "NdrCorrelationFree")
   195  	ndrCorrelationInitialize = doGetProcAddress(librpcrt4, "NdrCorrelationInitialize")
   196  	ndrCorrelationPass = doGetProcAddress(librpcrt4, "NdrCorrelationPass")
   197  	ndrEncapsulatedUnionBufferSize = doGetProcAddress(librpcrt4, "NdrEncapsulatedUnionBufferSize")
   198  	ndrEncapsulatedUnionFree = doGetProcAddress(librpcrt4, "NdrEncapsulatedUnionFree")
   199  	ndrEncapsulatedUnionMemorySize = doGetProcAddress(librpcrt4, "NdrEncapsulatedUnionMemorySize")
   200  	ndrFixedArrayBufferSize = doGetProcAddress(librpcrt4, "NdrFixedArrayBufferSize")
   201  	ndrFixedArrayFree = doGetProcAddress(librpcrt4, "NdrFixedArrayFree")
   202  	ndrFixedArrayMemorySize = doGetProcAddress(librpcrt4, "NdrFixedArrayMemorySize")
   203  	ndrFreeBuffer = doGetProcAddress(librpcrt4, "NdrFreeBuffer")
   204  	ndrInterfacePointerBufferSize = doGetProcAddress(librpcrt4, "NdrInterfacePointerBufferSize")
   205  	ndrInterfacePointerFree = doGetProcAddress(librpcrt4, "NdrInterfacePointerFree")
   206  	ndrInterfacePointerMemorySize = doGetProcAddress(librpcrt4, "NdrInterfacePointerMemorySize")
   207  	ndrNonConformantStringBufferSize = doGetProcAddress(librpcrt4, "NdrNonConformantStringBufferSize")
   208  	ndrNonConformantStringMemorySize = doGetProcAddress(librpcrt4, "NdrNonConformantStringMemorySize")
   209  	ndrNonEncapsulatedUnionBufferSize = doGetProcAddress(librpcrt4, "NdrNonEncapsulatedUnionBufferSize")
   210  	ndrNonEncapsulatedUnionFree = doGetProcAddress(librpcrt4, "NdrNonEncapsulatedUnionFree")
   211  	ndrNonEncapsulatedUnionMemorySize = doGetProcAddress(librpcrt4, "NdrNonEncapsulatedUnionMemorySize")
   212  	ndrOleFree = doGetProcAddress(librpcrt4, "NdrOleFree")
   213  	ndrPointerBufferSize = doGetProcAddress(librpcrt4, "NdrPointerBufferSize")
   214  	ndrPointerFree = doGetProcAddress(librpcrt4, "NdrPointerFree")
   215  	ndrPointerMemorySize = doGetProcAddress(librpcrt4, "NdrPointerMemorySize")
   216  	ndrProxyErrorHandler = doGetProcAddress(librpcrt4, "NdrProxyErrorHandler")
   217  	ndrProxyFreeBuffer = doGetProcAddress(librpcrt4, "NdrProxyFreeBuffer")
   218  	ndrProxyGetBuffer = doGetProcAddress(librpcrt4, "NdrProxyGetBuffer")
   219  	ndrProxySendReceive = doGetProcAddress(librpcrt4, "NdrProxySendReceive")
   220  	ndrRpcSmSetClientToOsf = doGetProcAddress(librpcrt4, "NdrRpcSmSetClientToOsf")
   221  	ndrServerCall2 = doGetProcAddress(librpcrt4, "NdrServerCall2")
   222  	ndrServerContextMarshall = doGetProcAddress(librpcrt4, "NdrServerContextMarshall")
   223  	ndrServerContextNewMarshall = doGetProcAddress(librpcrt4, "NdrServerContextNewMarshall")
   224  	ndrServerContextNewUnmarshall = doGetProcAddress(librpcrt4, "NdrServerContextNewUnmarshall")
   225  	ndrServerContextUnmarshall = doGetProcAddress(librpcrt4, "NdrServerContextUnmarshall")
   226  	ndrSimpleStructBufferSize = doGetProcAddress(librpcrt4, "NdrSimpleStructBufferSize")
   227  	ndrSimpleStructFree = doGetProcAddress(librpcrt4, "NdrSimpleStructFree")
   228  	ndrSimpleStructMemorySize = doGetProcAddress(librpcrt4, "NdrSimpleStructMemorySize")
   229  	ndrUserMarshalBufferSize = doGetProcAddress(librpcrt4, "NdrUserMarshalBufferSize")
   230  	ndrUserMarshalFree = doGetProcAddress(librpcrt4, "NdrUserMarshalFree")
   231  	ndrUserMarshalMemorySize = doGetProcAddress(librpcrt4, "NdrUserMarshalMemorySize")
   232  	ndrVaryingArrayBufferSize = doGetProcAddress(librpcrt4, "NdrVaryingArrayBufferSize")
   233  	ndrVaryingArrayFree = doGetProcAddress(librpcrt4, "NdrVaryingArrayFree")
   234  	ndrVaryingArrayMemorySize = doGetProcAddress(librpcrt4, "NdrVaryingArrayMemorySize")
   235  	ndrXmitOrRepAsBufferSize = doGetProcAddress(librpcrt4, "NdrXmitOrRepAsBufferSize")
   236  	ndrXmitOrRepAsFree = doGetProcAddress(librpcrt4, "NdrXmitOrRepAsFree")
   237  	ndrXmitOrRepAsMemorySize = doGetProcAddress(librpcrt4, "NdrXmitOrRepAsMemorySize")
   238  	rpcBindingFree = doGetProcAddress(librpcrt4, "RpcBindingFree")
   239  	rpcBindingSetOption = doGetProcAddress(librpcrt4, "RpcBindingSetOption")
   240  	rpcImpersonateClient = doGetProcAddress(librpcrt4, "RpcImpersonateClient")
   241  	rpcMgmtEnableIdleCleanup = doGetProcAddress(librpcrt4, "RpcMgmtEnableIdleCleanup")
   242  	rpcMgmtIsServerListening = doGetProcAddress(librpcrt4, "RpcMgmtIsServerListening")
   243  	rpcMgmtSetComTimeout = doGetProcAddress(librpcrt4, "RpcMgmtSetComTimeout")
   244  	rpcMgmtSetServerStackSize = doGetProcAddress(librpcrt4, "RpcMgmtSetServerStackSize")
   245  	rpcMgmtStopServerListening = doGetProcAddress(librpcrt4, "RpcMgmtStopServerListening")
   246  	rpcMgmtWaitServerListen = doGetProcAddress(librpcrt4, "RpcMgmtWaitServerListen")
   247  	rpcRevertToSelf = doGetProcAddress(librpcrt4, "RpcRevertToSelf")
   248  	rpcRevertToSelfEx = doGetProcAddress(librpcrt4, "RpcRevertToSelfEx")
   249  	rpcServerListen = doGetProcAddress(librpcrt4, "RpcServerListen")
   250  	rpcSmDestroyClientContext = doGetProcAddress(librpcrt4, "RpcSmDestroyClientContext")
   251  	rpcSsDestroyClientContext = doGetProcAddress(librpcrt4, "RpcSsDestroyClientContext")
   252  	rpcSsDontSerializeContext = doGetProcAddress(librpcrt4, "RpcSsDontSerializeContext")
   253  }
   254  
   255  func CStdStubBuffer_AddRef(this *IRpcStubBuffer) ULONG {
   256  	ret1 := syscall3(cStdStubBuffer_AddRef, 1,
   257  		uintptr(unsafe.Pointer(this)),
   258  		0,
   259  		0)
   260  	return ULONG(ret1)
   261  }
   262  
   263  func CStdStubBuffer_Connect(this *IRpcStubBuffer, pUnkServer *IUnknown) HRESULT {
   264  	ret1 := syscall3(cStdStubBuffer_Connect, 2,
   265  		uintptr(unsafe.Pointer(this)),
   266  		uintptr(unsafe.Pointer(pUnkServer)),
   267  		0)
   268  	return HRESULT(ret1)
   269  }
   270  
   271  func CStdStubBuffer_CountRefs(this *IRpcStubBuffer) ULONG {
   272  	ret1 := syscall3(cStdStubBuffer_CountRefs, 1,
   273  		uintptr(unsafe.Pointer(this)),
   274  		0,
   275  		0)
   276  	return ULONG(ret1)
   277  }
   278  
   279  func CStdStubBuffer_DebugServerQueryInterface(this *IRpcStubBuffer, ppv uintptr) HRESULT {
   280  	ret1 := syscall3(cStdStubBuffer_DebugServerQueryInterface, 2,
   281  		uintptr(unsafe.Pointer(this)),
   282  		ppv,
   283  		0)
   284  	return HRESULT(ret1)
   285  }
   286  
   287  func CStdStubBuffer_DebugServerRelease(this *IRpcStubBuffer, pv uintptr) {
   288  	syscall3(cStdStubBuffer_DebugServerRelease, 2,
   289  		uintptr(unsafe.Pointer(this)),
   290  		pv,
   291  		0)
   292  }
   293  
   294  func CStdStubBuffer_Disconnect(this *IRpcStubBuffer) {
   295  	syscall3(cStdStubBuffer_Disconnect, 1,
   296  		uintptr(unsafe.Pointer(this)),
   297  		0,
   298  		0)
   299  }
   300  
   301  // TODO: Unknown type(s): RPCOLEMESSAGE *
   302  // func CStdStubBuffer_Invoke(this *IRpcStubBuffer, pRpcMsg RPCOLEMESSAGE *, pRpcChannelBuffer *IRpcChannelBuffer) HRESULT
   303  
   304  func CStdStubBuffer_QueryInterface(this *IRpcStubBuffer, riid REFIID, ppvObject uintptr) HRESULT {
   305  	ret1 := syscall3(cStdStubBuffer_QueryInterface, 3,
   306  		uintptr(unsafe.Pointer(this)),
   307  		uintptr(unsafe.Pointer(riid)),
   308  		ppvObject)
   309  	return HRESULT(ret1)
   310  }
   311  
   312  // TODO: Unknown type(s): IPSFactoryBuffer *
   313  // func NdrCStdStubBuffer2_Release(this *IRpcStubBuffer, pPSF IPSFactoryBuffer *) ULONG
   314  
   315  // TODO: Unknown type(s): IPSFactoryBuffer *
   316  // func NdrCStdStubBuffer_Release(this *IRpcStubBuffer, pPSF IPSFactoryBuffer *) ULONG
   317  
   318  // TODO: Unknown type(s): LPRPCSTUBBUFFER
   319  // func CStdStubBuffer_IsIIDSupported(iface LPRPCSTUBBUFFER, riid REFIID) LPRPCSTUBBUFFER
   320  
   321  // TODO: Unknown type(s): LPRPCPROXYBUFFER *, LPTYPEINFO
   322  // func CreateProxyFromTypeInfo(pTypeInfo LPTYPEINFO, pUnkOuter LPUNKNOWN, riid REFIID, ppProxy LPRPCPROXYBUFFER *, ppv *LPVOID) HRESULT
   323  
   324  func CreateStubFromTypeInfo(pTypeInfo *ITypeInfo, riid REFIID, pUnkServer *IUnknown, ppStub **IRpcStubBuffer) HRESULT {
   325  	ret1 := syscall6(createStubFromTypeInfo, 4,
   326  		uintptr(unsafe.Pointer(pTypeInfo)),
   327  		uintptr(unsafe.Pointer(riid)),
   328  		uintptr(unsafe.Pointer(pUnkServer)),
   329  		uintptr(unsafe.Pointer(ppStub)),
   330  		0,
   331  		0)
   332  	return HRESULT(ret1)
   333  }
   334  
   335  func IUnknown_AddRef_Proxy(iface LPUNKNOWN) ULONG {
   336  	ret1 := syscall3(iUnknown_AddRef_Proxy, 1,
   337  		uintptr(unsafe.Pointer(iface)),
   338  		0,
   339  		0)
   340  	return ULONG(ret1)
   341  }
   342  
   343  func IUnknown_QueryInterface_Proxy(iface LPUNKNOWN, riid REFIID, ppvObj *LPVOID) HRESULT {
   344  	ret1 := syscall3(iUnknown_QueryInterface_Proxy, 3,
   345  		uintptr(unsafe.Pointer(iface)),
   346  		uintptr(unsafe.Pointer(riid)),
   347  		uintptr(unsafe.Pointer(ppvObj)))
   348  	return HRESULT(ret1)
   349  }
   350  
   351  func IUnknown_Release_Proxy(iface LPUNKNOWN) ULONG {
   352  	ret1 := syscall3(iUnknown_Release_Proxy, 1,
   353  		uintptr(unsafe.Pointer(iface)),
   354  		0,
   355  		0)
   356  	return ULONG(ret1)
   357  }
   358  
   359  // TODO: Unknown type(s): PRPC_ASYNC_STATE
   360  // func I_RpcAsyncAbortCall(pAsync PRPC_ASYNC_STATE, exceptionCode ULONG) RPC_STATUS
   361  
   362  // TODO: Unknown type(s): PRPC_ASYNC_STATE
   363  // func I_RpcAsyncSetHandle(pMsg PRPC_MESSAGE, pAsync PRPC_ASYNC_STATE) RPC_STATUS
   364  
   365  func I_RpcBindingInqLocalClientPID(clientBinding RPC_BINDING_HANDLE, clientPID *ULONG) RPC_STATUS {
   366  	ret1 := syscall3(i_RpcBindingInqLocalClientPID, 2,
   367  		uintptr(clientBinding),
   368  		uintptr(unsafe.Pointer(clientPID)),
   369  		0)
   370  	return RPC_STATUS(ret1)
   371  }
   372  
   373  // TODO: Unknown type(s): unsigned int *
   374  // func I_RpcBindingInqTransportType(binding RPC_BINDING_HANDLE, aType unsigned int *) RPC_STATUS
   375  
   376  func I_RpcExceptionFilter(exceptionCode ULONG) int32 {
   377  	ret1 := syscall3(i_RpcExceptionFilter, 1,
   378  		uintptr(exceptionCode),
   379  		0,
   380  		0)
   381  	return int32(ret1)
   382  }
   383  
   384  func I_RpcFree(object uintptr) {
   385  	syscall3(i_RpcFree, 1,
   386  		object,
   387  		0,
   388  		0)
   389  }
   390  
   391  func I_RpcFreeBuffer(pMsg PRPC_MESSAGE) RPC_STATUS {
   392  	ret1 := syscall3(i_RpcFreeBuffer, 1,
   393  		uintptr(unsafe.Pointer(pMsg)),
   394  		0,
   395  		0)
   396  	return RPC_STATUS(ret1)
   397  }
   398  
   399  func I_RpcGetBuffer(pMsg PRPC_MESSAGE) RPC_STATUS {
   400  	ret1 := syscall3(i_RpcGetBuffer, 1,
   401  		uintptr(unsafe.Pointer(pMsg)),
   402  		0,
   403  		0)
   404  	return RPC_STATUS(ret1)
   405  }
   406  
   407  func I_RpcGetCurrentCallHandle() RPC_BINDING_HANDLE {
   408  	ret1 := syscall3(i_RpcGetCurrentCallHandle, 0,
   409  		0,
   410  		0,
   411  		0)
   412  	return RPC_BINDING_HANDLE(ret1)
   413  }
   414  
   415  func I_RpcMapWin32Status(status RPC_STATUS) LONG {
   416  	ret1 := syscall3(i_RpcMapWin32Status, 1,
   417  		uintptr(status),
   418  		0,
   419  		0)
   420  	return LONG(ret1)
   421  }
   422  
   423  func I_RpcNegotiateTransferSyntax(pMsg PRPC_MESSAGE) RPC_STATUS {
   424  	ret1 := syscall3(i_RpcNegotiateTransferSyntax, 1,
   425  		uintptr(unsafe.Pointer(pMsg)),
   426  		0,
   427  		0)
   428  	return RPC_STATUS(ret1)
   429  }
   430  
   431  func I_RpcReceive(pMsg PRPC_MESSAGE) RPC_STATUS {
   432  	ret1 := syscall3(i_RpcReceive, 1,
   433  		uintptr(unsafe.Pointer(pMsg)),
   434  		0,
   435  		0)
   436  	return RPC_STATUS(ret1)
   437  }
   438  
   439  func I_RpcSend(pMsg PRPC_MESSAGE) RPC_STATUS {
   440  	ret1 := syscall3(i_RpcSend, 1,
   441  		uintptr(unsafe.Pointer(pMsg)),
   442  		0,
   443  		0)
   444  	return RPC_STATUS(ret1)
   445  }
   446  
   447  func I_RpcSendReceive(pMsg PRPC_MESSAGE) RPC_STATUS {
   448  	ret1 := syscall3(i_RpcSendReceive, 1,
   449  		uintptr(unsafe.Pointer(pMsg)),
   450  		0,
   451  		0)
   452  	return RPC_STATUS(ret1)
   453  }
   454  
   455  // TODO: Unknown type(s): UUID *
   456  // func I_UuidCreate(uuid UUID *) RPC_STATUS
   457  
   458  // TODO: Unknown type(s): MIDL_ES_CODE, char * *, handle_t
   459  // func MesBufferHandleReset(handle handle_t, handleStyle ULONG, operation MIDL_ES_CODE, buffer char * *, bufferSize ULONG, encodedSize *ULONG) RPC_STATUS
   460  
   461  // TODO: Unknown type(s): MIDL_ES_READ, handle_t *
   462  // func MesDecodeIncrementalHandleCreate(userState uintptr, readFn MIDL_ES_READ, pHandle handle_t *) RPC_STATUS
   463  
   464  // TODO: Unknown type(s): MIDL_ES_ALLOC, MIDL_ES_WRITE, handle_t *
   465  // func MesEncodeIncrementalHandleCreate(userState uintptr, allocFn MIDL_ES_ALLOC, writeFn MIDL_ES_WRITE, pHandle handle_t *) RPC_STATUS
   466  
   467  // TODO: Unknown type(s): handle_t
   468  // func MesHandleFree(handle handle_t) RPC_STATUS
   469  
   470  // TODO: Unknown type(s): MIDL_ES_ALLOC, MIDL_ES_CODE, MIDL_ES_READ, MIDL_ES_WRITE, handle_t
   471  // 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
   472  
   473  // TODO: Unknown type(s): NDR_CCONTEXT
   474  // func NDRCContextBinding(cContext NDR_CCONTEXT) RPC_BINDING_HANDLE
   475  
   476  // TODO: Unknown type(s): NDR_CCONTEXT
   477  // func NDRCContextMarshall(cContext NDR_CCONTEXT, pBuff uintptr)
   478  
   479  // TODO: Unknown type(s): NDR_CCONTEXT *
   480  // func NDRCContextUnmarshall(cContext NDR_CCONTEXT *, hBinding RPC_BINDING_HANDLE, pBuff uintptr, dataRepresentation ULONG)
   481  
   482  func NDRSContextMarshall(sContext NDR_SCONTEXT, pBuff uintptr, userRunDownIn NDR_RUNDOWN) {
   483  	userRunDownInCallback := syscall.NewCallback(userRunDownIn)
   484  	syscall3(nDRSContextMarshall, 3,
   485  		uintptr(unsafe.Pointer(sContext)),
   486  		pBuff,
   487  		userRunDownInCallback)
   488  }
   489  
   490  func NDRSContextMarshall2(hBinding RPC_BINDING_HANDLE, sContext NDR_SCONTEXT, pBuff uintptr, userRunDownIn NDR_RUNDOWN, ctxGuard uintptr, flags ULONG) {
   491  	userRunDownInCallback := syscall.NewCallback(userRunDownIn)
   492  	syscall6(nDRSContextMarshall2, 6,
   493  		uintptr(hBinding),
   494  		uintptr(unsafe.Pointer(sContext)),
   495  		pBuff,
   496  		userRunDownInCallback,
   497  		ctxGuard,
   498  		uintptr(flags))
   499  }
   500  
   501  func NDRSContextMarshallEx(hBinding RPC_BINDING_HANDLE, sContext NDR_SCONTEXT, pBuff uintptr, userRunDownIn NDR_RUNDOWN) {
   502  	userRunDownInCallback := syscall.NewCallback(userRunDownIn)
   503  	syscall6(nDRSContextMarshallEx, 4,
   504  		uintptr(hBinding),
   505  		uintptr(unsafe.Pointer(sContext)),
   506  		pBuff,
   507  		userRunDownInCallback,
   508  		0,
   509  		0)
   510  }
   511  
   512  func NDRSContextUnmarshall(pBuff uintptr, dataRepresentation ULONG) NDR_SCONTEXT {
   513  	ret1 := syscall3(nDRSContextUnmarshall, 2,
   514  		pBuff,
   515  		uintptr(dataRepresentation),
   516  		0)
   517  	return (NDR_SCONTEXT)(unsafe.Pointer(ret1))
   518  }
   519  
   520  func NDRSContextUnmarshall2(hBinding RPC_BINDING_HANDLE, pBuff uintptr, dataRepresentation ULONG, ctxGuard uintptr, flags ULONG) NDR_SCONTEXT {
   521  	ret1 := syscall6(nDRSContextUnmarshall2, 5,
   522  		uintptr(hBinding),
   523  		pBuff,
   524  		uintptr(dataRepresentation),
   525  		ctxGuard,
   526  		uintptr(flags),
   527  		0)
   528  	return (NDR_SCONTEXT)(unsafe.Pointer(ret1))
   529  }
   530  
   531  func NDRSContextUnmarshallEx(hBinding RPC_BINDING_HANDLE, pBuff uintptr, dataRepresentation ULONG) NDR_SCONTEXT {
   532  	ret1 := syscall3(nDRSContextUnmarshallEx, 3,
   533  		uintptr(hBinding),
   534  		pBuff,
   535  		uintptr(dataRepresentation))
   536  	return (NDR_SCONTEXT)(unsafe.Pointer(ret1))
   537  }
   538  
   539  func NdrByteCountPointerBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   540  	syscall3(ndrByteCountPointerBufferSize, 3,
   541  		uintptr(unsafe.Pointer(pStubMsg)),
   542  		uintptr(unsafe.Pointer(pMemory)),
   543  		uintptr(unsafe.Pointer(pFormat)))
   544  }
   545  
   546  func NdrByteCountPointerFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   547  	syscall3(ndrByteCountPointerFree, 3,
   548  		uintptr(unsafe.Pointer(pStubMsg)),
   549  		uintptr(unsafe.Pointer(pMemory)),
   550  		uintptr(unsafe.Pointer(pFormat)))
   551  }
   552  
   553  func NdrClearOutParameters(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING, argAddr uintptr) {
   554  	syscall3(ndrClearOutParameters, 3,
   555  		uintptr(unsafe.Pointer(pStubMsg)),
   556  		uintptr(unsafe.Pointer(pFormat)),
   557  		argAddr)
   558  }
   559  
   560  // TODO: Unknown type(s): NDR_CCONTEXT
   561  // func NdrClientContextMarshall(pStubMsg PMIDL_STUB_MESSAGE, contextHandle NDR_CCONTEXT, fCheck int32)
   562  
   563  // TODO: Unknown type(s): NDR_CCONTEXT *
   564  // func NdrClientContextUnmarshall(pStubMsg PMIDL_STUB_MESSAGE, pContextHandle NDR_CCONTEXT *, bindHandle RPC_BINDING_HANDLE)
   565  
   566  // TODO: Unknown type(s): PMIDL_STUB_DESC
   567  // func NdrClientInitializeNew(pRpcMessage PRPC_MESSAGE, pStubMsg PMIDL_STUB_MESSAGE, pStubDesc PMIDL_STUB_DESC, procNum uint32)
   568  
   569  func NdrComplexArrayBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   570  	syscall3(ndrComplexArrayBufferSize, 3,
   571  		uintptr(unsafe.Pointer(pStubMsg)),
   572  		uintptr(unsafe.Pointer(pMemory)),
   573  		uintptr(unsafe.Pointer(pFormat)))
   574  }
   575  
   576  func NdrComplexArrayFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   577  	syscall3(ndrComplexArrayFree, 3,
   578  		uintptr(unsafe.Pointer(pStubMsg)),
   579  		uintptr(unsafe.Pointer(pMemory)),
   580  		uintptr(unsafe.Pointer(pFormat)))
   581  }
   582  
   583  func NdrComplexArrayMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
   584  	ret1 := syscall3(ndrComplexArrayMemorySize, 2,
   585  		uintptr(unsafe.Pointer(pStubMsg)),
   586  		uintptr(unsafe.Pointer(pFormat)),
   587  		0)
   588  	return ULONG(ret1)
   589  }
   590  
   591  func NdrComplexStructBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   592  	syscall3(ndrComplexStructBufferSize, 3,
   593  		uintptr(unsafe.Pointer(pStubMsg)),
   594  		uintptr(unsafe.Pointer(pMemory)),
   595  		uintptr(unsafe.Pointer(pFormat)))
   596  }
   597  
   598  func NdrComplexStructFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   599  	syscall3(ndrComplexStructFree, 3,
   600  		uintptr(unsafe.Pointer(pStubMsg)),
   601  		uintptr(unsafe.Pointer(pMemory)),
   602  		uintptr(unsafe.Pointer(pFormat)))
   603  }
   604  
   605  func NdrComplexStructMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
   606  	ret1 := syscall3(ndrComplexStructMemorySize, 2,
   607  		uintptr(unsafe.Pointer(pStubMsg)),
   608  		uintptr(unsafe.Pointer(pFormat)),
   609  		0)
   610  	return ULONG(ret1)
   611  }
   612  
   613  func NdrConformantArrayBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   614  	syscall3(ndrConformantArrayBufferSize, 3,
   615  		uintptr(unsafe.Pointer(pStubMsg)),
   616  		uintptr(unsafe.Pointer(pMemory)),
   617  		uintptr(unsafe.Pointer(pFormat)))
   618  }
   619  
   620  func NdrConformantArrayFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   621  	syscall3(ndrConformantArrayFree, 3,
   622  		uintptr(unsafe.Pointer(pStubMsg)),
   623  		uintptr(unsafe.Pointer(pMemory)),
   624  		uintptr(unsafe.Pointer(pFormat)))
   625  }
   626  
   627  func NdrConformantArrayMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
   628  	ret1 := syscall3(ndrConformantArrayMemorySize, 2,
   629  		uintptr(unsafe.Pointer(pStubMsg)),
   630  		uintptr(unsafe.Pointer(pFormat)),
   631  		0)
   632  	return ULONG(ret1)
   633  }
   634  
   635  func NdrConformantStringBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   636  	syscall3(ndrConformantStringBufferSize, 3,
   637  		uintptr(unsafe.Pointer(pStubMsg)),
   638  		uintptr(unsafe.Pointer(pMemory)),
   639  		uintptr(unsafe.Pointer(pFormat)))
   640  }
   641  
   642  func NdrConformantStringMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
   643  	ret1 := syscall3(ndrConformantStringMemorySize, 2,
   644  		uintptr(unsafe.Pointer(pStubMsg)),
   645  		uintptr(unsafe.Pointer(pFormat)),
   646  		0)
   647  	return ULONG(ret1)
   648  }
   649  
   650  func NdrConformantStructBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   651  	syscall3(ndrConformantStructBufferSize, 3,
   652  		uintptr(unsafe.Pointer(pStubMsg)),
   653  		uintptr(unsafe.Pointer(pMemory)),
   654  		uintptr(unsafe.Pointer(pFormat)))
   655  }
   656  
   657  func NdrConformantStructFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   658  	syscall3(ndrConformantStructFree, 3,
   659  		uintptr(unsafe.Pointer(pStubMsg)),
   660  		uintptr(unsafe.Pointer(pMemory)),
   661  		uintptr(unsafe.Pointer(pFormat)))
   662  }
   663  
   664  func NdrConformantStructMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
   665  	ret1 := syscall3(ndrConformantStructMemorySize, 2,
   666  		uintptr(unsafe.Pointer(pStubMsg)),
   667  		uintptr(unsafe.Pointer(pFormat)),
   668  		0)
   669  	return ULONG(ret1)
   670  }
   671  
   672  func NdrConformantVaryingArrayBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   673  	syscall3(ndrConformantVaryingArrayBufferSize, 3,
   674  		uintptr(unsafe.Pointer(pStubMsg)),
   675  		uintptr(unsafe.Pointer(pMemory)),
   676  		uintptr(unsafe.Pointer(pFormat)))
   677  }
   678  
   679  func NdrConformantVaryingArrayFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   680  	syscall3(ndrConformantVaryingArrayFree, 3,
   681  		uintptr(unsafe.Pointer(pStubMsg)),
   682  		uintptr(unsafe.Pointer(pMemory)),
   683  		uintptr(unsafe.Pointer(pFormat)))
   684  }
   685  
   686  func NdrConformantVaryingArrayMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
   687  	ret1 := syscall3(ndrConformantVaryingArrayMemorySize, 2,
   688  		uintptr(unsafe.Pointer(pStubMsg)),
   689  		uintptr(unsafe.Pointer(pFormat)),
   690  		0)
   691  	return ULONG(ret1)
   692  }
   693  
   694  func NdrConformantVaryingStructBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   695  	syscall3(ndrConformantVaryingStructBufferSize, 3,
   696  		uintptr(unsafe.Pointer(pStubMsg)),
   697  		uintptr(unsafe.Pointer(pMemory)),
   698  		uintptr(unsafe.Pointer(pFormat)))
   699  }
   700  
   701  func NdrConformantVaryingStructFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   702  	syscall3(ndrConformantVaryingStructFree, 3,
   703  		uintptr(unsafe.Pointer(pStubMsg)),
   704  		uintptr(unsafe.Pointer(pMemory)),
   705  		uintptr(unsafe.Pointer(pFormat)))
   706  }
   707  
   708  func NdrConformantVaryingStructMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
   709  	ret1 := syscall3(ndrConformantVaryingStructMemorySize, 2,
   710  		uintptr(unsafe.Pointer(pStubMsg)),
   711  		uintptr(unsafe.Pointer(pFormat)),
   712  		0)
   713  	return ULONG(ret1)
   714  }
   715  
   716  func NdrContextHandleInitialize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) NDR_SCONTEXT {
   717  	ret1 := syscall3(ndrContextHandleInitialize, 2,
   718  		uintptr(unsafe.Pointer(pStubMsg)),
   719  		uintptr(unsafe.Pointer(pFormat)),
   720  		0)
   721  	return (NDR_SCONTEXT)(unsafe.Pointer(ret1))
   722  }
   723  
   724  func NdrContextHandleSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   725  	syscall3(ndrContextHandleSize, 3,
   726  		uintptr(unsafe.Pointer(pStubMsg)),
   727  		uintptr(unsafe.Pointer(pMemory)),
   728  		uintptr(unsafe.Pointer(pFormat)))
   729  }
   730  
   731  func NdrConvert(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) {
   732  	syscall3(ndrConvert, 2,
   733  		uintptr(unsafe.Pointer(pStubMsg)),
   734  		uintptr(unsafe.Pointer(pFormat)),
   735  		0)
   736  }
   737  
   738  func NdrConvert2(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING, numberParams LONG) {
   739  	syscall3(ndrConvert2, 3,
   740  		uintptr(unsafe.Pointer(pStubMsg)),
   741  		uintptr(unsafe.Pointer(pFormat)),
   742  		uintptr(numberParams))
   743  }
   744  
   745  func NdrCorrelationFree(pStubMsg PMIDL_STUB_MESSAGE) {
   746  	syscall3(ndrCorrelationFree, 1,
   747  		uintptr(unsafe.Pointer(pStubMsg)),
   748  		0,
   749  		0)
   750  }
   751  
   752  func NdrCorrelationInitialize(pStubMsg PMIDL_STUB_MESSAGE, pMemory uintptr, cacheSize ULONG, flags ULONG) {
   753  	syscall6(ndrCorrelationInitialize, 4,
   754  		uintptr(unsafe.Pointer(pStubMsg)),
   755  		pMemory,
   756  		uintptr(cacheSize),
   757  		uintptr(flags),
   758  		0,
   759  		0)
   760  }
   761  
   762  func NdrCorrelationPass(pStubMsg PMIDL_STUB_MESSAGE) {
   763  	syscall3(ndrCorrelationPass, 1,
   764  		uintptr(unsafe.Pointer(pStubMsg)),
   765  		0,
   766  		0)
   767  }
   768  
   769  // TODO: Unknown type(s): CStdPSFactoryBuffer *
   770  // func NdrDllCanUnloadNow(pPSFactoryBuffer CStdPSFactoryBuffer *) HRESULT
   771  
   772  // TODO: Unknown type(s): CStdPSFactoryBuffer *, const ProxyFileInfo * *
   773  // func NdrDllGetClassObject(rclsid /*const*/ REFCLSID, iid REFIID, ppv *LPVOID, pProxyFileList /*const*/ const ProxyFileInfo * *, pclsid /*const*/ *CLSID, pPSFactoryBuffer CStdPSFactoryBuffer *) HRESULT
   774  
   775  // TODO: Unknown type(s): const ProxyFileInfo * *
   776  // func NdrDllRegisterProxy(hDll HMODULE, pProxyFileList /*const*/ const ProxyFileInfo * *, pclsid /*const*/ *CLSID) HRESULT
   777  
   778  // TODO: Unknown type(s): const ProxyFileInfo * *
   779  // func NdrDllUnregisterProxy(hDll HMODULE, pProxyFileList /*const*/ const ProxyFileInfo * *, pclsid /*const*/ *CLSID) HRESULT
   780  
   781  func NdrEncapsulatedUnionBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   782  	syscall3(ndrEncapsulatedUnionBufferSize, 3,
   783  		uintptr(unsafe.Pointer(pStubMsg)),
   784  		uintptr(unsafe.Pointer(pMemory)),
   785  		uintptr(unsafe.Pointer(pFormat)))
   786  }
   787  
   788  func NdrEncapsulatedUnionFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   789  	syscall3(ndrEncapsulatedUnionFree, 3,
   790  		uintptr(unsafe.Pointer(pStubMsg)),
   791  		uintptr(unsafe.Pointer(pMemory)),
   792  		uintptr(unsafe.Pointer(pFormat)))
   793  }
   794  
   795  func NdrEncapsulatedUnionMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
   796  	ret1 := syscall3(ndrEncapsulatedUnionMemorySize, 2,
   797  		uintptr(unsafe.Pointer(pStubMsg)),
   798  		uintptr(unsafe.Pointer(pFormat)),
   799  		0)
   800  	return ULONG(ret1)
   801  }
   802  
   803  func NdrFixedArrayBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   804  	syscall3(ndrFixedArrayBufferSize, 3,
   805  		uintptr(unsafe.Pointer(pStubMsg)),
   806  		uintptr(unsafe.Pointer(pMemory)),
   807  		uintptr(unsafe.Pointer(pFormat)))
   808  }
   809  
   810  func NdrFixedArrayFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   811  	syscall3(ndrFixedArrayFree, 3,
   812  		uintptr(unsafe.Pointer(pStubMsg)),
   813  		uintptr(unsafe.Pointer(pMemory)),
   814  		uintptr(unsafe.Pointer(pFormat)))
   815  }
   816  
   817  func NdrFixedArrayMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
   818  	ret1 := syscall3(ndrFixedArrayMemorySize, 2,
   819  		uintptr(unsafe.Pointer(pStubMsg)),
   820  		uintptr(unsafe.Pointer(pFormat)),
   821  		0)
   822  	return ULONG(ret1)
   823  }
   824  
   825  func NdrFreeBuffer(pStubMsg PMIDL_STUB_MESSAGE) {
   826  	syscall3(ndrFreeBuffer, 1,
   827  		uintptr(unsafe.Pointer(pStubMsg)),
   828  		0,
   829  		0)
   830  }
   831  
   832  // TODO: Unknown type(s): PFULL_PTR_XLAT_TABLES
   833  // func NdrFullPointerFree(pXlatTables PFULL_PTR_XLAT_TABLES, pointer uintptr) int32
   834  
   835  // TODO: Unknown type(s): PFULL_PTR_XLAT_TABLES
   836  // func NdrFullPointerInsertRefId(pXlatTables PFULL_PTR_XLAT_TABLES, refId ULONG, pPointer uintptr)
   837  
   838  // TODO: Unknown type(s): PFULL_PTR_XLAT_TABLES, unsigned char
   839  // func NdrFullPointerQueryPointer(pXlatTables PFULL_PTR_XLAT_TABLES, pPointer uintptr, queryType unsigned char, pRefId *ULONG) int32
   840  
   841  // TODO: Unknown type(s): PFULL_PTR_XLAT_TABLES, unsigned char
   842  // func NdrFullPointerQueryRefId(pXlatTables PFULL_PTR_XLAT_TABLES, refId ULONG, queryType unsigned char, ppPointer uintptr) int32
   843  
   844  // TODO: Unknown type(s): PFULL_PTR_XLAT_TABLES
   845  // func NdrFullPointerXlatFree(pXlatTables PFULL_PTR_XLAT_TABLES)
   846  
   847  // TODO: Unknown type(s): PFULL_PTR_XLAT_TABLES
   848  // func NdrFullPointerXlatInit(numberOfPointers ULONG, xlatSide XLAT_SIDE) PFULL_PTR_XLAT_TABLES
   849  
   850  func NdrInterfacePointerBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   851  	syscall3(ndrInterfacePointerBufferSize, 3,
   852  		uintptr(unsafe.Pointer(pStubMsg)),
   853  		uintptr(unsafe.Pointer(pMemory)),
   854  		uintptr(unsafe.Pointer(pFormat)))
   855  }
   856  
   857  func NdrInterfacePointerFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   858  	syscall3(ndrInterfacePointerFree, 3,
   859  		uintptr(unsafe.Pointer(pStubMsg)),
   860  		uintptr(unsafe.Pointer(pMemory)),
   861  		uintptr(unsafe.Pointer(pFormat)))
   862  }
   863  
   864  func NdrInterfacePointerMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
   865  	ret1 := syscall3(ndrInterfacePointerMemorySize, 2,
   866  		uintptr(unsafe.Pointer(pStubMsg)),
   867  		uintptr(unsafe.Pointer(pFormat)),
   868  		0)
   869  	return ULONG(ret1)
   870  }
   871  
   872  func NdrNonConformantStringBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   873  	syscall3(ndrNonConformantStringBufferSize, 3,
   874  		uintptr(unsafe.Pointer(pStubMsg)),
   875  		uintptr(unsafe.Pointer(pMemory)),
   876  		uintptr(unsafe.Pointer(pFormat)))
   877  }
   878  
   879  func NdrNonConformantStringMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
   880  	ret1 := syscall3(ndrNonConformantStringMemorySize, 2,
   881  		uintptr(unsafe.Pointer(pStubMsg)),
   882  		uintptr(unsafe.Pointer(pFormat)),
   883  		0)
   884  	return ULONG(ret1)
   885  }
   886  
   887  func NdrNonEncapsulatedUnionBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   888  	syscall3(ndrNonEncapsulatedUnionBufferSize, 3,
   889  		uintptr(unsafe.Pointer(pStubMsg)),
   890  		uintptr(unsafe.Pointer(pMemory)),
   891  		uintptr(unsafe.Pointer(pFormat)))
   892  }
   893  
   894  func NdrNonEncapsulatedUnionFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   895  	syscall3(ndrNonEncapsulatedUnionFree, 3,
   896  		uintptr(unsafe.Pointer(pStubMsg)),
   897  		uintptr(unsafe.Pointer(pMemory)),
   898  		uintptr(unsafe.Pointer(pFormat)))
   899  }
   900  
   901  func NdrNonEncapsulatedUnionMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
   902  	ret1 := syscall3(ndrNonEncapsulatedUnionMemorySize, 2,
   903  		uintptr(unsafe.Pointer(pStubMsg)),
   904  		uintptr(unsafe.Pointer(pFormat)),
   905  		0)
   906  	return ULONG(ret1)
   907  }
   908  
   909  func NdrOleFree(nodeToFree uintptr) {
   910  	syscall3(ndrOleFree, 1,
   911  		nodeToFree,
   912  		0,
   913  		0)
   914  }
   915  
   916  func NdrPointerBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   917  	syscall3(ndrPointerBufferSize, 3,
   918  		uintptr(unsafe.Pointer(pStubMsg)),
   919  		uintptr(unsafe.Pointer(pMemory)),
   920  		uintptr(unsafe.Pointer(pFormat)))
   921  }
   922  
   923  func NdrPointerFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
   924  	syscall3(ndrPointerFree, 3,
   925  		uintptr(unsafe.Pointer(pStubMsg)),
   926  		uintptr(unsafe.Pointer(pMemory)),
   927  		uintptr(unsafe.Pointer(pFormat)))
   928  }
   929  
   930  func NdrPointerMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
   931  	ret1 := syscall3(ndrPointerMemorySize, 2,
   932  		uintptr(unsafe.Pointer(pStubMsg)),
   933  		uintptr(unsafe.Pointer(pFormat)),
   934  		0)
   935  	return ULONG(ret1)
   936  }
   937  
   938  func NdrProxyErrorHandler(dwExceptionCode DWORD) HRESULT {
   939  	ret1 := syscall3(ndrProxyErrorHandler, 1,
   940  		uintptr(dwExceptionCode),
   941  		0,
   942  		0)
   943  	return HRESULT(ret1)
   944  }
   945  
   946  func NdrProxyFreeBuffer(this uintptr, pStubMsg PMIDL_STUB_MESSAGE) {
   947  	syscall3(ndrProxyFreeBuffer, 2,
   948  		this,
   949  		uintptr(unsafe.Pointer(pStubMsg)),
   950  		0)
   951  }
   952  
   953  func NdrProxyGetBuffer(this uintptr, pStubMsg PMIDL_STUB_MESSAGE) {
   954  	syscall3(ndrProxyGetBuffer, 2,
   955  		this,
   956  		uintptr(unsafe.Pointer(pStubMsg)),
   957  		0)
   958  }
   959  
   960  // TODO: Unknown type(s): PMIDL_STUB_DESC
   961  // func NdrProxyInitialize(this uintptr, pRpcMsg PRPC_MESSAGE, pStubMsg PMIDL_STUB_MESSAGE, pStubDescriptor PMIDL_STUB_DESC, procNum uint32)
   962  
   963  func NdrProxySendReceive(this uintptr, pStubMsg PMIDL_STUB_MESSAGE) {
   964  	syscall3(ndrProxySendReceive, 2,
   965  		this,
   966  		uintptr(unsafe.Pointer(pStubMsg)),
   967  		0)
   968  }
   969  
   970  func NdrRpcSmSetClientToOsf(pMessage PMIDL_STUB_MESSAGE) {
   971  	syscall3(ndrRpcSmSetClientToOsf, 1,
   972  		uintptr(unsafe.Pointer(pMessage)),
   973  		0,
   974  		0)
   975  }
   976  
   977  func NdrServerCall2(pRpcMsg PRPC_MESSAGE) {
   978  	syscall3(ndrServerCall2, 1,
   979  		uintptr(unsafe.Pointer(pRpcMsg)),
   980  		0,
   981  		0)
   982  }
   983  
   984  func NdrServerContextMarshall(pStubMsg PMIDL_STUB_MESSAGE, contextHandle NDR_SCONTEXT, rundownRoutine NDR_RUNDOWN) {
   985  	rundownRoutineCallback := syscall.NewCallback(rundownRoutine)
   986  	syscall3(ndrServerContextMarshall, 3,
   987  		uintptr(unsafe.Pointer(pStubMsg)),
   988  		uintptr(unsafe.Pointer(contextHandle)),
   989  		rundownRoutineCallback)
   990  }
   991  
   992  func NdrServerContextNewMarshall(pStubMsg PMIDL_STUB_MESSAGE, contextHandle NDR_SCONTEXT, rundownRoutine NDR_RUNDOWN, pFormat /*const*/ PFORMAT_STRING) {
   993  	rundownRoutineCallback := syscall.NewCallback(rundownRoutine)
   994  	syscall6(ndrServerContextNewMarshall, 4,
   995  		uintptr(unsafe.Pointer(pStubMsg)),
   996  		uintptr(unsafe.Pointer(contextHandle)),
   997  		rundownRoutineCallback,
   998  		uintptr(unsafe.Pointer(pFormat)),
   999  		0,
  1000  		0)
  1001  }
  1002  
  1003  func NdrServerContextNewUnmarshall(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) NDR_SCONTEXT {
  1004  	ret1 := syscall3(ndrServerContextNewUnmarshall, 2,
  1005  		uintptr(unsafe.Pointer(pStubMsg)),
  1006  		uintptr(unsafe.Pointer(pFormat)),
  1007  		0)
  1008  	return (NDR_SCONTEXT)(unsafe.Pointer(ret1))
  1009  }
  1010  
  1011  func NdrServerContextUnmarshall(pStubMsg PMIDL_STUB_MESSAGE) NDR_SCONTEXT {
  1012  	ret1 := syscall3(ndrServerContextUnmarshall, 1,
  1013  		uintptr(unsafe.Pointer(pStubMsg)),
  1014  		0,
  1015  		0)
  1016  	return (NDR_SCONTEXT)(unsafe.Pointer(ret1))
  1017  }
  1018  
  1019  func NdrSimpleStructBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
  1020  	syscall3(ndrSimpleStructBufferSize, 3,
  1021  		uintptr(unsafe.Pointer(pStubMsg)),
  1022  		uintptr(unsafe.Pointer(pMemory)),
  1023  		uintptr(unsafe.Pointer(pFormat)))
  1024  }
  1025  
  1026  func NdrSimpleStructFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
  1027  	syscall3(ndrSimpleStructFree, 3,
  1028  		uintptr(unsafe.Pointer(pStubMsg)),
  1029  		uintptr(unsafe.Pointer(pMemory)),
  1030  		uintptr(unsafe.Pointer(pFormat)))
  1031  }
  1032  
  1033  func NdrSimpleStructMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
  1034  	ret1 := syscall3(ndrSimpleStructMemorySize, 2,
  1035  		uintptr(unsafe.Pointer(pStubMsg)),
  1036  		uintptr(unsafe.Pointer(pFormat)),
  1037  		0)
  1038  	return ULONG(ret1)
  1039  }
  1040  
  1041  // TODO: Unknown type(s): unsigned char
  1042  // func NdrSimpleTypeMarshall(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, formatChar unsigned char)
  1043  
  1044  // TODO: Unknown type(s): unsigned char
  1045  // func NdrSimpleTypeUnmarshall(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, formatChar unsigned char)
  1046  
  1047  // TODO: Unknown type(s): struct IRpcChannelBuffer *, struct IRpcStubBuffer *
  1048  // func NdrStubCall2(pThis struct IRpcStubBuffer *, pChannel struct IRpcChannelBuffer *, pRpcMsg PRPC_MESSAGE, pdwStubPhase *uint32) LONG
  1049  
  1050  // TODO: Unknown type(s): LPRPCCHANNELBUFFER, LPRPCSTUBBUFFER
  1051  // func NdrStubGetBuffer(iface LPRPCSTUBBUFFER, pRpcChannelBuffer LPRPCCHANNELBUFFER, pStubMsg PMIDL_STUB_MESSAGE)
  1052  
  1053  // TODO: Unknown type(s): LPRPCCHANNELBUFFER, PMIDL_STUB_DESC
  1054  // func NdrStubInitialize(pRpcMsg PRPC_MESSAGE, pStubMsg PMIDL_STUB_MESSAGE, pStubDescriptor PMIDL_STUB_DESC, pRpcChannelBuffer LPRPCCHANNELBUFFER)
  1055  
  1056  func NdrUserMarshalBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
  1057  	syscall3(ndrUserMarshalBufferSize, 3,
  1058  		uintptr(unsafe.Pointer(pStubMsg)),
  1059  		uintptr(unsafe.Pointer(pMemory)),
  1060  		uintptr(unsafe.Pointer(pFormat)))
  1061  }
  1062  
  1063  func NdrUserMarshalFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
  1064  	syscall3(ndrUserMarshalFree, 3,
  1065  		uintptr(unsafe.Pointer(pStubMsg)),
  1066  		uintptr(unsafe.Pointer(pMemory)),
  1067  		uintptr(unsafe.Pointer(pFormat)))
  1068  }
  1069  
  1070  func NdrUserMarshalMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
  1071  	ret1 := syscall3(ndrUserMarshalMemorySize, 2,
  1072  		uintptr(unsafe.Pointer(pStubMsg)),
  1073  		uintptr(unsafe.Pointer(pFormat)),
  1074  		0)
  1075  	return ULONG(ret1)
  1076  }
  1077  
  1078  func NdrVaryingArrayBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
  1079  	syscall3(ndrVaryingArrayBufferSize, 3,
  1080  		uintptr(unsafe.Pointer(pStubMsg)),
  1081  		uintptr(unsafe.Pointer(pMemory)),
  1082  		uintptr(unsafe.Pointer(pFormat)))
  1083  }
  1084  
  1085  func NdrVaryingArrayFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
  1086  	syscall3(ndrVaryingArrayFree, 3,
  1087  		uintptr(unsafe.Pointer(pStubMsg)),
  1088  		uintptr(unsafe.Pointer(pMemory)),
  1089  		uintptr(unsafe.Pointer(pFormat)))
  1090  }
  1091  
  1092  func NdrVaryingArrayMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
  1093  	ret1 := syscall3(ndrVaryingArrayMemorySize, 2,
  1094  		uintptr(unsafe.Pointer(pStubMsg)),
  1095  		uintptr(unsafe.Pointer(pFormat)),
  1096  		0)
  1097  	return ULONG(ret1)
  1098  }
  1099  
  1100  func NdrXmitOrRepAsBufferSize(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
  1101  	syscall3(ndrXmitOrRepAsBufferSize, 3,
  1102  		uintptr(unsafe.Pointer(pStubMsg)),
  1103  		uintptr(unsafe.Pointer(pMemory)),
  1104  		uintptr(unsafe.Pointer(pFormat)))
  1105  }
  1106  
  1107  func NdrXmitOrRepAsFree(pStubMsg PMIDL_STUB_MESSAGE, pMemory *byte, pFormat /*const*/ PFORMAT_STRING) {
  1108  	syscall3(ndrXmitOrRepAsFree, 3,
  1109  		uintptr(unsafe.Pointer(pStubMsg)),
  1110  		uintptr(unsafe.Pointer(pMemory)),
  1111  		uintptr(unsafe.Pointer(pFormat)))
  1112  }
  1113  
  1114  func NdrXmitOrRepAsMemorySize(pStubMsg PMIDL_STUB_MESSAGE, pFormat /*const*/ PFORMAT_STRING) ULONG {
  1115  	ret1 := syscall3(ndrXmitOrRepAsMemorySize, 2,
  1116  		uintptr(unsafe.Pointer(pStubMsg)),
  1117  		uintptr(unsafe.Pointer(pFormat)),
  1118  		0)
  1119  	return ULONG(ret1)
  1120  }
  1121  
  1122  // TODO: Unknown type(s): PRPC_ASYNC_STATE
  1123  // func RpcAsyncAbortCall(pAsync PRPC_ASYNC_STATE, exceptionCode ULONG) RPC_STATUS
  1124  
  1125  // TODO: Unknown type(s): PRPC_ASYNC_STATE
  1126  // func RpcAsyncCancelCall(pAsync PRPC_ASYNC_STATE, fAbortCall bool) RPC_STATUS
  1127  
  1128  // TODO: Unknown type(s): PRPC_ASYNC_STATE
  1129  // func RpcAsyncCompleteCall(pAsync PRPC_ASYNC_STATE, reply uintptr) RPC_STATUS
  1130  
  1131  // TODO: Unknown type(s): PRPC_ASYNC_STATE
  1132  // func RpcAsyncGetCallStatus(pAsync PRPC_ASYNC_STATE) RPC_STATUS
  1133  
  1134  // TODO: Unknown type(s): PRPC_ASYNC_STATE
  1135  // func RpcAsyncInitializeHandle(pAsync PRPC_ASYNC_STATE, size uint32) RPC_STATUS
  1136  
  1137  func RpcBindingFree(binding *RPC_BINDING_HANDLE) RPC_STATUS {
  1138  	ret1 := syscall3(rpcBindingFree, 1,
  1139  		uintptr(unsafe.Pointer(binding)),
  1140  		0,
  1141  		0)
  1142  	return RPC_STATUS(ret1)
  1143  }
  1144  
  1145  // TODO: Unknown type(s): RPC_WSTR
  1146  // func RpcBindingFromStringBinding(stringBinding RPC_WSTR, binding *RPC_BINDING_HANDLE) RPC_STATUS
  1147  
  1148  // TODO: Unknown type(s): UUID *
  1149  // func RpcBindingInqObject(binding RPC_BINDING_HANDLE, objectUuid UUID *) RPC_STATUS
  1150  
  1151  // TODO: Unknown type(s): UUID *
  1152  // func RpcBindingSetObject(binding RPC_BINDING_HANDLE, objectUuid UUID *) RPC_STATUS
  1153  
  1154  func RpcBindingSetOption(bindingHandle RPC_BINDING_HANDLE, option ULONG, optionValue *uint32) RPC_STATUS {
  1155  	ret1 := syscall3(rpcBindingSetOption, 3,
  1156  		uintptr(bindingHandle),
  1157  		uintptr(option),
  1158  		uintptr(unsafe.Pointer(optionValue)))
  1159  	return RPC_STATUS(ret1)
  1160  }
  1161  
  1162  // TODO: Unknown type(s): RPC_WSTR *
  1163  // func RpcBindingToStringBinding(binding RPC_BINDING_HANDLE, stringBinding RPC_WSTR *) RPC_STATUS
  1164  
  1165  // TODO: Unknown type(s): RPC_BINDING_VECTOR * *
  1166  // func RpcBindingVectorFree(bindingVector RPC_BINDING_VECTOR * *) RPC_STATUS
  1167  
  1168  // TODO: Unknown type(s): RPC_BINDING_VECTOR *, RPC_IF_HANDLE, RPC_WSTR, UUID_VECTOR *
  1169  // func RpcEpRegisterNoReplace(ifSpec RPC_IF_HANDLE, bindingVector RPC_BINDING_VECTOR *, uuidVector UUID_VECTOR *, annotation RPC_WSTR) RPC_STATUS
  1170  
  1171  // TODO: Unknown type(s): RPC_BINDING_VECTOR *, RPC_IF_HANDLE, RPC_WSTR, UUID_VECTOR *
  1172  // func RpcEpRegister(ifSpec RPC_IF_HANDLE, bindingVector RPC_BINDING_VECTOR *, uuidVector UUID_VECTOR *, annotation RPC_WSTR) RPC_STATUS
  1173  
  1174  // TODO: Unknown type(s): RPC_IF_HANDLE
  1175  // func RpcEpResolveBinding(binding RPC_BINDING_HANDLE, ifSpec RPC_IF_HANDLE) RPC_STATUS
  1176  
  1177  // TODO: Unknown type(s): RPC_BINDING_VECTOR *, RPC_IF_HANDLE, UUID_VECTOR *
  1178  // func RpcEpUnregister(ifSpec RPC_IF_HANDLE, bindingVector RPC_BINDING_VECTOR *, uuidVector UUID_VECTOR *) RPC_STATUS
  1179  
  1180  func RpcImpersonateClient(bindingHandle RPC_BINDING_HANDLE) RPC_STATUS {
  1181  	ret1 := syscall3(rpcImpersonateClient, 1,
  1182  		uintptr(bindingHandle),
  1183  		0,
  1184  		0)
  1185  	return RPC_STATUS(ret1)
  1186  }
  1187  
  1188  func RpcMgmtEnableIdleCleanup() RPC_STATUS {
  1189  	ret1 := syscall3(rpcMgmtEnableIdleCleanup, 0,
  1190  		0,
  1191  		0,
  1192  		0)
  1193  	return RPC_STATUS(ret1)
  1194  }
  1195  
  1196  // TODO: Unknown type(s): RPC_EP_INQ_HANDLE *, RPC_IF_ID *, UUID *
  1197  // func RpcMgmtEpEltInqBegin(binding RPC_BINDING_HANDLE, inquiryType ULONG, ifId RPC_IF_ID *, versOption ULONG, objectUuid UUID *, inquiryContext RPC_EP_INQ_HANDLE *) RPC_STATUS
  1198  
  1199  // TODO: Unknown type(s): RPC_IF_ID_VECTOR * *
  1200  // func RpcMgmtInqIfIds(binding RPC_BINDING_HANDLE, ifIdVector RPC_IF_ID_VECTOR * *) RPC_STATUS
  1201  
  1202  // TODO: Unknown type(s): RPC_STATS_VECTOR * *
  1203  // func RpcMgmtInqStats(binding RPC_BINDING_HANDLE, statistics RPC_STATS_VECTOR * *) RPC_STATUS
  1204  
  1205  func RpcMgmtIsServerListening(binding RPC_BINDING_HANDLE) RPC_STATUS {
  1206  	ret1 := syscall3(rpcMgmtIsServerListening, 1,
  1207  		uintptr(binding),
  1208  		0,
  1209  		0)
  1210  	return RPC_STATUS(ret1)
  1211  }
  1212  
  1213  // TODO: Unknown type(s): RPC_MGMT_AUTHORIZATION_FN
  1214  // func RpcMgmtSetAuthorizationFn(fn RPC_MGMT_AUTHORIZATION_FN) RPC_STATUS
  1215  
  1216  func RpcMgmtSetComTimeout(bindingHandle RPC_BINDING_HANDLE, timeout uint32) RPC_STATUS {
  1217  	ret1 := syscall3(rpcMgmtSetComTimeout, 2,
  1218  		uintptr(bindingHandle),
  1219  		uintptr(timeout),
  1220  		0)
  1221  	return RPC_STATUS(ret1)
  1222  }
  1223  
  1224  func RpcMgmtSetServerStackSize(threadStackSize ULONG) RPC_STATUS {
  1225  	ret1 := syscall3(rpcMgmtSetServerStackSize, 1,
  1226  		uintptr(threadStackSize),
  1227  		0,
  1228  		0)
  1229  	return RPC_STATUS(ret1)
  1230  }
  1231  
  1232  // TODO: Unknown type(s): RPC_STATS_VECTOR * *
  1233  // func RpcMgmtStatsVectorFree(statsVector RPC_STATS_VECTOR * *) RPC_STATUS
  1234  
  1235  func RpcMgmtStopServerListening(binding RPC_BINDING_HANDLE) RPC_STATUS {
  1236  	ret1 := syscall3(rpcMgmtStopServerListening, 1,
  1237  		uintptr(binding),
  1238  		0,
  1239  		0)
  1240  	return RPC_STATUS(ret1)
  1241  }
  1242  
  1243  func RpcMgmtWaitServerListen() RPC_STATUS {
  1244  	ret1 := syscall3(rpcMgmtWaitServerListen, 0,
  1245  		0,
  1246  		0,
  1247  		0)
  1248  	return RPC_STATUS(ret1)
  1249  }
  1250  
  1251  // TODO: Unknown type(s): RPC_PROTSEQ_VECTORW * *
  1252  // func RpcNetworkInqProtseqs(protseqs RPC_PROTSEQ_VECTORW * *) RPC_STATUS
  1253  
  1254  // TODO: Unknown type(s): RPC_WSTR
  1255  // func RpcNetworkIsProtseqValid(protseq RPC_WSTR) RPC_STATUS
  1256  
  1257  // TODO: Unknown type(s): UUID *
  1258  // func RpcObjectSetType(objUuid UUID *, typeUuid UUID *) RPC_STATUS
  1259  
  1260  // TODO: Unknown type(s): RPC_PROTSEQ_VECTORW * *
  1261  // func RpcProtseqVectorFree(protseqs RPC_PROTSEQ_VECTORW * *) RPC_STATUS
  1262  
  1263  // TODO: Unknown type(s): DECLSPEC_NORETURN
  1264  // func RpcRaiseException(exception RPC_STATUS) DECLSPEC_NORETURN
  1265  
  1266  func RpcRevertToSelf() RPC_STATUS {
  1267  	ret1 := syscall3(rpcRevertToSelf, 0,
  1268  		0,
  1269  		0,
  1270  		0)
  1271  	return RPC_STATUS(ret1)
  1272  }
  1273  
  1274  func RpcRevertToSelfEx(bindingHandle RPC_BINDING_HANDLE) RPC_STATUS {
  1275  	ret1 := syscall3(rpcRevertToSelfEx, 1,
  1276  		uintptr(bindingHandle),
  1277  		0,
  1278  		0)
  1279  	return RPC_STATUS(ret1)
  1280  }
  1281  
  1282  // TODO: Unknown type(s): RPC_BINDING_VECTOR * *
  1283  // func RpcServerInqBindings(bindingVector RPC_BINDING_VECTOR * *) RPC_STATUS
  1284  
  1285  func RpcServerListen(minimumCallThreads UINT, maxCalls UINT, dontWait UINT) RPC_STATUS {
  1286  	ret1 := syscall3(rpcServerListen, 3,
  1287  		uintptr(minimumCallThreads),
  1288  		uintptr(maxCalls),
  1289  		uintptr(dontWait))
  1290  	return RPC_STATUS(ret1)
  1291  }
  1292  
  1293  // TODO: Unknown type(s): RPC_AUTH_KEY_RETRIEVAL_FN, RPC_WSTR
  1294  // func RpcServerRegisterAuthInfo(serverPrincName RPC_WSTR, authnSvc ULONG, getKeyFn RPC_AUTH_KEY_RETRIEVAL_FN, arg LPVOID) RPC_STATUS
  1295  
  1296  // TODO: Unknown type(s): RPC_IF_HANDLE, RPC_MGR_EPV *, UUID *
  1297  // func RpcServerRegisterIf(ifSpec RPC_IF_HANDLE, mgrTypeUuid UUID *, mgrEpv RPC_MGR_EPV *) RPC_STATUS
  1298  
  1299  // TODO: Unknown type(s): RPC_IF_CALLBACK_FN *, RPC_IF_HANDLE, RPC_MGR_EPV *, UUID *
  1300  // func RpcServerRegisterIf2(ifSpec RPC_IF_HANDLE, mgrTypeUuid UUID *, mgrEpv RPC_MGR_EPV *, flags UINT, maxCalls UINT, maxRpcSize UINT, ifCallbackFn RPC_IF_CALLBACK_FN *) RPC_STATUS
  1301  
  1302  // TODO: Unknown type(s): RPC_IF_CALLBACK_FN *, RPC_IF_HANDLE, RPC_MGR_EPV *, UUID *
  1303  // func RpcServerRegisterIfEx(ifSpec RPC_IF_HANDLE, mgrTypeUuid UUID *, mgrEpv RPC_MGR_EPV *, flags UINT, maxCalls UINT, ifCallbackFn RPC_IF_CALLBACK_FN *) RPC_STATUS
  1304  
  1305  // TODO: Unknown type(s): RPC_IF_HANDLE, UUID *
  1306  // func RpcServerUnregisterIf(ifSpec RPC_IF_HANDLE, mgrTypeUuid UUID *, waitForCallsToComplete UINT) RPC_STATUS
  1307  
  1308  // TODO: Unknown type(s): RPC_IF_HANDLE, UUID *
  1309  // func RpcServerUnregisterIfEx(ifSpec RPC_IF_HANDLE, mgrTypeUuid UUID *, rundownContextHandles int32) RPC_STATUS
  1310  
  1311  // TODO: Unknown type(s): PRPC_POLICY, RPC_WSTR
  1312  // func RpcServerUseProtseqEpEx(protseq RPC_WSTR, maxCalls UINT, endpoint RPC_WSTR, securityDescriptor LPVOID, lpPolicy PRPC_POLICY) RPC_STATUS
  1313  
  1314  // TODO: Unknown type(s): RPC_WSTR
  1315  // func RpcServerUseProtseqEp(protseq RPC_WSTR, maxCalls UINT, endpoint RPC_WSTR, securityDescriptor LPVOID) RPC_STATUS
  1316  
  1317  // TODO: Unknown type(s): RPC_WSTR
  1318  // func RpcServerUseProtseq(protseq RPC_WSTR, maxCalls uint32, securityDescriptor uintptr) RPC_STATUS
  1319  
  1320  func RpcSmDestroyClientContext(contextHandle uintptr) RPC_STATUS {
  1321  	ret1 := syscall3(rpcSmDestroyClientContext, 1,
  1322  		contextHandle,
  1323  		0,
  1324  		0)
  1325  	return RPC_STATUS(ret1)
  1326  }
  1327  
  1328  func RpcSsDestroyClientContext(contextHandle uintptr) {
  1329  	syscall3(rpcSsDestroyClientContext, 1,
  1330  		contextHandle,
  1331  		0,
  1332  		0)
  1333  }
  1334  
  1335  func RpcSsDontSerializeContext() {
  1336  	syscall3(rpcSsDontSerializeContext, 0,
  1337  		0,
  1338  		0,
  1339  		0)
  1340  }
  1341  
  1342  // TODO: Unknown type(s): RPC_WSTR, RPC_WSTR *
  1343  // func RpcStringBindingCompose(objUuid RPC_WSTR, protseq RPC_WSTR, networkAddr RPC_WSTR, endpoint RPC_WSTR, options RPC_WSTR, stringBinding RPC_WSTR *) RPC_STATUS
  1344  
  1345  // TODO: Unknown type(s): RPC_WSTR, RPC_WSTR *
  1346  // func RpcStringBindingParse(stringBinding RPC_WSTR, objUuid RPC_WSTR *, protseq RPC_WSTR *, networkAddr RPC_WSTR *, endpoint RPC_WSTR *, options RPC_WSTR *) RPC_STATUS
  1347  
  1348  // TODO: Unknown type(s): RPC_WSTR *
  1349  // func RpcStringFree(string RPC_WSTR *) RPC_STATUS
  1350  
  1351  // TODO: Unknown type(s): twr_t * *
  1352  // func TowerConstruct(object /*const*/ *RPC_SYNTAX_IDENTIFIER, syntax /*const*/ *RPC_SYNTAX_IDENTIFIER, protseq /*const*/ *CHAR, endpoint /*const*/ *CHAR, address /*const*/ *CHAR, tower twr_t * *) RPC_STATUS
  1353  
  1354  // TODO: Unknown type(s): char * *, const twr_t *
  1355  // func TowerExplode(tower /*const*/ const twr_t *, object PRPC_SYNTAX_IDENTIFIER, syntax PRPC_SYNTAX_IDENTIFIER, protseq char * *, endpoint char * *, address char * *) RPC_STATUS
  1356  
  1357  // TODO: Unknown type(s): UUID *
  1358  // func UuidCompare(uuid1 UUID *, uuid2 UUID *, status *RPC_STATUS) int32
  1359  
  1360  // TODO: Unknown type(s): UUID *
  1361  // func UuidCreate(uuid UUID *) RPC_STATUS
  1362  
  1363  // TODO: Unknown type(s): UUID *
  1364  // func UuidCreateNil(uuid UUID *) RPC_STATUS
  1365  
  1366  // TODO: Unknown type(s): UUID *
  1367  // func UuidCreateSequential(uuid UUID *) RPC_STATUS
  1368  
  1369  // TODO: Unknown type(s): UUID *
  1370  // func UuidEqual(uuid1 UUID *, uuid2 UUID *, status *RPC_STATUS) int32
  1371  
  1372  // TODO: Unknown type(s): RPC_WSTR, UUID *
  1373  // func UuidFromString(s RPC_WSTR, uuid UUID *) RPC_STATUS
  1374  
  1375  // TODO: Unknown type(s): UUID *
  1376  // func UuidHash(uuid UUID *, status *RPC_STATUS) int16
  1377  
  1378  // TODO: Unknown type(s): UUID *
  1379  // func UuidIsNil(uuid UUID *, status *RPC_STATUS) int32
  1380  
  1381  // TODO: Unknown type(s): RPC_WSTR *, UUID *
  1382  // func UuidToString(uuid UUID *, stringUuid RPC_WSTR *) RPC_STATUS