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