ホーム › System.Threading › DeleteBoundaryDescriptor
DeleteBoundaryDescriptor
関数境界記述子を削除する。
シグネチャ
// KERNEL32.dll
#include <windows.h>
void DeleteBoundaryDescriptor(
HANDLE BoundaryDescriptor
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| BoundaryDescriptor | HANDLE | in |
戻り値の型: void
各言語での呼び出し定義
// KERNEL32.dll
#include <windows.h>
void DeleteBoundaryDescriptor(
HANDLE BoundaryDescriptor
);[DllImport("KERNEL32.dll", ExactSpelling = true)]
static extern void DeleteBoundaryDescriptor(
IntPtr BoundaryDescriptor // HANDLE
);<DllImport("KERNEL32.dll", ExactSpelling:=True)>
Public Shared Sub DeleteBoundaryDescriptor(
BoundaryDescriptor As IntPtr ' HANDLE
)
End Sub' BoundaryDescriptor : HANDLE
Declare PtrSafe Sub DeleteBoundaryDescriptor Lib "kernel32" ( _
ByVal BoundaryDescriptor As LongPtr)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
DeleteBoundaryDescriptor = ctypes.windll.kernel32.DeleteBoundaryDescriptor
DeleteBoundaryDescriptor.restype = None
DeleteBoundaryDescriptor.argtypes = [
wintypes.HANDLE, # BoundaryDescriptor : HANDLE
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('KERNEL32.dll')
DeleteBoundaryDescriptor = Fiddle::Function.new(
lib['DeleteBoundaryDescriptor'],
[
Fiddle::TYPE_VOIDP, # BoundaryDescriptor : HANDLE
],
Fiddle::TYPE_VOID)#[link(name = "kernel32")]
extern "system" {
fn DeleteBoundaryDescriptor(
BoundaryDescriptor: *mut core::ffi::c_void // HANDLE
);
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("KERNEL32.dll")]
public static extern void DeleteBoundaryDescriptor(IntPtr BoundaryDescriptor);
"@
$api = Add-Type -MemberDefinition $sig -Name 'KERNEL32_DeleteBoundaryDescriptor' -Namespace Win32 -PassThru
# $api::DeleteBoundaryDescriptor(BoundaryDescriptor)#uselib "KERNEL32.dll"
#func global DeleteBoundaryDescriptor "DeleteBoundaryDescriptor" sptr
; DeleteBoundaryDescriptor BoundaryDescriptor
; BoundaryDescriptor : HANDLE -> "sptr"#uselib "KERNEL32.dll"
#func global DeleteBoundaryDescriptor "DeleteBoundaryDescriptor" sptr
; DeleteBoundaryDescriptor BoundaryDescriptor
; BoundaryDescriptor : HANDLE -> "sptr"; void DeleteBoundaryDescriptor(HANDLE BoundaryDescriptor)
#uselib "KERNEL32.dll"
#func global DeleteBoundaryDescriptor "DeleteBoundaryDescriptor" intptr
; DeleteBoundaryDescriptor BoundaryDescriptor
; BoundaryDescriptor : HANDLE -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
kernel32 = windows.NewLazySystemDLL("KERNEL32.dll")
procDeleteBoundaryDescriptor = kernel32.NewProc("DeleteBoundaryDescriptor")
)
// BoundaryDescriptor (HANDLE)
r1, _, err := procDeleteBoundaryDescriptor.Call(
uintptr(BoundaryDescriptor),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // voidprocedure DeleteBoundaryDescriptor(
BoundaryDescriptor: THandle // HANDLE
); stdcall;
external 'KERNEL32.dll' name 'DeleteBoundaryDescriptor';result := DllCall("KERNEL32\DeleteBoundaryDescriptor"
, "Ptr", BoundaryDescriptor ; HANDLE
, "Int") ; return: void●DeleteBoundaryDescriptor(BoundaryDescriptor) = DLL("KERNEL32.dll", "int DeleteBoundaryDescriptor(void*)")
# 呼び出し: DeleteBoundaryDescriptor(BoundaryDescriptor)
# BoundaryDescriptor : HANDLE -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。