Win32 API 日本語リファレンス
ホームSystem.Rpc › Ndr64AsyncServerCallAll

Ndr64AsyncServerCallAll

関数
64ビットNDRの全形式非同期サーバー呼び出しを処理する。
DLLRPCRT4.dll呼出規約winapi対応OSWindows XP 以降

シグネチャ

// RPCRT4.dll
#include <windows.h>

void Ndr64AsyncServerCallAll(
    RPC_MESSAGE* pRpcMsg
);

パラメーター

名前方向
pRpcMsgRPC_MESSAGE*inout

戻り値の型: void

各言語での呼び出し定義

// RPCRT4.dll
#include <windows.h>

void Ndr64AsyncServerCallAll(
    RPC_MESSAGE* pRpcMsg
);
[DllImport("RPCRT4.dll", ExactSpelling = true)]
static extern void Ndr64AsyncServerCallAll(
    IntPtr pRpcMsg   // RPC_MESSAGE* in/out
);
<DllImport("RPCRT4.dll", ExactSpelling:=True)>
Public Shared Sub Ndr64AsyncServerCallAll(
    pRpcMsg As IntPtr   ' RPC_MESSAGE* in/out
)
End Sub
' pRpcMsg : RPC_MESSAGE* in/out
Declare PtrSafe Sub Ndr64AsyncServerCallAll Lib "rpcrt4" ( _
    ByVal pRpcMsg As LongPtr)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

Ndr64AsyncServerCallAll = ctypes.windll.rpcrt4.Ndr64AsyncServerCallAll
Ndr64AsyncServerCallAll.restype = None
Ndr64AsyncServerCallAll.argtypes = [
    ctypes.c_void_p,  # pRpcMsg : RPC_MESSAGE* in/out
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('RPCRT4.dll')
Ndr64AsyncServerCallAll = Fiddle::Function.new(
  lib['Ndr64AsyncServerCallAll'],
  [
    Fiddle::TYPE_VOIDP,  # pRpcMsg : RPC_MESSAGE* in/out
  ],
  Fiddle::TYPE_VOID)
#[link(name = "rpcrt4")]
extern "system" {
    fn Ndr64AsyncServerCallAll(
        pRpcMsg: *mut RPC_MESSAGE  // RPC_MESSAGE* in/out
    );
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("RPCRT4.dll")]
public static extern void Ndr64AsyncServerCallAll(IntPtr pRpcMsg);
"@
$api = Add-Type -MemberDefinition $sig -Name 'RPCRT4_Ndr64AsyncServerCallAll' -Namespace Win32 -PassThru
# $api::Ndr64AsyncServerCallAll(pRpcMsg)
#uselib "RPCRT4.dll"
#func global Ndr64AsyncServerCallAll "Ndr64AsyncServerCallAll" sptr
; Ndr64AsyncServerCallAll varptr(pRpcMsg)
; pRpcMsg : RPC_MESSAGE* in/out -> "sptr"
出力引数:
#uselib "RPCRT4.dll"
#func global Ndr64AsyncServerCallAll "Ndr64AsyncServerCallAll" var
; Ndr64AsyncServerCallAll pRpcMsg
; pRpcMsg : RPC_MESSAGE* in/out -> "var"
; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。
出力引数:
; void Ndr64AsyncServerCallAll(RPC_MESSAGE* pRpcMsg)
#uselib "RPCRT4.dll"
#func global Ndr64AsyncServerCallAll "Ndr64AsyncServerCallAll" var
; Ndr64AsyncServerCallAll pRpcMsg
; pRpcMsg : RPC_MESSAGE* in/out -> "var"
; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	rpcrt4 = windows.NewLazySystemDLL("RPCRT4.dll")
	procNdr64AsyncServerCallAll = rpcrt4.NewProc("Ndr64AsyncServerCallAll")
)

// pRpcMsg (RPC_MESSAGE* in/out)
r1, _, err := procNdr64AsyncServerCallAll.Call(
	uintptr(pRpcMsg),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // void
procedure Ndr64AsyncServerCallAll(
  pRpcMsg: Pointer   // RPC_MESSAGE* in/out
); stdcall;
  external 'RPCRT4.dll' name 'Ndr64AsyncServerCallAll';
result := DllCall("RPCRT4\Ndr64AsyncServerCallAll"
    , "Ptr", pRpcMsg   ; RPC_MESSAGE* in/out
    , "Int")   ; return: void
●Ndr64AsyncServerCallAll(pRpcMsg) = DLL("RPCRT4.dll", "int Ndr64AsyncServerCallAll(void*)")
# 呼び出し: Ndr64AsyncServerCallAll(pRpcMsg)
# pRpcMsg : RPC_MESSAGE* in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。