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