Win32 API 日本語リファレンス
ホームSystem.Threading › DeleteUmsCompletionList

DeleteUmsCompletionList

関数
UMS完了リストを削除し、リソースを解放する。
DLLKERNEL32.dll呼出規約winapiSetLastErrorあり対応OSWindows 7 以降

シグネチャ

// KERNEL32.dll
#include <windows.h>

BOOL DeleteUmsCompletionList(
    void* UmsCompletionList
);

パラメーター

名前方向
UmsCompletionListvoid*in

戻り値の型: BOOL

各言語での呼び出し定義

// KERNEL32.dll
#include <windows.h>

BOOL DeleteUmsCompletionList(
    void* UmsCompletionList
);
[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("KERNEL32.dll", SetLastError = true, ExactSpelling = true)]
static extern bool DeleteUmsCompletionList(
    IntPtr UmsCompletionList   // void*
);
<DllImport("KERNEL32.dll", SetLastError:=True, ExactSpelling:=True)>
Public Shared Function DeleteUmsCompletionList(
    UmsCompletionList As IntPtr   ' void*
) As Boolean
End Function
' UmsCompletionList : void*
Declare PtrSafe Function DeleteUmsCompletionList Lib "kernel32" ( _
    ByVal UmsCompletionList As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。
import ctypes
from ctypes import wintypes

DeleteUmsCompletionList = ctypes.windll.kernel32.DeleteUmsCompletionList
DeleteUmsCompletionList.restype = wintypes.BOOL
DeleteUmsCompletionList.argtypes = [
    ctypes.POINTER(None),  # UmsCompletionList : void*
]
# GetLastError: use ctypes.GetLastError() (or ctypes.WinDLL(use_last_error=True))
require 'fiddle'
require 'fiddle/import'

lib = Fiddle.dlopen('KERNEL32.dll')
DeleteUmsCompletionList = Fiddle::Function.new(
  lib['DeleteUmsCompletionList'],
  [
    Fiddle::TYPE_VOIDP,  # UmsCompletionList : void*
  ],
  Fiddle::TYPE_INT)
#[link(name = "kernel32")]
extern "system" {
    fn DeleteUmsCompletionList(
        UmsCompletionList: *mut ()  // void*
    ) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.
$sig = @"
[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("KERNEL32.dll", SetLastError = true)]
public static extern bool DeleteUmsCompletionList(IntPtr UmsCompletionList);
"@
$api = Add-Type -MemberDefinition $sig -Name 'KERNEL32_DeleteUmsCompletionList' -Namespace Win32 -PassThru
# $api::DeleteUmsCompletionList(UmsCompletionList)
#uselib "KERNEL32.dll"
#func global DeleteUmsCompletionList "DeleteUmsCompletionList" sptr
; DeleteUmsCompletionList UmsCompletionList   ; 戻り値は stat
; UmsCompletionList : void* -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。
#uselib "KERNEL32.dll"
#cfunc global DeleteUmsCompletionList "DeleteUmsCompletionList" sptr
; res = DeleteUmsCompletionList(UmsCompletionList)
; UmsCompletionList : void* -> "sptr"
; BOOL DeleteUmsCompletionList(void* UmsCompletionList)
#uselib "KERNEL32.dll"
#cfunc global DeleteUmsCompletionList "DeleteUmsCompletionList" intptr
; res = DeleteUmsCompletionList(UmsCompletionList)
; UmsCompletionList : void* -> "intptr"
import (
	"golang.org/x/sys/windows"
	"unsafe"
)

var (
	kernel32 = windows.NewLazySystemDLL("KERNEL32.dll")
	procDeleteUmsCompletionList = kernel32.NewProc("DeleteUmsCompletionList")
)

// UmsCompletionList (void*)
r1, _, err := procDeleteUmsCompletionList.Call(
	uintptr(UmsCompletionList),
)
_ = err  // syscall.Errno (valid when the call sets last-error)
_ = r1   // BOOL
function DeleteUmsCompletionList(
  UmsCompletionList: Pointer   // void*
): BOOL; stdcall;
  external 'KERNEL32.dll' name 'DeleteUmsCompletionList';
result := DllCall("KERNEL32\DeleteUmsCompletionList"
    , "Ptr", UmsCompletionList   ; void*
    , "Int")   ; return: BOOL
●DeleteUmsCompletionList(UmsCompletionList) = DLL("KERNEL32.dll", "bool DeleteUmsCompletionList(void*)")
# 呼び出し: DeleteUmsCompletionList(UmsCompletionList)
# UmsCompletionList : void* -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。