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