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

I_RpcServerInqAddressChangeFn

関数
登録済みのアドレス変更通知コールバック関数を取得する内部関数。
DLLRPCRT4.dll呼出規約winapi

シグネチャ

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

RPC_ADDRESS_CHANGE_FN* I_RpcServerInqAddressChangeFn(void);

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

各言語での呼び出し定義

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

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

I_RpcServerInqAddressChangeFn = ctypes.windll.rpcrt4.I_RpcServerInqAddressChangeFn
I_RpcServerInqAddressChangeFn.restype = ctypes.c_void_p
I_RpcServerInqAddressChangeFn.argtypes = []
require 'fiddle'
require 'fiddle/import'

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

var (
	rpcrt4 = windows.NewLazySystemDLL("RPCRT4.dll")
	procI_RpcServerInqAddressChangeFn = rpcrt4.NewProc("I_RpcServerInqAddressChangeFn")
)

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