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