ホーム › UI.Controls › CreatePropertySheetPageW
CreatePropertySheetPageW
関数プロパティシートページを作成する(Unicode版)。
シグネチャ
// COMCTL32.dll (Unicode / -W)
#include <windows.h>
HPROPSHEETPAGE CreatePropertySheetPageW(
PROPSHEETPAGEW* constPropSheetPagePointer
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| constPropSheetPagePointer | PROPSHEETPAGEW* | inout |
戻り値の型: HPROPSHEETPAGE
各言語での呼び出し定義
// COMCTL32.dll (Unicode / -W)
#include <windows.h>
HPROPSHEETPAGE CreatePropertySheetPageW(
PROPSHEETPAGEW* constPropSheetPagePointer
);[DllImport("COMCTL32.dll", CharSet = CharSet.Unicode, ExactSpelling = true)]
static extern IntPtr CreatePropertySheetPageW(
IntPtr constPropSheetPagePointer // PROPSHEETPAGEW* in/out
);<DllImport("COMCTL32.dll", CharSet:=CharSet.Unicode, ExactSpelling:=True)>
Public Shared Function CreatePropertySheetPageW(
constPropSheetPagePointer As IntPtr ' PROPSHEETPAGEW* in/out
) As IntPtr
End Function' constPropSheetPagePointer : PROPSHEETPAGEW* in/out
Declare PtrSafe Function CreatePropertySheetPageW Lib "comctl32" ( _
ByVal constPropSheetPagePointer As LongPtr) As LongPtr
' Unicode(W): 文字列は ByVal As LongPtr とし StrPtr(unicodeStr) を渡す
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
CreatePropertySheetPageW = ctypes.windll.comctl32.CreatePropertySheetPageW
CreatePropertySheetPageW.restype = ctypes.c_void_p
CreatePropertySheetPageW.argtypes = [
ctypes.c_void_p, # constPropSheetPagePointer : PROPSHEETPAGEW* in/out
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('COMCTL32.dll')
CreatePropertySheetPageW = Fiddle::Function.new(
lib['CreatePropertySheetPageW'],
[
Fiddle::TYPE_VOIDP, # constPropSheetPagePointer : PROPSHEETPAGEW* in/out
],
Fiddle::TYPE_VOIDP)
# Wide strings: pass str.encode("UTF-16LE") + "\x00\x00"#[link(name = "comctl32")]
extern "system" {
fn CreatePropertySheetPageW(
constPropSheetPagePointer: *mut PROPSHEETPAGEW // PROPSHEETPAGEW* in/out
) -> *mut core::ffi::c_void;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("COMCTL32.dll", CharSet = CharSet.Unicode)]
public static extern IntPtr CreatePropertySheetPageW(IntPtr constPropSheetPagePointer);
"@
$api = Add-Type -MemberDefinition $sig -Name 'COMCTL32_CreatePropertySheetPageW' -Namespace Win32 -PassThru
# $api::CreatePropertySheetPageW(constPropSheetPagePointer)#uselib "COMCTL32.dll"
#func global CreatePropertySheetPageW "CreatePropertySheetPageW" wptr
; CreatePropertySheetPageW varptr(constPropSheetPagePointer) ; 戻り値は stat
; constPropSheetPagePointer : PROPSHEETPAGEW* in/out -> "wptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。出力引数:
#uselib "COMCTL32.dll" #cfunc global CreatePropertySheetPageW "CreatePropertySheetPageW" var ; res = CreatePropertySheetPageW(constPropSheetPagePointer) ; constPropSheetPagePointer : PROPSHEETPAGEW* in/out -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。#uselib "COMCTL32.dll" #cfunc global CreatePropertySheetPageW "CreatePropertySheetPageW" sptr ; res = CreatePropertySheetPageW(varptr(constPropSheetPagePointer)) ; constPropSheetPagePointer : PROPSHEETPAGEW* in/out -> "sptr" ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
出力引数:
; HPROPSHEETPAGE CreatePropertySheetPageW(PROPSHEETPAGEW* constPropSheetPagePointer) #uselib "COMCTL32.dll" #cfunc global CreatePropertySheetPageW "CreatePropertySheetPageW" var ; res = CreatePropertySheetPageW(constPropSheetPagePointer) ; constPropSheetPagePointer : PROPSHEETPAGEW* in/out -> "var" ; ※出力/バッファ引数は var 方式(変数を直接渡す)。varptr 方式にも切替可。; HPROPSHEETPAGE CreatePropertySheetPageW(PROPSHEETPAGEW* constPropSheetPagePointer) #uselib "COMCTL32.dll" #cfunc global CreatePropertySheetPageW "CreatePropertySheetPageW" intptr ; res = CreatePropertySheetPageW(varptr(constPropSheetPagePointer)) ; constPropSheetPagePointer : PROPSHEETPAGEW* in/out -> "intptr" ; ※出力/バッファ引数はポインタ方式(token=intptr / 呼び出しは varptr(変数))。
import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
comctl32 = windows.NewLazySystemDLL("COMCTL32.dll")
procCreatePropertySheetPageW = comctl32.NewProc("CreatePropertySheetPageW")
)
// constPropSheetPagePointer (PROPSHEETPAGEW* in/out)
r1, _, err := procCreatePropertySheetPageW.Call(
uintptr(constPropSheetPagePointer),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // HPROPSHEETPAGEfunction CreatePropertySheetPageW(
constPropSheetPagePointer: Pointer // PROPSHEETPAGEW* in/out
): THandle; stdcall;
external 'COMCTL32.dll' name 'CreatePropertySheetPageW';result := DllCall("COMCTL32\CreatePropertySheetPageW"
, "Ptr", constPropSheetPagePointer ; PROPSHEETPAGEW* in/out
, "Ptr") ; return: HPROPSHEETPAGE●CreatePropertySheetPageW(constPropSheetPagePointer) = DLL("COMCTL32.dll", "void* CreatePropertySheetPageW(void*)")
# 呼び出し: CreatePropertySheetPageW(constPropSheetPagePointer)
# constPropSheetPagePointer : PROPSHEETPAGEW* in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。
# ※-W(Unicode)関数。なでしこ1はANSIのため -A 版の利用を推奨。