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