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