ホーム › NetworkManagement.Rras › RASPBDLGA
RASPBDLGA
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| dwSize | DWORD | 4 | +0 | +0 | この構造体のバイト単位のサイズ。 |
| hwndOwner | HWND | 8/4 | +8 | +4 | 電話帳ダイアログの親ウィンドウのハンドル。 |
| dwFlags | DWORD | 4 | +16 | +8 | ダイアログの動作を制御するRASPBDFLAG_*フラグ。 |
| xDlg | INT | 4 | +20 | +12 | ダイアログ表示位置のX座標(ピクセル)。 |
| yDlg | INT | 4 | +24 | +16 | ダイアログ表示位置のY座標(ピクセル)。 |
| dwCallbackId | UINT_PTR | 8/4 | +32 | +20 | コールバック関数に渡されるアプリ定義の値。 |
| pCallback | RASPBDLGFUNCA | 8/4 | +40 | +24 | ダイアログイベント通知用のコールバック関数ポインタ(ANSI版)。 |
| dwError | DWORD | 4 | +48 | +28 | ダイアログ処理で発生したエラーコード。0なら正常。 |
| reserved | UINT_PTR | 8/4 | +56 | +32 | 予約済み。0を設定する。 |
| reserved2 | UINT_PTR | 8/4 | +64 | +36 | 予約済み。0を設定する。 |
各言語での定義
#include <windows.h>
// RASPBDLGA (x64 72 / x86 40 バイト)
typedef struct RASPBDLGA {
DWORD dwSize;
HWND hwndOwner;
DWORD dwFlags;
INT xDlg;
INT yDlg;
UINT_PTR dwCallbackId;
RASPBDLGFUNCA pCallback;
DWORD dwError;
UINT_PTR reserved;
UINT_PTR reserved2;
} RASPBDLGA;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct RASPBDLGA
{
public uint dwSize;
public IntPtr hwndOwner;
public uint dwFlags;
public int xDlg;
public int yDlg;
public UIntPtr dwCallbackId;
public IntPtr pCallback;
public uint dwError;
public UIntPtr reserved;
public UIntPtr reserved2;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure RASPBDLGA
Public dwSize As UInteger
Public hwndOwner As IntPtr
Public dwFlags As UInteger
Public xDlg As Integer
Public yDlg As Integer
Public dwCallbackId As UIntPtr
Public pCallback As IntPtr
Public dwError As UInteger
Public reserved As UIntPtr
Public reserved2 As UIntPtr
End Structureimport ctypes
from ctypes import wintypes
class RASPBDLGA(ctypes.Structure):
_fields_ = [
("dwSize", wintypes.DWORD),
("hwndOwner", ctypes.c_void_p),
("dwFlags", wintypes.DWORD),
("xDlg", ctypes.c_int),
("yDlg", ctypes.c_int),
("dwCallbackId", ctypes.c_size_t),
("pCallback", ctypes.c_void_p),
("dwError", wintypes.DWORD),
("reserved", ctypes.c_size_t),
("reserved2", ctypes.c_size_t),
]#[repr(C)]
pub struct RASPBDLGA {
pub dwSize: u32,
pub hwndOwner: *mut core::ffi::c_void,
pub dwFlags: u32,
pub xDlg: i32,
pub yDlg: i32,
pub dwCallbackId: usize,
pub pCallback: *mut core::ffi::c_void,
pub dwError: u32,
pub reserved: usize,
pub reserved2: usize,
}import "golang.org/x/sys/windows"
type RASPBDLGA struct {
dwSize uint32
hwndOwner uintptr
dwFlags uint32
xDlg int32
yDlg int32
dwCallbackId uintptr
pCallback uintptr
dwError uint32
reserved uintptr
reserved2 uintptr
}type
RASPBDLGA = record
dwSize: DWORD;
hwndOwner: Pointer;
dwFlags: DWORD;
xDlg: Integer;
yDlg: Integer;
dwCallbackId: NativeUInt;
pCallback: Pointer;
dwError: DWORD;
reserved: NativeUInt;
reserved2: NativeUInt;
end;const RASPBDLGA = extern struct {
dwSize: u32,
hwndOwner: ?*anyopaque,
dwFlags: u32,
xDlg: i32,
yDlg: i32,
dwCallbackId: usize,
pCallback: ?*anyopaque,
dwError: u32,
reserved: usize,
reserved2: usize,
};type
RASPBDLGA {.bycopy.} = object
dwSize: uint32
hwndOwner: pointer
dwFlags: uint32
xDlg: int32
yDlg: int32
dwCallbackId: uint
pCallback: pointer
dwError: uint32
reserved: uint
reserved2: uintstruct RASPBDLGA
{
uint dwSize;
void* hwndOwner;
uint dwFlags;
int xDlg;
int yDlg;
size_t dwCallbackId;
void* pCallback;
uint dwError;
size_t reserved;
size_t reserved2;
}HSP用 定義
HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x86 レイアウト)
; RASPBDLGA サイズ: 40 バイト(x86)
dim st, 10 ; 4byte整数×10(構造体サイズ 40 / 4 切り上げ)
; dwSize : DWORD (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; hwndOwner : HWND (+4, 4byte) st.1 = 値 / 値 = st.1 (lpoke/lpeek も可)
; dwFlags : DWORD (+8, 4byte) st.2 = 値 / 値 = st.2 (lpoke/lpeek も可)
; xDlg : INT (+12, 4byte) st.3 = 値 / 値 = st.3 (lpoke/lpeek も可)
; yDlg : INT (+16, 4byte) st.4 = 値 / 値 = st.4 (lpoke/lpeek も可)
; dwCallbackId : UINT_PTR (+20, 4byte) st.5 = 値 / 値 = st.5 (lpoke/lpeek も可)
; pCallback : RASPBDLGFUNCA (+24, 4byte) st.6 = 値 / 値 = st.6 (lpoke/lpeek も可)
; dwError : DWORD (+28, 4byte) st.7 = 値 / 値 = st.7 (lpoke/lpeek も可)
; reserved : UINT_PTR (+32, 4byte) st.8 = 値 / 値 = st.8 (lpoke/lpeek も可)
; reserved2 : UINT_PTR (+36, 4byte) st.9 = 値 / 値 = st.9 (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; RASPBDLGA サイズ: 72 バイト(x64)
dim st, 18 ; 4byte整数×18(構造体サイズ 72 / 4 切り上げ)
; dwSize : DWORD (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; hwndOwner : HWND (+8, 8byte) qpoke st,8,値 / qpeek(st,8) ※IronHSPのみ。3.7/3.8は lpoke st,8,下位 : lpoke st,12,上位
; dwFlags : DWORD (+16, 4byte) st.4 = 値 / 値 = st.4 (lpoke/lpeek も可)
; xDlg : INT (+20, 4byte) st.5 = 値 / 値 = st.5 (lpoke/lpeek も可)
; yDlg : INT (+24, 4byte) st.6 = 値 / 値 = st.6 (lpoke/lpeek も可)
; dwCallbackId : UINT_PTR (+32, 8byte) qpoke st,32,値 / qpeek(st,32) ※IronHSPのみ。3.7/3.8は lpoke st,32,下位 : lpoke st,36,上位
; pCallback : RASPBDLGFUNCA (+40, 8byte) qpoke st,40,値 / qpeek(st,40) ※IronHSPのみ。3.7/3.8は lpoke st,40,下位 : lpoke st,44,上位
; dwError : DWORD (+48, 4byte) st.12 = 値 / 値 = st.12 (lpoke/lpeek も可)
; reserved : UINT_PTR (+56, 8byte) qpoke st,56,値 / qpeek(st,56) ※IronHSPのみ。3.7/3.8は lpoke st,56,下位 : lpoke st,60,上位
; reserved2 : UINT_PTR (+64, 8byte) qpoke st,64,値 / qpeek(st,64) ※IronHSPのみ。3.7/3.8は lpoke st,64,下位 : lpoke st,68,上位
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global RASPBDLGA
#field int dwSize
#field intptr hwndOwner
#field int dwFlags
#field int xDlg
#field int yDlg
#field intptr dwCallbackId
#field intptr pCallback
#field int dwError
#field intptr reserved
#field intptr reserved2
#endstruct
stdim st, RASPBDLGA ; NSTRUCT 変数を確保
st->dwSize = 100
mes "dwSize=" + st->dwSize