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