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