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