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