ホーム › Devices.WebServicesOnDevices › WSDDetachLinkedMemory
WSDDetachLinkedMemory
関数連結メモリブロックを親から切り離して独立させる。
シグネチャ
// wsdapi.dll
#include <windows.h>
void WSDDetachLinkedMemory(
void* pVoid
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| pVoid | void* | inout |
戻り値の型: void
各言語での呼び出し定義
// wsdapi.dll
#include <windows.h>
void WSDDetachLinkedMemory(
void* pVoid
);[DllImport("wsdapi.dll", ExactSpelling = true)]
static extern void WSDDetachLinkedMemory(
IntPtr pVoid // void* in/out
);<DllImport("wsdapi.dll", ExactSpelling:=True)>
Public Shared Sub WSDDetachLinkedMemory(
pVoid As IntPtr ' void* in/out
)
End Sub' pVoid : void* in/out
Declare PtrSafe Sub WSDDetachLinkedMemory Lib "wsdapi" ( _
ByVal pVoid As LongPtr)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
WSDDetachLinkedMemory = ctypes.windll.wsdapi.WSDDetachLinkedMemory
WSDDetachLinkedMemory.restype = None
WSDDetachLinkedMemory.argtypes = [
ctypes.POINTER(None), # pVoid : void* in/out
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('wsdapi.dll')
WSDDetachLinkedMemory = Fiddle::Function.new(
lib['WSDDetachLinkedMemory'],
[
Fiddle::TYPE_VOIDP, # pVoid : void* in/out
],
Fiddle::TYPE_VOID)#[link(name = "wsdapi")]
extern "system" {
fn WSDDetachLinkedMemory(
pVoid: *mut () // void* in/out
);
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("wsdapi.dll")]
public static extern void WSDDetachLinkedMemory(IntPtr pVoid);
"@
$api = Add-Type -MemberDefinition $sig -Name 'wsdapi_WSDDetachLinkedMemory' -Namespace Win32 -PassThru
# $api::WSDDetachLinkedMemory(pVoid)#uselib "wsdapi.dll"
#func global WSDDetachLinkedMemory "WSDDetachLinkedMemory" sptr
; WSDDetachLinkedMemory pVoid
; pVoid : void* in/out -> "sptr"#uselib "wsdapi.dll"
#func global WSDDetachLinkedMemory "WSDDetachLinkedMemory" sptr
; WSDDetachLinkedMemory pVoid
; pVoid : void* in/out -> "sptr"; void WSDDetachLinkedMemory(void* pVoid)
#uselib "wsdapi.dll"
#func global WSDDetachLinkedMemory "WSDDetachLinkedMemory" intptr
; WSDDetachLinkedMemory pVoid
; pVoid : void* in/out -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
wsdapi = windows.NewLazySystemDLL("wsdapi.dll")
procWSDDetachLinkedMemory = wsdapi.NewProc("WSDDetachLinkedMemory")
)
// pVoid (void* in/out)
r1, _, err := procWSDDetachLinkedMemory.Call(
uintptr(pVoid),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // voidprocedure WSDDetachLinkedMemory(
pVoid: Pointer // void* in/out
); stdcall;
external 'wsdapi.dll' name 'WSDDetachLinkedMemory';result := DllCall("wsdapi\WSDDetachLinkedMemory"
, "Ptr", pVoid ; void* in/out
, "Int") ; return: void●WSDDetachLinkedMemory(pVoid) = DLL("wsdapi.dll", "int WSDDetachLinkedMemory(void*)")
# 呼び出し: WSDDetachLinkedMemory(pVoid)
# pVoid : void* in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。