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

I_RpcServerDisableExceptionFilter

関数
RPCサーバーの例外フィルターを無効化する内部関数。
DLLRPCRT4.dll呼出規約winapi

シグネチャ

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

INT I_RpcServerDisableExceptionFilter(void);

パラメーターなし。戻り値: INT

各言語での呼び出し定義

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

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

I_RpcServerDisableExceptionFilter = ctypes.windll.rpcrt4.I_RpcServerDisableExceptionFilter
I_RpcServerDisableExceptionFilter.restype = ctypes.c_int
I_RpcServerDisableExceptionFilter.argtypes = []
require 'fiddle'
require 'fiddle/import'

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

var (
	rpcrt4 = windows.NewLazySystemDLL("RPCRT4.dll")
	procI_RpcServerDisableExceptionFilter = rpcrt4.NewProc("I_RpcServerDisableExceptionFilter")
)

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