Win32 API 日本語リファレンス
ホームSystem.Rpc › RpcMgmtEpEltInqDone

RpcMgmtEpEltInqDone

関数
エンドポイントマッパー照会を終了し照会コンテキストを解放する。
DLLRPCRT4.dll呼出規約winapi対応OSWindows 2000 以降

シグネチャ

// RPCRT4.dll
#include <windows.h>

RPC_STATUS RpcMgmtEpEltInqDone(
    void*** InquiryContext
);

パラメーター

名前方向
InquiryContextvoid***inout

戻り値の型: RPC_STATUS

各言語での呼び出し定義

// RPCRT4.dll
#include <windows.h>

RPC_STATUS RpcMgmtEpEltInqDone(
    void*** InquiryContext
);
[DllImport("RPCRT4.dll", ExactSpelling = true)]
static extern int RpcMgmtEpEltInqDone(
    IntPtr InquiryContext   // void*** in/out
);
<DllImport("RPCRT4.dll", ExactSpelling:=True)>
Public Shared Function RpcMgmtEpEltInqDone(
    InquiryContext As IntPtr   ' void*** in/out
) As Integer
End Function
' InquiryContext : void*** in/out
Declare PtrSafe Function RpcMgmtEpEltInqDone Lib "rpcrt4" ( _
    ByVal InquiryContext As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

RpcMgmtEpEltInqDone = ctypes.windll.rpcrt4.RpcMgmtEpEltInqDone
RpcMgmtEpEltInqDone.restype = ctypes.c_int
RpcMgmtEpEltInqDone.argtypes = [
    ctypes.c_void_p,  # InquiryContext : void*** in/out
]
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('RPCRT4.dll')
RpcMgmtEpEltInqDone = Fiddle::Function.new(
  lib['RpcMgmtEpEltInqDone'],
  [
    Fiddle::TYPE_VOIDP,  # InquiryContext : void*** in/out
  ],
  Fiddle::TYPE_INT)
#[link(name = "rpcrt4")]
extern "system" {
    fn RpcMgmtEpEltInqDone(
        InquiryContext: *mut *mut *mut ()  // void*** in/out
    ) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[DllImport("RPCRT4.dll")]
public static extern int RpcMgmtEpEltInqDone(IntPtr InquiryContext);
"@
$api = Add-Type -MemberDefinition $sig -Name 'RPCRT4_RpcMgmtEpEltInqDone' -Namespace Win32 -PassThru
# $api::RpcMgmtEpEltInqDone(InquiryContext)
#uselib "RPCRT4.dll"
#func global RpcMgmtEpEltInqDone "RpcMgmtEpEltInqDone" sptr
; RpcMgmtEpEltInqDone InquiryContext   ; 戻り値は stat
; InquiryContext : void*** in/out -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
#uselib "RPCRT4.dll"
#cfunc global RpcMgmtEpEltInqDone "RpcMgmtEpEltInqDone" sptr
; res = RpcMgmtEpEltInqDone(InquiryContext)
; InquiryContext : void*** in/out -> "sptr"
; RPC_STATUS RpcMgmtEpEltInqDone(void*** InquiryContext)
#uselib "RPCRT4.dll"
#cfunc global RpcMgmtEpEltInqDone "RpcMgmtEpEltInqDone" intptr
; res = RpcMgmtEpEltInqDone(InquiryContext)
; InquiryContext : void*** in/out -> "intptr"
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	rpcrt4 = windows.NewLazySystemDLL("RPCRT4.dll")
	procRpcMgmtEpEltInqDone = rpcrt4.NewProc("RpcMgmtEpEltInqDone")
)

// InquiryContext (void*** in/out)
r1, _, err := procRpcMgmtEpEltInqDone.Call(
	uintptr(InquiryContext),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // RPC_STATUS
function RpcMgmtEpEltInqDone(
  InquiryContext: Pointer   // void*** in/out
): Integer; stdcall;
  external 'RPCRT4.dll' name 'RpcMgmtEpEltInqDone';
result := DllCall("RPCRT4\RpcMgmtEpEltInqDone"
    , "Ptr", InquiryContext   ; void*** in/out
    , "Int")   ; return: RPC_STATUS
●RpcMgmtEpEltInqDone(InquiryContext) = DLL("RPCRT4.dll", "int RpcMgmtEpEltInqDone(void*)")
# 呼び出し: RpcMgmtEpEltInqDone(InquiryContext)
# InquiryContext : void*** in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。