ホーム › System.Rpc › RpcServerYield
RpcServerYield
関数サーバースレッドを譲り他の呼び出しを処理させる。
シグネチャ
// RPCRT4.dll
#include <windows.h>
void RpcServerYield(void);パラメーターなし。戻り値: void
各言語での呼び出し定義
// RPCRT4.dll
#include <windows.h>
void RpcServerYield(void);[DllImport("RPCRT4.dll", ExactSpelling = true)]
static extern void RpcServerYield();<DllImport("RPCRT4.dll", ExactSpelling:=True)>
Public Shared Sub RpcServerYield()
End SubDeclare PtrSafe Sub RpcServerYield Lib "rpcrt4" ()
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
RpcServerYield = ctypes.windll.rpcrt4.RpcServerYield
RpcServerYield.restype = None
RpcServerYield.argtypes = []require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('RPCRT4.dll')
RpcServerYield = Fiddle::Function.new(
lib['RpcServerYield'],
[],
Fiddle::TYPE_VOID)#[link(name = "rpcrt4")]
extern "system" {
fn RpcServerYield();
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("RPCRT4.dll")]
public static extern void RpcServerYield();
"@
$api = Add-Type -MemberDefinition $sig -Name 'RPCRT4_RpcServerYield' -Namespace Win32 -PassThru
# $api::RpcServerYield()#uselib "RPCRT4.dll"
#func global RpcServerYield "RpcServerYield"
; RpcServerYield#uselib "RPCRT4.dll"
#func global RpcServerYield "RpcServerYield"
; RpcServerYield; void RpcServerYield()
#uselib "RPCRT4.dll"
#func global RpcServerYield "RpcServerYield"
; RpcServerYieldimport (
"golang.org/x/sys/windows"
"unsafe"
)
var (
rpcrt4 = windows.NewLazySystemDLL("RPCRT4.dll")
procRpcServerYield = rpcrt4.NewProc("RpcServerYield")
)
r1, _, err := procRpcServerYield.Call()
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // voidprocedure RpcServerYield; stdcall;
external 'RPCRT4.dll' name 'RpcServerYield';result := DllCall("RPCRT4\RpcServerYield", "Int")●RpcServerYield() = DLL("RPCRT4.dll", "int RpcServerYield()")
# 呼び出し: RpcServerYield()
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。