ホーム › System.Rpc › NdrPartialIgnoreServerInitialize
NdrPartialIgnoreServerInitialize
関数部分無視ポインタをサーバー側で初期化する。
シグネチャ
// RPCRT4.dll
#include <windows.h>
void NdrPartialIgnoreServerInitialize(
MIDL_STUB_MESSAGE* pStubMsg,
void** ppMemory,
BYTE* pFormat
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| pStubMsg | MIDL_STUB_MESSAGE* | inout |
| ppMemory | void** | inout |
| pFormat | BYTE* | inout |
戻り値の型: void
各言語での呼び出し定義
// RPCRT4.dll
#include <windows.h>
void NdrPartialIgnoreServerInitialize(
MIDL_STUB_MESSAGE* pStubMsg,
void** ppMemory,
BYTE* pFormat
);[DllImport("RPCRT4.dll", ExactSpelling = true)]
static extern void NdrPartialIgnoreServerInitialize(
IntPtr pStubMsg, // MIDL_STUB_MESSAGE* in/out
IntPtr ppMemory, // void** in/out
IntPtr pFormat // BYTE* in/out
);<DllImport("RPCRT4.dll", ExactSpelling:=True)>
Public Shared Sub NdrPartialIgnoreServerInitialize(
pStubMsg As IntPtr, ' MIDL_STUB_MESSAGE* in/out
ppMemory As IntPtr, ' void** in/out
pFormat As IntPtr ' BYTE* in/out
)
End Sub' pStubMsg : MIDL_STUB_MESSAGE* in/out
' ppMemory : void** in/out
' pFormat : BYTE* in/out
Declare PtrSafe Sub NdrPartialIgnoreServerInitialize Lib "rpcrt4" ( _
ByVal pStubMsg As LongPtr, _
ByVal ppMemory As LongPtr, _
ByVal pFormat As LongPtr)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
NdrPartialIgnoreServerInitialize = ctypes.windll.rpcrt4.NdrPartialIgnoreServerInitialize
NdrPartialIgnoreServerInitialize.restype = None
NdrPartialIgnoreServerInitialize.argtypes = [
ctypes.c_void_p, # pStubMsg : MIDL_STUB_MESSAGE* in/out
ctypes.c_void_p, # ppMemory : void** in/out
ctypes.POINTER(ctypes.c_ubyte), # pFormat : BYTE* in/out
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('RPCRT4.dll')
NdrPartialIgnoreServerInitialize = Fiddle::Function.new(
lib['NdrPartialIgnoreServerInitialize'],
[
Fiddle::TYPE_VOIDP, # pStubMsg : MIDL_STUB_MESSAGE* in/out
Fiddle::TYPE_VOIDP, # ppMemory : void** in/out
Fiddle::TYPE_VOIDP, # pFormat : BYTE* in/out
],
Fiddle::TYPE_VOID)#[link(name = "rpcrt4")]
extern "system" {
fn NdrPartialIgnoreServerInitialize(
pStubMsg: *mut MIDL_STUB_MESSAGE, // MIDL_STUB_MESSAGE* in/out
ppMemory: *mut *mut (), // void** in/out
pFormat: *mut u8 // BYTE* in/out
);
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("RPCRT4.dll")]
public static extern void NdrPartialIgnoreServerInitialize(IntPtr pStubMsg, IntPtr ppMemory, IntPtr pFormat);
"@
$api = Add-Type -MemberDefinition $sig -Name 'RPCRT4_NdrPartialIgnoreServerInitialize' -Namespace Win32 -PassThru
# $api::NdrPartialIgnoreServerInitialize(pStubMsg, ppMemory, pFormat)#uselib "RPCRT4.dll"
#func global NdrPartialIgnoreServerInitialize "NdrPartialIgnoreServerInitialize" sptr, sptr, sptr
; NdrPartialIgnoreServerInitialize varptr(pStubMsg), ppMemory, varptr(pFormat)
; pStubMsg : MIDL_STUB_MESSAGE* in/out -> "sptr"
; ppMemory : void** in/out -> "sptr"
; pFormat : BYTE* in/out -> "sptr"出力引数:
#uselib "RPCRT4.dll" #func global NdrPartialIgnoreServerInitialize "NdrPartialIgnoreServerInitialize" var, sptr, var ; NdrPartialIgnoreServerInitialize pStubMsg, ppMemory, pFormat ; pStubMsg : MIDL_STUB_MESSAGE* in/out -> "var" ; ppMemory : void** in/out -> "sptr" ; pFormat : BYTE* in/out -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。#uselib "RPCRT4.dll" #func global NdrPartialIgnoreServerInitialize "NdrPartialIgnoreServerInitialize" sptr, sptr, sptr ; NdrPartialIgnoreServerInitialize varptr(pStubMsg), ppMemory, varptr(pFormat) ; pStubMsg : MIDL_STUB_MESSAGE* in/out -> "sptr" ; ppMemory : void** in/out -> "sptr" ; pFormat : BYTE* in/out -> "sptr" ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
出力引数:
; void NdrPartialIgnoreServerInitialize(MIDL_STUB_MESSAGE* pStubMsg, void** ppMemory, BYTE* pFormat) #uselib "RPCRT4.dll" #func global NdrPartialIgnoreServerInitialize "NdrPartialIgnoreServerInitialize" var, intptr, var ; NdrPartialIgnoreServerInitialize pStubMsg, ppMemory, pFormat ; pStubMsg : MIDL_STUB_MESSAGE* in/out -> "var" ; ppMemory : void** in/out -> "intptr" ; pFormat : BYTE* in/out -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。; void NdrPartialIgnoreServerInitialize(MIDL_STUB_MESSAGE* pStubMsg, void** ppMemory, BYTE* pFormat) #uselib "RPCRT4.dll" #func global NdrPartialIgnoreServerInitialize "NdrPartialIgnoreServerInitialize" intptr, intptr, intptr ; NdrPartialIgnoreServerInitialize varptr(pStubMsg), ppMemory, varptr(pFormat) ; pStubMsg : MIDL_STUB_MESSAGE* in/out -> "intptr" ; ppMemory : void** in/out -> "intptr" ; pFormat : BYTE* in/out -> "intptr" ; ※出力/バッファ引数はポインタ方式(token=intptr / 呼び出しは varptr(変数))。
import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
rpcrt4 = windows.NewLazySystemDLL("RPCRT4.dll")
procNdrPartialIgnoreServerInitialize = rpcrt4.NewProc("NdrPartialIgnoreServerInitialize")
)
// pStubMsg (MIDL_STUB_MESSAGE* in/out), ppMemory (void** in/out), pFormat (BYTE* in/out)
r1, _, err := procNdrPartialIgnoreServerInitialize.Call(
uintptr(pStubMsg),
uintptr(ppMemory),
uintptr(pFormat),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // voidprocedure NdrPartialIgnoreServerInitialize(
pStubMsg: Pointer; // MIDL_STUB_MESSAGE* in/out
ppMemory: Pointer; // void** in/out
pFormat: Pointer // BYTE* in/out
); stdcall;
external 'RPCRT4.dll' name 'NdrPartialIgnoreServerInitialize';result := DllCall("RPCRT4\NdrPartialIgnoreServerInitialize"
, "Ptr", pStubMsg ; MIDL_STUB_MESSAGE* in/out
, "Ptr", ppMemory ; void** in/out
, "Ptr", pFormat ; BYTE* in/out
, "Int") ; return: void●NdrPartialIgnoreServerInitialize(pStubMsg, ppMemory, pFormat) = DLL("RPCRT4.dll", "int NdrPartialIgnoreServerInitialize(void*, void*, void*)")
# 呼び出し: NdrPartialIgnoreServerInitialize(pStubMsg, ppMemory, pFormat)
# pStubMsg : MIDL_STUB_MESSAGE* in/out -> "void*"
# ppMemory : void** in/out -> "void*"
# pFormat : BYTE* in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。