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