FAX_COVERPAGE_INFOA
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| SizeOfStruct | DWORD | 4 | +0 | +0 | FAX_COVERPAGE_INFO 構造体のサイズをバイト単位で指定します。呼び出し元のアプリケーションは、このメンバーに sizeof(FAX_COVERPAGE_INFO) を設定しなければなりません。 |
| CoverPageName | LPSTR | 8/4 | +8 | +4 | 受信したファクス文書に関連付けるカバー ページ ファイル (.cov) の名前を表す、NULL で終わる定数文字列へのポインターです。この文字列には、共通カバー ページ ファイルのファイル名を指定するか、ローカルのカバー ページ ファイルへの UNC パスを指定できます。 |
| UseServerCoverPage | BOOL | 4 | +16 | +8 | ファクスのカバー ページ ファイルがローカル コンピューターに格納されているか、共通カバー ページの場所に格納されているかを示すブール変数を指定します。値が TRUE の場合、カバー ページ ファイルはファクス サーバー上の共通カバー ページの場所に存在します。 |
| RecName | LPSTR | 8/4 | +24 | +12 | ファクス送信の受信者の名前を指定する、NULL で終わる定数文字列へのポインターです。 |
| RecFaxNumber | LPSTR | 8/4 | +32 | +16 | ファクス送信の受信者のファクス番号を指定する、NULL で終わる定数文字列へのポインターです。 |
| RecCompany | LPSTR | 8/4 | +40 | +20 | ファクス送信の受信者の会社名を指定する、NULL で終わる定数文字列へのポインターです。 |
| RecStreetAddress | LPSTR | 8/4 | +48 | +24 | ファクス送信の受信者の住所 (番地) を指定する、NULL で終わる定数文字列へのポインターです。 |
| RecCity | LPSTR | 8/4 | +56 | +28 | ファクス送信の受信者の市区町村を表す、NULL で終わる定数文字列へのポインターです。 |
| RecState | LPSTR | 8/4 | +64 | +32 | ファクス送信の受信者の州 (都道府県) を表す、NULL で終わる定数文字列へのポインターです。 |
| RecZip | LPSTR | 8/4 | +72 | +36 | ファクス送信の受信者の郵便番号 (ZIP コード) を表す、NULL で終わる定数文字列へのポインターです。 |
| RecCountry | LPSTR | 8/4 | +80 | +40 | ファクス送信の受信者の国または地域を表す、NULL で終わる定数文字列へのポインターです。 |
| RecTitle | LPSTR | 8/4 | +88 | +44 | ファクス送信の受信者の肩書きを表す、NULL で終わる定数文字列へのポインターです。 |
| RecDepartment | LPSTR | 8/4 | +96 | +48 | ファクス送信の受信者の部署を表す、NULL で終わる定数文字列へのポインターです。 |
| RecOfficeLocation | LPSTR | 8/4 | +104 | +52 | ファクス送信の受信者の勤務地を表す、NULL で終わる定数文字列へのポインターです。 |
| RecHomePhone | LPSTR | 8/4 | +112 | +56 | ファクス送信の受信者の自宅の電話番号を表す、NULL で終わる定数文字列へのポインターです。 |
| RecOfficePhone | LPSTR | 8/4 | +120 | +60 | ファクス送信の受信者の勤務先の電話番号を表す、NULL で終わる定数文字列へのポインターです。 |
| SdrName | LPSTR | 8/4 | +128 | +64 | ファクス送信を開始した送信者の名前を表す、NULL で終わる定数文字列へのポインターです。 |
| SdrFaxNumber | LPSTR | 8/4 | +136 | +68 | ファクス送信を開始した送信者のファクス番号を表す、NULL で終わる定数文字列へのポインターです。 |
| SdrCompany | LPSTR | 8/4 | +144 | +72 | ファクス送信を開始した送信者の会社名を表す、NULL で終わる定数文字列へのポインターです。 |
| SdrAddress | LPSTR | 8/4 | +152 | +76 | ファクス送信を開始した送信者の住所を表す、NULL で終わる定数文字列へのポインターです。 |
| SdrTitle | LPSTR | 8/4 | +160 | +80 | ファクス送信を開始した送信者の肩書きを表す、NULL で終わる定数文字列へのポインターです。 |
| SdrDepartment | LPSTR | 8/4 | +168 | +84 | ファクス送信を開始した送信者の部署名を表す、NULL で終わる定数文字列へのポインターです。 |
| SdrOfficeLocation | LPSTR | 8/4 | +176 | +88 | ファクス送信を開始した送信者の勤務地を表す、NULL で終わる定数文字列へのポインターです。 |
| SdrHomePhone | LPSTR | 8/4 | +184 | +92 | ファクス送信を開始した送信者の自宅の電話番号を表す、NULL で終わる定数文字列へのポインターです。 |
| SdrOfficePhone | LPSTR | 8/4 | +192 | +96 | ファクス送信を開始した送信者の勤務先の電話番号を表す、NULL で終わる定数文字列へのポインターです。 |
| Note | LPSTR | 8/4 | +200 | +100 | ファクス送信に関する送信者からのメッセージやメモの本文を格納する、NULL で終わる定数文字列へのポインターです。このテキストはカバー ページに表示されます。 |
| Subject | LPSTR | 8/4 | +208 | +104 | ファクス送信の件名を表す、NULL で終わる定数文字列へのポインターです。 |
| TimeSent | SYSTEMTIME | 16 | +216 | +108 | SYSTEMTIME 構造体を指定します。ファクス サーバーは、ファクス送信を開始するときにこのメンバーを設定します。時刻はローカル システム時刻で表されます。 |
| PageCount | DWORD | 4 | +232 | +124 | ファクス送信の総ページ数を示す DWORD 変数を指定します。 |
公式ドキュメント
FAX_COVERPAGE_INFO 構造体には、ファクス送信のカバー ページに表示するデータが格納されます。SizeOfStruct メンバーと CoverPageName メンバーは必須で、その他のメンバーは省略可能です。
解説(Remarks)
ファクス クライアント アプリケーションは、FaxPrintCoverPage 関数の呼び出しで FAX_COVERPAGE_INFO 構造体を渡します。これにより、ユーザーはファクス送信の先頭に個人用のカバー ページを印刷できます。詳細については、Cover Pages および Transmitting Faxes を参照してください。
winfax.h ヘッダーは、UNICODE プリプロセッサ定数の定義に基づいて、この関数の ANSI 版と Unicode 版を自動的に選択するエイリアスとして FAX_COVERPAGE_INFO を定義します。エンコーディングに依存しないエイリアスを、エンコーディングに依存するコードと混在させて使用すると、不一致が生じてコンパイル エラーや実行時エラーの原因となることがあります。詳細については、Conventions for Function Prototypes を参照してください。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
各言語での定義
#include <windows.h>
// SYSTEMTIME (x64 16 / x86 16 バイト)
typedef struct SYSTEMTIME {
WORD wYear;
WORD wMonth;
WORD wDayOfWeek;
WORD wDay;
WORD wHour;
WORD wMinute;
WORD wSecond;
WORD wMilliseconds;
} SYSTEMTIME;
// FAX_COVERPAGE_INFOA (x64 240 / x86 128 バイト)
typedef struct FAX_COVERPAGE_INFOA {
DWORD SizeOfStruct;
LPSTR CoverPageName;
BOOL UseServerCoverPage;
LPSTR RecName;
LPSTR RecFaxNumber;
LPSTR RecCompany;
LPSTR RecStreetAddress;
LPSTR RecCity;
LPSTR RecState;
LPSTR RecZip;
LPSTR RecCountry;
LPSTR RecTitle;
LPSTR RecDepartment;
LPSTR RecOfficeLocation;
LPSTR RecHomePhone;
LPSTR RecOfficePhone;
LPSTR SdrName;
LPSTR SdrFaxNumber;
LPSTR SdrCompany;
LPSTR SdrAddress;
LPSTR SdrTitle;
LPSTR SdrDepartment;
LPSTR SdrOfficeLocation;
LPSTR SdrHomePhone;
LPSTR SdrOfficePhone;
LPSTR Note;
LPSTR Subject;
SYSTEMTIME TimeSent;
DWORD PageCount;
} FAX_COVERPAGE_INFOA;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct SYSTEMTIME
{
public ushort wYear;
public ushort wMonth;
public ushort wDayOfWeek;
public ushort wDay;
public ushort wHour;
public ushort wMinute;
public ushort wSecond;
public ushort wMilliseconds;
}
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct FAX_COVERPAGE_INFOA
{
public uint SizeOfStruct;
public IntPtr CoverPageName;
[MarshalAs(UnmanagedType.Bool)] public bool UseServerCoverPage;
public IntPtr RecName;
public IntPtr RecFaxNumber;
public IntPtr RecCompany;
public IntPtr RecStreetAddress;
public IntPtr RecCity;
public IntPtr RecState;
public IntPtr RecZip;
public IntPtr RecCountry;
public IntPtr RecTitle;
public IntPtr RecDepartment;
public IntPtr RecOfficeLocation;
public IntPtr RecHomePhone;
public IntPtr RecOfficePhone;
public IntPtr SdrName;
public IntPtr SdrFaxNumber;
public IntPtr SdrCompany;
public IntPtr SdrAddress;
public IntPtr SdrTitle;
public IntPtr SdrDepartment;
public IntPtr SdrOfficeLocation;
public IntPtr SdrHomePhone;
public IntPtr SdrOfficePhone;
public IntPtr Note;
public IntPtr Subject;
public SYSTEMTIME TimeSent;
public uint PageCount;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure SYSTEMTIME
Public wYear As UShort
Public wMonth As UShort
Public wDayOfWeek As UShort
Public wDay As UShort
Public wHour As UShort
Public wMinute As UShort
Public wSecond As UShort
Public wMilliseconds As UShort
End Structure
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure FAX_COVERPAGE_INFOA
Public SizeOfStruct As UInteger
Public CoverPageName As IntPtr
<MarshalAs(UnmanagedType.Bool)> Public UseServerCoverPage As Boolean
Public RecName As IntPtr
Public RecFaxNumber As IntPtr
Public RecCompany As IntPtr
Public RecStreetAddress As IntPtr
Public RecCity As IntPtr
Public RecState As IntPtr
Public RecZip As IntPtr
Public RecCountry As IntPtr
Public RecTitle As IntPtr
Public RecDepartment As IntPtr
Public RecOfficeLocation As IntPtr
Public RecHomePhone As IntPtr
Public RecOfficePhone As IntPtr
Public SdrName As IntPtr
Public SdrFaxNumber As IntPtr
Public SdrCompany As IntPtr
Public SdrAddress As IntPtr
Public SdrTitle As IntPtr
Public SdrDepartment As IntPtr
Public SdrOfficeLocation As IntPtr
Public SdrHomePhone As IntPtr
Public SdrOfficePhone As IntPtr
Public Note As IntPtr
Public Subject As IntPtr
Public TimeSent As SYSTEMTIME
Public PageCount As UInteger
End Structureimport ctypes
from ctypes import wintypes
class SYSTEMTIME(ctypes.Structure):
_fields_ = [
("wYear", ctypes.c_ushort),
("wMonth", ctypes.c_ushort),
("wDayOfWeek", ctypes.c_ushort),
("wDay", ctypes.c_ushort),
("wHour", ctypes.c_ushort),
("wMinute", ctypes.c_ushort),
("wSecond", ctypes.c_ushort),
("wMilliseconds", ctypes.c_ushort),
]
class FAX_COVERPAGE_INFOA(ctypes.Structure):
_fields_ = [
("SizeOfStruct", wintypes.DWORD),
("CoverPageName", ctypes.c_void_p),
("UseServerCoverPage", wintypes.BOOL),
("RecName", ctypes.c_void_p),
("RecFaxNumber", ctypes.c_void_p),
("RecCompany", ctypes.c_void_p),
("RecStreetAddress", ctypes.c_void_p),
("RecCity", ctypes.c_void_p),
("RecState", ctypes.c_void_p),
("RecZip", ctypes.c_void_p),
("RecCountry", ctypes.c_void_p),
("RecTitle", ctypes.c_void_p),
("RecDepartment", ctypes.c_void_p),
("RecOfficeLocation", ctypes.c_void_p),
("RecHomePhone", ctypes.c_void_p),
("RecOfficePhone", ctypes.c_void_p),
("SdrName", ctypes.c_void_p),
("SdrFaxNumber", ctypes.c_void_p),
("SdrCompany", ctypes.c_void_p),
("SdrAddress", ctypes.c_void_p),
("SdrTitle", ctypes.c_void_p),
("SdrDepartment", ctypes.c_void_p),
("SdrOfficeLocation", ctypes.c_void_p),
("SdrHomePhone", ctypes.c_void_p),
("SdrOfficePhone", ctypes.c_void_p),
("Note", ctypes.c_void_p),
("Subject", ctypes.c_void_p),
("TimeSent", SYSTEMTIME),
("PageCount", wintypes.DWORD),
]#[repr(C)]
pub struct SYSTEMTIME {
pub wYear: u16,
pub wMonth: u16,
pub wDayOfWeek: u16,
pub wDay: u16,
pub wHour: u16,
pub wMinute: u16,
pub wSecond: u16,
pub wMilliseconds: u16,
}
#[repr(C)]
pub struct FAX_COVERPAGE_INFOA {
pub SizeOfStruct: u32,
pub CoverPageName: *mut core::ffi::c_void,
pub UseServerCoverPage: i32,
pub RecName: *mut core::ffi::c_void,
pub RecFaxNumber: *mut core::ffi::c_void,
pub RecCompany: *mut core::ffi::c_void,
pub RecStreetAddress: *mut core::ffi::c_void,
pub RecCity: *mut core::ffi::c_void,
pub RecState: *mut core::ffi::c_void,
pub RecZip: *mut core::ffi::c_void,
pub RecCountry: *mut core::ffi::c_void,
pub RecTitle: *mut core::ffi::c_void,
pub RecDepartment: *mut core::ffi::c_void,
pub RecOfficeLocation: *mut core::ffi::c_void,
pub RecHomePhone: *mut core::ffi::c_void,
pub RecOfficePhone: *mut core::ffi::c_void,
pub SdrName: *mut core::ffi::c_void,
pub SdrFaxNumber: *mut core::ffi::c_void,
pub SdrCompany: *mut core::ffi::c_void,
pub SdrAddress: *mut core::ffi::c_void,
pub SdrTitle: *mut core::ffi::c_void,
pub SdrDepartment: *mut core::ffi::c_void,
pub SdrOfficeLocation: *mut core::ffi::c_void,
pub SdrHomePhone: *mut core::ffi::c_void,
pub SdrOfficePhone: *mut core::ffi::c_void,
pub Note: *mut core::ffi::c_void,
pub Subject: *mut core::ffi::c_void,
pub TimeSent: SYSTEMTIME,
pub PageCount: u32,
}import "golang.org/x/sys/windows"
type SYSTEMTIME struct {
wYear uint16
wMonth uint16
wDayOfWeek uint16
wDay uint16
wHour uint16
wMinute uint16
wSecond uint16
wMilliseconds uint16
}
type FAX_COVERPAGE_INFOA struct {
SizeOfStruct uint32
CoverPageName uintptr
UseServerCoverPage int32
RecName uintptr
RecFaxNumber uintptr
RecCompany uintptr
RecStreetAddress uintptr
RecCity uintptr
RecState uintptr
RecZip uintptr
RecCountry uintptr
RecTitle uintptr
RecDepartment uintptr
RecOfficeLocation uintptr
RecHomePhone uintptr
RecOfficePhone uintptr
SdrName uintptr
SdrFaxNumber uintptr
SdrCompany uintptr
SdrAddress uintptr
SdrTitle uintptr
SdrDepartment uintptr
SdrOfficeLocation uintptr
SdrHomePhone uintptr
SdrOfficePhone uintptr
Note uintptr
Subject uintptr
TimeSent SYSTEMTIME
PageCount uint32
}type
SYSTEMTIME = record
wYear: Word;
wMonth: Word;
wDayOfWeek: Word;
wDay: Word;
wHour: Word;
wMinute: Word;
wSecond: Word;
wMilliseconds: Word;
end;
FAX_COVERPAGE_INFOA = record
SizeOfStruct: DWORD;
CoverPageName: Pointer;
UseServerCoverPage: BOOL;
RecName: Pointer;
RecFaxNumber: Pointer;
RecCompany: Pointer;
RecStreetAddress: Pointer;
RecCity: Pointer;
RecState: Pointer;
RecZip: Pointer;
RecCountry: Pointer;
RecTitle: Pointer;
RecDepartment: Pointer;
RecOfficeLocation: Pointer;
RecHomePhone: Pointer;
RecOfficePhone: Pointer;
SdrName: Pointer;
SdrFaxNumber: Pointer;
SdrCompany: Pointer;
SdrAddress: Pointer;
SdrTitle: Pointer;
SdrDepartment: Pointer;
SdrOfficeLocation: Pointer;
SdrHomePhone: Pointer;
SdrOfficePhone: Pointer;
Note: Pointer;
Subject: Pointer;
TimeSent: SYSTEMTIME;
PageCount: DWORD;
end;const SYSTEMTIME = extern struct {
wYear: u16,
wMonth: u16,
wDayOfWeek: u16,
wDay: u16,
wHour: u16,
wMinute: u16,
wSecond: u16,
wMilliseconds: u16,
};
const FAX_COVERPAGE_INFOA = extern struct {
SizeOfStruct: u32,
CoverPageName: ?*anyopaque,
UseServerCoverPage: i32,
RecName: ?*anyopaque,
RecFaxNumber: ?*anyopaque,
RecCompany: ?*anyopaque,
RecStreetAddress: ?*anyopaque,
RecCity: ?*anyopaque,
RecState: ?*anyopaque,
RecZip: ?*anyopaque,
RecCountry: ?*anyopaque,
RecTitle: ?*anyopaque,
RecDepartment: ?*anyopaque,
RecOfficeLocation: ?*anyopaque,
RecHomePhone: ?*anyopaque,
RecOfficePhone: ?*anyopaque,
SdrName: ?*anyopaque,
SdrFaxNumber: ?*anyopaque,
SdrCompany: ?*anyopaque,
SdrAddress: ?*anyopaque,
SdrTitle: ?*anyopaque,
SdrDepartment: ?*anyopaque,
SdrOfficeLocation: ?*anyopaque,
SdrHomePhone: ?*anyopaque,
SdrOfficePhone: ?*anyopaque,
Note: ?*anyopaque,
Subject: ?*anyopaque,
TimeSent: SYSTEMTIME,
PageCount: u32,
};type
SYSTEMTIME {.bycopy.} = object
wYear: uint16
wMonth: uint16
wDayOfWeek: uint16
wDay: uint16
wHour: uint16
wMinute: uint16
wSecond: uint16
wMilliseconds: uint16
FAX_COVERPAGE_INFOA {.bycopy.} = object
SizeOfStruct: uint32
CoverPageName: pointer
UseServerCoverPage: int32
RecName: pointer
RecFaxNumber: pointer
RecCompany: pointer
RecStreetAddress: pointer
RecCity: pointer
RecState: pointer
RecZip: pointer
RecCountry: pointer
RecTitle: pointer
RecDepartment: pointer
RecOfficeLocation: pointer
RecHomePhone: pointer
RecOfficePhone: pointer
SdrName: pointer
SdrFaxNumber: pointer
SdrCompany: pointer
SdrAddress: pointer
SdrTitle: pointer
SdrDepartment: pointer
SdrOfficeLocation: pointer
SdrHomePhone: pointer
SdrOfficePhone: pointer
Note: pointer
Subject: pointer
TimeSent: SYSTEMTIME
PageCount: uint32struct SYSTEMTIME
{
ushort wYear;
ushort wMonth;
ushort wDayOfWeek;
ushort wDay;
ushort wHour;
ushort wMinute;
ushort wSecond;
ushort wMilliseconds;
}
struct FAX_COVERPAGE_INFOA
{
uint SizeOfStruct;
void* CoverPageName;
int UseServerCoverPage;
void* RecName;
void* RecFaxNumber;
void* RecCompany;
void* RecStreetAddress;
void* RecCity;
void* RecState;
void* RecZip;
void* RecCountry;
void* RecTitle;
void* RecDepartment;
void* RecOfficeLocation;
void* RecHomePhone;
void* RecOfficePhone;
void* SdrName;
void* SdrFaxNumber;
void* SdrCompany;
void* SdrAddress;
void* SdrTitle;
void* SdrDepartment;
void* SdrOfficeLocation;
void* SdrHomePhone;
void* SdrOfficePhone;
void* Note;
void* Subject;
SYSTEMTIME TimeSent;
uint PageCount;
}HSP用 定義
HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x86 レイアウト)
; FAX_COVERPAGE_INFOA サイズ: 128 バイト(x86)
dim st, 32 ; 4byte整数×32(構造体サイズ 128 / 4 切り上げ)
; SizeOfStruct : DWORD (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; CoverPageName : LPSTR (+4, 4byte) st.1 = 値 / 値 = st.1 (lpoke/lpeek も可)
; UseServerCoverPage : BOOL (+8, 4byte) st.2 = 値 / 値 = st.2 (lpoke/lpeek も可)
; RecName : LPSTR (+12, 4byte) st.3 = 値 / 値 = st.3 (lpoke/lpeek も可)
; RecFaxNumber : LPSTR (+16, 4byte) st.4 = 値 / 値 = st.4 (lpoke/lpeek も可)
; RecCompany : LPSTR (+20, 4byte) st.5 = 値 / 値 = st.5 (lpoke/lpeek も可)
; RecStreetAddress : LPSTR (+24, 4byte) st.6 = 値 / 値 = st.6 (lpoke/lpeek も可)
; RecCity : LPSTR (+28, 4byte) st.7 = 値 / 値 = st.7 (lpoke/lpeek も可)
; RecState : LPSTR (+32, 4byte) st.8 = 値 / 値 = st.8 (lpoke/lpeek も可)
; RecZip : LPSTR (+36, 4byte) st.9 = 値 / 値 = st.9 (lpoke/lpeek も可)
; RecCountry : LPSTR (+40, 4byte) st.10 = 値 / 値 = st.10 (lpoke/lpeek も可)
; RecTitle : LPSTR (+44, 4byte) st.11 = 値 / 値 = st.11 (lpoke/lpeek も可)
; RecDepartment : LPSTR (+48, 4byte) st.12 = 値 / 値 = st.12 (lpoke/lpeek も可)
; RecOfficeLocation : LPSTR (+52, 4byte) st.13 = 値 / 値 = st.13 (lpoke/lpeek も可)
; RecHomePhone : LPSTR (+56, 4byte) st.14 = 値 / 値 = st.14 (lpoke/lpeek も可)
; RecOfficePhone : LPSTR (+60, 4byte) st.15 = 値 / 値 = st.15 (lpoke/lpeek も可)
; SdrName : LPSTR (+64, 4byte) st.16 = 値 / 値 = st.16 (lpoke/lpeek も可)
; SdrFaxNumber : LPSTR (+68, 4byte) st.17 = 値 / 値 = st.17 (lpoke/lpeek も可)
; SdrCompany : LPSTR (+72, 4byte) st.18 = 値 / 値 = st.18 (lpoke/lpeek も可)
; SdrAddress : LPSTR (+76, 4byte) st.19 = 値 / 値 = st.19 (lpoke/lpeek も可)
; SdrTitle : LPSTR (+80, 4byte) st.20 = 値 / 値 = st.20 (lpoke/lpeek も可)
; SdrDepartment : LPSTR (+84, 4byte) st.21 = 値 / 値 = st.21 (lpoke/lpeek も可)
; SdrOfficeLocation : LPSTR (+88, 4byte) st.22 = 値 / 値 = st.22 (lpoke/lpeek も可)
; SdrHomePhone : LPSTR (+92, 4byte) st.23 = 値 / 値 = st.23 (lpoke/lpeek も可)
; SdrOfficePhone : LPSTR (+96, 4byte) st.24 = 値 / 値 = st.24 (lpoke/lpeek も可)
; Note : LPSTR (+100, 4byte) st.25 = 値 / 値 = st.25 (lpoke/lpeek も可)
; Subject : LPSTR (+104, 4byte) st.26 = 値 / 値 = st.26 (lpoke/lpeek も可)
; TimeSent : SYSTEMTIME (+108, 16byte) varptr(st)+108 を基点に操作(16byte:入れ子/配列)
; PageCount : DWORD (+124, 4byte) st.31 = 値 / 値 = st.31 (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; FAX_COVERPAGE_INFOA サイズ: 240 バイト(x64)
dim st, 60 ; 4byte整数×60(構造体サイズ 240 / 4 切り上げ)
; SizeOfStruct : DWORD (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; CoverPageName : LPSTR (+8, 8byte) qpoke st,8,値 / qpeek(st,8) ※IronHSPのみ。3.7/3.8は lpoke st,8,下位 : lpoke st,12,上位
; UseServerCoverPage : BOOL (+16, 4byte) st.4 = 値 / 値 = st.4 (lpoke/lpeek も可)
; RecName : LPSTR (+24, 8byte) qpoke st,24,値 / qpeek(st,24) ※IronHSPのみ。3.7/3.8は lpoke st,24,下位 : lpoke st,28,上位
; RecFaxNumber : LPSTR (+32, 8byte) qpoke st,32,値 / qpeek(st,32) ※IronHSPのみ。3.7/3.8は lpoke st,32,下位 : lpoke st,36,上位
; RecCompany : LPSTR (+40, 8byte) qpoke st,40,値 / qpeek(st,40) ※IronHSPのみ。3.7/3.8は lpoke st,40,下位 : lpoke st,44,上位
; RecStreetAddress : LPSTR (+48, 8byte) qpoke st,48,値 / qpeek(st,48) ※IronHSPのみ。3.7/3.8は lpoke st,48,下位 : lpoke st,52,上位
; RecCity : LPSTR (+56, 8byte) qpoke st,56,値 / qpeek(st,56) ※IronHSPのみ。3.7/3.8は lpoke st,56,下位 : lpoke st,60,上位
; RecState : LPSTR (+64, 8byte) qpoke st,64,値 / qpeek(st,64) ※IronHSPのみ。3.7/3.8は lpoke st,64,下位 : lpoke st,68,上位
; RecZip : LPSTR (+72, 8byte) qpoke st,72,値 / qpeek(st,72) ※IronHSPのみ。3.7/3.8は lpoke st,72,下位 : lpoke st,76,上位
; RecCountry : LPSTR (+80, 8byte) qpoke st,80,値 / qpeek(st,80) ※IronHSPのみ。3.7/3.8は lpoke st,80,下位 : lpoke st,84,上位
; RecTitle : LPSTR (+88, 8byte) qpoke st,88,値 / qpeek(st,88) ※IronHSPのみ。3.7/3.8は lpoke st,88,下位 : lpoke st,92,上位
; RecDepartment : LPSTR (+96, 8byte) qpoke st,96,値 / qpeek(st,96) ※IronHSPのみ。3.7/3.8は lpoke st,96,下位 : lpoke st,100,上位
; RecOfficeLocation : LPSTR (+104, 8byte) qpoke st,104,値 / qpeek(st,104) ※IronHSPのみ。3.7/3.8は lpoke st,104,下位 : lpoke st,108,上位
; RecHomePhone : LPSTR (+112, 8byte) qpoke st,112,値 / qpeek(st,112) ※IronHSPのみ。3.7/3.8は lpoke st,112,下位 : lpoke st,116,上位
; RecOfficePhone : LPSTR (+120, 8byte) qpoke st,120,値 / qpeek(st,120) ※IronHSPのみ。3.7/3.8は lpoke st,120,下位 : lpoke st,124,上位
; SdrName : LPSTR (+128, 8byte) qpoke st,128,値 / qpeek(st,128) ※IronHSPのみ。3.7/3.8は lpoke st,128,下位 : lpoke st,132,上位
; SdrFaxNumber : LPSTR (+136, 8byte) qpoke st,136,値 / qpeek(st,136) ※IronHSPのみ。3.7/3.8は lpoke st,136,下位 : lpoke st,140,上位
; SdrCompany : LPSTR (+144, 8byte) qpoke st,144,値 / qpeek(st,144) ※IronHSPのみ。3.7/3.8は lpoke st,144,下位 : lpoke st,148,上位
; SdrAddress : LPSTR (+152, 8byte) qpoke st,152,値 / qpeek(st,152) ※IronHSPのみ。3.7/3.8は lpoke st,152,下位 : lpoke st,156,上位
; SdrTitle : LPSTR (+160, 8byte) qpoke st,160,値 / qpeek(st,160) ※IronHSPのみ。3.7/3.8は lpoke st,160,下位 : lpoke st,164,上位
; SdrDepartment : LPSTR (+168, 8byte) qpoke st,168,値 / qpeek(st,168) ※IronHSPのみ。3.7/3.8は lpoke st,168,下位 : lpoke st,172,上位
; SdrOfficeLocation : LPSTR (+176, 8byte) qpoke st,176,値 / qpeek(st,176) ※IronHSPのみ。3.7/3.8は lpoke st,176,下位 : lpoke st,180,上位
; SdrHomePhone : LPSTR (+184, 8byte) qpoke st,184,値 / qpeek(st,184) ※IronHSPのみ。3.7/3.8は lpoke st,184,下位 : lpoke st,188,上位
; SdrOfficePhone : LPSTR (+192, 8byte) qpoke st,192,値 / qpeek(st,192) ※IronHSPのみ。3.7/3.8は lpoke st,192,下位 : lpoke st,196,上位
; Note : LPSTR (+200, 8byte) qpoke st,200,値 / qpeek(st,200) ※IronHSPのみ。3.7/3.8は lpoke st,200,下位 : lpoke st,204,上位
; Subject : LPSTR (+208, 8byte) qpoke st,208,値 / qpeek(st,208) ※IronHSPのみ。3.7/3.8は lpoke st,208,下位 : lpoke st,212,上位
; TimeSent : SYSTEMTIME (+216, 16byte) varptr(st)+216 を基点に操作(16byte:入れ子/配列)
; PageCount : DWORD (+232, 4byte) st.58 = 値 / 値 = st.58 (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
; ※GUID・入れ子構造体はデフォルト型でないため、依存する #defstruct を先に定義(下記に同梱)。
#defstruct global SYSTEMTIME
#field short wYear
#field short wMonth
#field short wDayOfWeek
#field short wDay
#field short wHour
#field short wMinute
#field short wSecond
#field short wMilliseconds
#endstruct
#defstruct global FAX_COVERPAGE_INFOA
#field int SizeOfStruct
#field intptr CoverPageName
#field bool UseServerCoverPage
#field intptr RecName
#field intptr RecFaxNumber
#field intptr RecCompany
#field intptr RecStreetAddress
#field intptr RecCity
#field intptr RecState
#field intptr RecZip
#field intptr RecCountry
#field intptr RecTitle
#field intptr RecDepartment
#field intptr RecOfficeLocation
#field intptr RecHomePhone
#field intptr RecOfficePhone
#field intptr SdrName
#field intptr SdrFaxNumber
#field intptr SdrCompany
#field intptr SdrAddress
#field intptr SdrTitle
#field intptr SdrDepartment
#field intptr SdrOfficeLocation
#field intptr SdrHomePhone
#field intptr SdrOfficePhone
#field intptr Note
#field intptr Subject
#field SYSTEMTIME TimeSent
#field int PageCount
#endstruct
stdim st, FAX_COVERPAGE_INFOA ; NSTRUCT 変数を確保
st->SizeOfStruct = 100
mes "SizeOfStruct=" + st->SizeOfStruct