ホーム › System.Ole › OLEUIOBJECTPROPSW
OLEUIOBJECTPROPSW
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| cbStruct | DWORD | 4 | +0 | +0 | この構造体のサイズをバイト単位で表す。 |
| dwFlags | OBJECT_PROPERTIES_FLAGS | 4 | +4 | +4 | プロパティシートの動作を制御するフラグ(OBJECT_PROPERTIES_FLAGS)である。 |
| lpPS | PROPSHEETHEADERW_V2* | 8/4 | +8 | +8 | プロパティシートを構成するPROPSHEETHEADERW_V2へのポインタである。 |
| dwObject | DWORD | 4 | +16 | +12 | 対象オブジェクトの識別子である。 |
| lpObjInfo | IOleUIObjInfoW* | 8/4 | +24 | +16 | オブジェクト情報を提供するIOleUIObjInfoW(ワイド)へのポインタである。 |
| dwLink | DWORD | 4 | +32 | +20 | 対象リンクの識別子である。 |
| lpLinkInfo | IOleUILinkInfoW* | 8/4 | +40 | +24 | リンク情報を提供するIOleUILinkInfoW(ワイド)へのポインタである。 |
| lpGP | OLEUIGNRLPROPSW* | 8/4 | +48 | +28 | 全般プロパティページ設定OLEUIGNRLPROPSWへのポインタである。NULL可。 |
| lpVP | OLEUIVIEWPROPSW* | 8/4 | +56 | +32 | 表示プロパティページ設定OLEUIVIEWPROPSWへのポインタである。NULL可。 |
| lpLP | OLEUILINKPROPSW* | 8/4 | +64 | +36 | リンクプロパティページ設定OLEUILINKPROPSWへのポインタである。NULL可。 |
各言語での定義
#include <windows.h>
// OLEUIOBJECTPROPSW (x64 72 / x86 40 バイト)
typedef struct OLEUIOBJECTPROPSW {
DWORD cbStruct;
OBJECT_PROPERTIES_FLAGS dwFlags;
PROPSHEETHEADERW_V2* lpPS;
DWORD dwObject;
IOleUIObjInfoW* lpObjInfo;
DWORD dwLink;
IOleUILinkInfoW* lpLinkInfo;
OLEUIGNRLPROPSW* lpGP;
OLEUIVIEWPROPSW* lpVP;
OLEUILINKPROPSW* lpLP;
} OLEUIOBJECTPROPSW;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct OLEUIOBJECTPROPSW
{
public uint cbStruct;
public uint dwFlags;
public IntPtr lpPS;
public uint dwObject;
public IntPtr lpObjInfo;
public uint dwLink;
public IntPtr lpLinkInfo;
public IntPtr lpGP;
public IntPtr lpVP;
public IntPtr lpLP;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure OLEUIOBJECTPROPSW
Public cbStruct As UInteger
Public dwFlags As UInteger
Public lpPS As IntPtr
Public dwObject As UInteger
Public lpObjInfo As IntPtr
Public dwLink As UInteger
Public lpLinkInfo As IntPtr
Public lpGP As IntPtr
Public lpVP As IntPtr
Public lpLP As IntPtr
End Structureimport ctypes
from ctypes import wintypes
class OLEUIOBJECTPROPSW(ctypes.Structure):
_fields_ = [
("cbStruct", wintypes.DWORD),
("dwFlags", wintypes.DWORD),
("lpPS", ctypes.c_void_p),
("dwObject", wintypes.DWORD),
("lpObjInfo", ctypes.c_void_p),
("dwLink", wintypes.DWORD),
("lpLinkInfo", ctypes.c_void_p),
("lpGP", ctypes.c_void_p),
("lpVP", ctypes.c_void_p),
("lpLP", ctypes.c_void_p),
]#[repr(C)]
pub struct OLEUIOBJECTPROPSW {
pub cbStruct: u32,
pub dwFlags: u32,
pub lpPS: *mut core::ffi::c_void,
pub dwObject: u32,
pub lpObjInfo: *mut core::ffi::c_void,
pub dwLink: u32,
pub lpLinkInfo: *mut core::ffi::c_void,
pub lpGP: *mut core::ffi::c_void,
pub lpVP: *mut core::ffi::c_void,
pub lpLP: *mut core::ffi::c_void,
}import "golang.org/x/sys/windows"
type OLEUIOBJECTPROPSW struct {
cbStruct uint32
dwFlags uint32
lpPS uintptr
dwObject uint32
lpObjInfo uintptr
dwLink uint32
lpLinkInfo uintptr
lpGP uintptr
lpVP uintptr
lpLP uintptr
}type
OLEUIOBJECTPROPSW = record
cbStruct: DWORD;
dwFlags: DWORD;
lpPS: Pointer;
dwObject: DWORD;
lpObjInfo: Pointer;
dwLink: DWORD;
lpLinkInfo: Pointer;
lpGP: Pointer;
lpVP: Pointer;
lpLP: Pointer;
end;const OLEUIOBJECTPROPSW = extern struct {
cbStruct: u32,
dwFlags: u32,
lpPS: ?*anyopaque,
dwObject: u32,
lpObjInfo: ?*anyopaque,
dwLink: u32,
lpLinkInfo: ?*anyopaque,
lpGP: ?*anyopaque,
lpVP: ?*anyopaque,
lpLP: ?*anyopaque,
};type
OLEUIOBJECTPROPSW {.bycopy.} = object
cbStruct: uint32
dwFlags: uint32
lpPS: pointer
dwObject: uint32
lpObjInfo: pointer
dwLink: uint32
lpLinkInfo: pointer
lpGP: pointer
lpVP: pointer
lpLP: pointerstruct OLEUIOBJECTPROPSW
{
uint cbStruct;
uint dwFlags;
void* lpPS;
uint dwObject;
void* lpObjInfo;
uint dwLink;
void* lpLinkInfo;
void* lpGP;
void* lpVP;
void* lpLP;
}HSP用 定義
HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x86 レイアウト)
; OLEUIOBJECTPROPSW サイズ: 40 バイト(x86)
dim st, 10 ; 4byte整数×10(構造体サイズ 40 / 4 切り上げ)
; cbStruct : DWORD (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; dwFlags : OBJECT_PROPERTIES_FLAGS (+4, 4byte) st.1 = 値 / 値 = st.1 (lpoke/lpeek も可)
; lpPS : PROPSHEETHEADERW_V2* (+8, 4byte) varptr(st)+8 を基点に操作(4byte:入れ子/配列)
; dwObject : DWORD (+12, 4byte) st.3 = 値 / 値 = st.3 (lpoke/lpeek も可)
; lpObjInfo : IOleUIObjInfoW* (+16, 4byte) st.4 = 値 / 値 = st.4 (lpoke/lpeek も可)
; dwLink : DWORD (+20, 4byte) st.5 = 値 / 値 = st.5 (lpoke/lpeek も可)
; lpLinkInfo : IOleUILinkInfoW* (+24, 4byte) st.6 = 値 / 値 = st.6 (lpoke/lpeek も可)
; lpGP : OLEUIGNRLPROPSW* (+28, 4byte) varptr(st)+28 を基点に操作(4byte:入れ子/配列)
; lpVP : OLEUIVIEWPROPSW* (+32, 4byte) varptr(st)+32 を基点に操作(4byte:入れ子/配列)
; lpLP : OLEUILINKPROPSW* (+36, 4byte) varptr(st)+36 を基点に操作(4byte:入れ子/配列)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; OLEUIOBJECTPROPSW サイズ: 72 バイト(x64)
dim st, 18 ; 4byte整数×18(構造体サイズ 72 / 4 切り上げ)
; cbStruct : DWORD (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; dwFlags : OBJECT_PROPERTIES_FLAGS (+4, 4byte) st.1 = 値 / 値 = st.1 (lpoke/lpeek も可)
; lpPS : PROPSHEETHEADERW_V2* (+8, 8byte) varptr(st)+8 を基点に操作(8byte:入れ子/配列)
; dwObject : DWORD (+16, 4byte) st.4 = 値 / 値 = st.4 (lpoke/lpeek も可)
; lpObjInfo : IOleUIObjInfoW* (+24, 8byte) qpoke st,24,値 / qpeek(st,24) ※IronHSPのみ。3.7/3.8は lpoke st,24,下位 : lpoke st,28,上位
; dwLink : DWORD (+32, 4byte) st.8 = 値 / 値 = st.8 (lpoke/lpeek も可)
; lpLinkInfo : IOleUILinkInfoW* (+40, 8byte) qpoke st,40,値 / qpeek(st,40) ※IronHSPのみ。3.7/3.8は lpoke st,40,下位 : lpoke st,44,上位
; lpGP : OLEUIGNRLPROPSW* (+48, 8byte) varptr(st)+48 を基点に操作(8byte:入れ子/配列)
; lpVP : OLEUIVIEWPROPSW* (+56, 8byte) varptr(st)+56 を基点に操作(8byte:入れ子/配列)
; lpLP : OLEUILINKPROPSW* (+64, 8byte) varptr(st)+64 を基点に操作(8byte:入れ子/配列)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global OLEUIOBJECTPROPSW
#field int cbStruct
#field int dwFlags
#field intptr lpPS
#field int dwObject
#field intptr lpObjInfo
#field int dwLink
#field intptr lpLinkInfo
#field intptr lpGP
#field intptr lpVP
#field intptr lpLP
#endstruct
stdim st, OLEUIOBJECTPROPSW ; NSTRUCT 変数を確保
st->cbStruct = 100
mes "cbStruct=" + st->cbStruct