ホーム › UI.Controls › DSA_Destroy
DSA_Destroy
関数動的構造体配列を破棄する。
シグネチャ
// COMCTL32.dll
#include <windows.h>
BOOL DSA_Destroy(
HDSA hdsa // optional
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| hdsa | HDSA | inoptional |
戻り値の型: BOOL
各言語での呼び出し定義
// COMCTL32.dll
#include <windows.h>
BOOL DSA_Destroy(
HDSA hdsa // optional
);[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("COMCTL32.dll", ExactSpelling = true)]
static extern bool DSA_Destroy(
IntPtr hdsa // HDSA optional
);<DllImport("COMCTL32.dll", ExactSpelling:=True)>
Public Shared Function DSA_Destroy(
hdsa As IntPtr ' HDSA optional
) As Boolean
End Function' hdsa : HDSA optional
Declare PtrSafe Function DSA_Destroy Lib "comctl32" ( _
ByVal hdsa As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
DSA_Destroy = ctypes.windll.comctl32.DSA_Destroy
DSA_Destroy.restype = wintypes.BOOL
DSA_Destroy.argtypes = [
ctypes.c_ssize_t, # hdsa : HDSA optional
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('COMCTL32.dll')
DSA_Destroy = Fiddle::Function.new(
lib['DSA_Destroy'],
[
Fiddle::TYPE_INTPTR_T, # hdsa : HDSA optional
],
Fiddle::TYPE_INT)#[link(name = "comctl32")]
extern "system" {
fn DSA_Destroy(
hdsa: isize // HDSA optional
) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("COMCTL32.dll")]
public static extern bool DSA_Destroy(IntPtr hdsa);
"@
$api = Add-Type -MemberDefinition $sig -Name 'COMCTL32_DSA_Destroy' -Namespace Win32 -PassThru
# $api::DSA_Destroy(hdsa)#uselib "COMCTL32.dll"
#func global DSA_Destroy "DSA_Destroy" sptr
; DSA_Destroy hdsa ; 戻り値は stat
; hdsa : HDSA optional -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "COMCTL32.dll"
#cfunc global DSA_Destroy "DSA_Destroy" sptr
; res = DSA_Destroy(hdsa)
; hdsa : HDSA optional -> "sptr"; BOOL DSA_Destroy(HDSA hdsa)
#uselib "COMCTL32.dll"
#cfunc global DSA_Destroy "DSA_Destroy" intptr
; res = DSA_Destroy(hdsa)
; hdsa : HDSA optional -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
comctl32 = windows.NewLazySystemDLL("COMCTL32.dll")
procDSA_Destroy = comctl32.NewProc("DSA_Destroy")
)
// hdsa (HDSA optional)
r1, _, err := procDSA_Destroy.Call(
uintptr(hdsa),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // BOOLfunction DSA_Destroy(
hdsa: NativeInt // HDSA optional
): BOOL; stdcall;
external 'COMCTL32.dll' name 'DSA_Destroy';result := DllCall("COMCTL32\DSA_Destroy"
, "Ptr", hdsa ; HDSA optional
, "Int") ; return: BOOL●DSA_Destroy(hdsa) = DLL("COMCTL32.dll", "bool DSA_Destroy(int)")
# 呼び出し: DSA_Destroy(hdsa)
# hdsa : HDSA optional -> "int"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。