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