Win32 API 日本語リファレンス
ホームDevices.Fax › FAX_COVERPAGE_INFOW

FAX_COVERPAGE_INFOW

構造体
サイズx64: 240 バイト / x86: 128 バイト

サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。

フィールド

フィールドサイズx64x86説明
SizeOfStructDWORD4+0+0FAX_COVERPAGE_INFO 構造体のサイズをバイト単位で指定します。呼び出し元のアプリケーションは、このメンバーに sizeof(FAX_COVERPAGE_INFO) を設定する必要があります。
CoverPageNameLPWSTR8/4+8+4受信した FAX ドキュメントに関連付けるカバーページ ファイル (.cov) の名前である、定数の null 終端文字列へのポインターです。この文字列には、共通カバーページ ファイルのファイル名、またはローカルのカバーページ ファイルへの UNC パスを指定できます。
UseServerCoverPageBOOL4+16+8FAX カバーページ ファイルがローカル コンピューターに格納されているか、共通カバーページの場所に格納されているかを示すブール変数を指定します。値が TRUE の場合、カバーページ ファイルが FAX サーバー上の共通カバーページの場所にあることを示します。
RecNameLPWSTR8/4+24+12FAX 送信の受信者の名前を指定する、定数の null 終端文字列へのポインターです。
RecFaxNumberLPWSTR8/4+32+16FAX 送信の受信者の FAX 番号を指定する、定数の null 終端文字列へのポインターです。
RecCompanyLPWSTR8/4+40+20FAX 送信の受信者の会社名を指定する、定数の null 終端文字列へのポインターです。
RecStreetAddressLPWSTR8/4+48+24FAX 送信の受信者の番地を指定する、定数の null 終端文字列へのポインターです。
RecCityLPWSTR8/4+56+28FAX 送信の受信者の市区町村である、定数の null 終端文字列へのポインターです。
RecStateLPWSTR8/4+64+32FAX 送信の受信者の州・都道府県である、定数の null 終端文字列へのポインターです。
RecZipLPWSTR8/4+72+36FAX 送信の受信者の郵便番号 (ZIP コード) である、定数の null 終端文字列へのポインターです。
RecCountryLPWSTR8/4+80+40FAX 送信の受信者の国または地域である、定数の null 終端文字列へのポインターです。
RecTitleLPWSTR8/4+88+44FAX 送信の受信者の役職である、定数の null 終端文字列へのポインターです。
RecDepartmentLPWSTR8/4+96+48FAX 送信の受信者の部署である、定数の null 終端文字列へのポインターです。
RecOfficeLocationLPWSTR8/4+104+52FAX 送信の受信者のオフィスの所在地である、定数の null 終端文字列へのポインターです。
RecHomePhoneLPWSTR8/4+112+56FAX 送信の受信者の自宅の電話番号である、定数の null 終端文字列へのポインターです。
RecOfficePhoneLPWSTR8/4+120+60FAX 送信の受信者のオフィスの電話番号である、定数の null 終端文字列へのポインターです。
SdrNameLPWSTR8/4+128+64FAX 送信を開始した送信者の名前である、定数の null 終端文字列へのポインターです。
SdrFaxNumberLPWSTR8/4+136+68FAX 送信を開始した送信者の FAX 番号である、定数の null 終端文字列へのポインターです。
SdrCompanyLPWSTR8/4+144+72FAX 送信を開始した送信者の会社名である、定数の null 終端文字列へのポインターです。
SdrAddressLPWSTR8/4+152+76FAX 送信を開始した送信者の住所である、定数の null 終端文字列へのポインターです。
SdrTitleLPWSTR8/4+160+80FAX 送信を開始した送信者の役職である、定数の null 終端文字列へのポインターです。
SdrDepartmentLPWSTR8/4+168+84FAX 送信を開始した送信者の部署名である、定数の null 終端文字列へのポインターです。
SdrOfficeLocationLPWSTR8/4+176+88FAX 送信を開始した送信者のオフィスの所在地である、定数の null 終端文字列へのポインターです。
SdrHomePhoneLPWSTR8/4+184+92FAX 送信を開始した送信者の自宅の電話番号である、定数の null 終端文字列へのポインターです。
SdrOfficePhoneLPWSTR8/4+192+96FAX 送信を開始した送信者のオフィスの電話番号である、定数の null 終端文字列へのポインターです。
NoteLPWSTR8/4+200+100FAX 送信に関する送信者からのメッセージまたはメモの本文を含む、定数の null 終端文字列へのポインターです。このテキストはカバーページに表示されます。
SubjectLPWSTR8/4+208+104FAX 送信の件名である、定数の null 終端文字列へのポインターです。
TimeSentSYSTEMTIME16+216+108SYSTEMTIME 構造体を指定します。FAX サーバーは、FAX 送信を開始するときにこのメンバーを設定します。時刻はローカル システム時刻で表されます。
PageCountDWORD4+232+124FAX 送信の総ページ数を示す DWORD 変数を指定します。

公式ドキュメント

FAX_COVERPAGE_INFO 構造体には、FAX 送信のカバーページに表示するデータが格納されます。SizeOfStruct メンバーと CoverPageName メンバーは必須で、その他のメンバーは省略可能です。

解説(Remarks)

FAX クライアント アプリケーションは、FaxPrintCoverPage 関数の呼び出しで FAX_COVERPAGE_INFO 構造体を渡します。これにより、ユーザーは FAX 送信の先頭に個人用のカバーページを印刷できます。詳細については、Cover Pages および Transmitting Faxes を参照してください。

メモ

winfax.h ヘッダーは、UNICODE プリプロセッサ定数の定義に基づいて、この関数の ANSI 版または Unicode 版を自動的に選択するエイリアスとして FAX_COVERPAGE_INFO を定義します。エンコードに依存しないエイリアスと、エンコードに依存するコードを混在させて使用すると、不一致が生じ、コンパイル エラーまたは実行時エラーの原因となる可能性があります。詳細については、Conventions for Function Prototypes を参照してください。

出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
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_INFOW  (x64 240 / x86 128 バイト)
typedef struct FAX_COVERPAGE_INFOW {
    DWORD SizeOfStruct;
    LPWSTR CoverPageName;
    BOOL UseServerCoverPage;
    LPWSTR RecName;
    LPWSTR RecFaxNumber;
    LPWSTR RecCompany;
    LPWSTR RecStreetAddress;
    LPWSTR RecCity;
    LPWSTR RecState;
    LPWSTR RecZip;
    LPWSTR RecCountry;
    LPWSTR RecTitle;
    LPWSTR RecDepartment;
    LPWSTR RecOfficeLocation;
    LPWSTR RecHomePhone;
    LPWSTR RecOfficePhone;
    LPWSTR SdrName;
    LPWSTR SdrFaxNumber;
    LPWSTR SdrCompany;
    LPWSTR SdrAddress;
    LPWSTR SdrTitle;
    LPWSTR SdrDepartment;
    LPWSTR SdrOfficeLocation;
    LPWSTR SdrHomePhone;
    LPWSTR SdrOfficePhone;
    LPWSTR Note;
    LPWSTR Subject;
    SYSTEMTIME TimeSent;
    DWORD PageCount;
} FAX_COVERPAGE_INFOW;
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_INFOW
{
    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_INFOW
    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 Structure
import 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_INFOW(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_INFOW {
    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_INFOW 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_INFOW = 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_INFOW = 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_INFOW {.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: uint32
struct SYSTEMTIME
{
    ushort wYear;
    ushort wMonth;
    ushort wDayOfWeek;
    ushort wDay;
    ushort wHour;
    ushort wMinute;
    ushort wSecond;
    ushort wMilliseconds;
}

struct FAX_COVERPAGE_INFOW
{
    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_INFOW サイズ: 128 バイト(x86)
dim st, 32    ; 4byte整数×32(構造体サイズ 128 / 4 切り上げ)
; SizeOfStruct : DWORD (+0, 4byte)  st.0 = 値  /  値 = st.0   (lpoke/lpeek も可)
; CoverPageName : LPWSTR (+4, 4byte)  st.1 = 値  /  値 = st.1   (lpoke/lpeek も可)
; UseServerCoverPage : BOOL (+8, 4byte)  st.2 = 値  /  値 = st.2   (lpoke/lpeek も可)
; RecName : LPWSTR (+12, 4byte)  st.3 = 値  /  値 = st.3   (lpoke/lpeek も可)
; RecFaxNumber : LPWSTR (+16, 4byte)  st.4 = 値  /  値 = st.4   (lpoke/lpeek も可)
; RecCompany : LPWSTR (+20, 4byte)  st.5 = 値  /  値 = st.5   (lpoke/lpeek も可)
; RecStreetAddress : LPWSTR (+24, 4byte)  st.6 = 値  /  値 = st.6   (lpoke/lpeek も可)
; RecCity : LPWSTR (+28, 4byte)  st.7 = 値  /  値 = st.7   (lpoke/lpeek も可)
; RecState : LPWSTR (+32, 4byte)  st.8 = 値  /  値 = st.8   (lpoke/lpeek も可)
; RecZip : LPWSTR (+36, 4byte)  st.9 = 値  /  値 = st.9   (lpoke/lpeek も可)
; RecCountry : LPWSTR (+40, 4byte)  st.10 = 値  /  値 = st.10   (lpoke/lpeek も可)
; RecTitle : LPWSTR (+44, 4byte)  st.11 = 値  /  値 = st.11   (lpoke/lpeek も可)
; RecDepartment : LPWSTR (+48, 4byte)  st.12 = 値  /  値 = st.12   (lpoke/lpeek も可)
; RecOfficeLocation : LPWSTR (+52, 4byte)  st.13 = 値  /  値 = st.13   (lpoke/lpeek も可)
; RecHomePhone : LPWSTR (+56, 4byte)  st.14 = 値  /  値 = st.14   (lpoke/lpeek も可)
; RecOfficePhone : LPWSTR (+60, 4byte)  st.15 = 値  /  値 = st.15   (lpoke/lpeek も可)
; SdrName : LPWSTR (+64, 4byte)  st.16 = 値  /  値 = st.16   (lpoke/lpeek も可)
; SdrFaxNumber : LPWSTR (+68, 4byte)  st.17 = 値  /  値 = st.17   (lpoke/lpeek も可)
; SdrCompany : LPWSTR (+72, 4byte)  st.18 = 値  /  値 = st.18   (lpoke/lpeek も可)
; SdrAddress : LPWSTR (+76, 4byte)  st.19 = 値  /  値 = st.19   (lpoke/lpeek も可)
; SdrTitle : LPWSTR (+80, 4byte)  st.20 = 値  /  値 = st.20   (lpoke/lpeek も可)
; SdrDepartment : LPWSTR (+84, 4byte)  st.21 = 値  /  値 = st.21   (lpoke/lpeek も可)
; SdrOfficeLocation : LPWSTR (+88, 4byte)  st.22 = 値  /  値 = st.22   (lpoke/lpeek も可)
; SdrHomePhone : LPWSTR (+92, 4byte)  st.23 = 値  /  値 = st.23   (lpoke/lpeek も可)
; SdrOfficePhone : LPWSTR (+96, 4byte)  st.24 = 値  /  値 = st.24   (lpoke/lpeek も可)
; Note : LPWSTR (+100, 4byte)  st.25 = 値  /  値 = st.25   (lpoke/lpeek も可)
; Subject : LPWSTR (+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_INFOW サイズ: 240 バイト(x64)
dim st, 60    ; 4byte整数×60(構造体サイズ 240 / 4 切り上げ)
; SizeOfStruct : DWORD (+0, 4byte)  st.0 = 値  /  値 = st.0   (lpoke/lpeek も可)
; CoverPageName : LPWSTR (+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 : LPWSTR (+24, 8byte)  qpoke st,24,値 / qpeek(st,24)  ※IronHSPのみ。3.7/3.8は lpoke st,24,下位 : lpoke st,28,上位
; RecFaxNumber : LPWSTR (+32, 8byte)  qpoke st,32,値 / qpeek(st,32)  ※IronHSPのみ。3.7/3.8は lpoke st,32,下位 : lpoke st,36,上位
; RecCompany : LPWSTR (+40, 8byte)  qpoke st,40,値 / qpeek(st,40)  ※IronHSPのみ。3.7/3.8は lpoke st,40,下位 : lpoke st,44,上位
; RecStreetAddress : LPWSTR (+48, 8byte)  qpoke st,48,値 / qpeek(st,48)  ※IronHSPのみ。3.7/3.8は lpoke st,48,下位 : lpoke st,52,上位
; RecCity : LPWSTR (+56, 8byte)  qpoke st,56,値 / qpeek(st,56)  ※IronHSPのみ。3.7/3.8は lpoke st,56,下位 : lpoke st,60,上位
; RecState : LPWSTR (+64, 8byte)  qpoke st,64,値 / qpeek(st,64)  ※IronHSPのみ。3.7/3.8は lpoke st,64,下位 : lpoke st,68,上位
; RecZip : LPWSTR (+72, 8byte)  qpoke st,72,値 / qpeek(st,72)  ※IronHSPのみ。3.7/3.8は lpoke st,72,下位 : lpoke st,76,上位
; RecCountry : LPWSTR (+80, 8byte)  qpoke st,80,値 / qpeek(st,80)  ※IronHSPのみ。3.7/3.8は lpoke st,80,下位 : lpoke st,84,上位
; RecTitle : LPWSTR (+88, 8byte)  qpoke st,88,値 / qpeek(st,88)  ※IronHSPのみ。3.7/3.8は lpoke st,88,下位 : lpoke st,92,上位
; RecDepartment : LPWSTR (+96, 8byte)  qpoke st,96,値 / qpeek(st,96)  ※IronHSPのみ。3.7/3.8は lpoke st,96,下位 : lpoke st,100,上位
; RecOfficeLocation : LPWSTR (+104, 8byte)  qpoke st,104,値 / qpeek(st,104)  ※IronHSPのみ。3.7/3.8は lpoke st,104,下位 : lpoke st,108,上位
; RecHomePhone : LPWSTR (+112, 8byte)  qpoke st,112,値 / qpeek(st,112)  ※IronHSPのみ。3.7/3.8は lpoke st,112,下位 : lpoke st,116,上位
; RecOfficePhone : LPWSTR (+120, 8byte)  qpoke st,120,値 / qpeek(st,120)  ※IronHSPのみ。3.7/3.8は lpoke st,120,下位 : lpoke st,124,上位
; SdrName : LPWSTR (+128, 8byte)  qpoke st,128,値 / qpeek(st,128)  ※IronHSPのみ。3.7/3.8は lpoke st,128,下位 : lpoke st,132,上位
; SdrFaxNumber : LPWSTR (+136, 8byte)  qpoke st,136,値 / qpeek(st,136)  ※IronHSPのみ。3.7/3.8は lpoke st,136,下位 : lpoke st,140,上位
; SdrCompany : LPWSTR (+144, 8byte)  qpoke st,144,値 / qpeek(st,144)  ※IronHSPのみ。3.7/3.8は lpoke st,144,下位 : lpoke st,148,上位
; SdrAddress : LPWSTR (+152, 8byte)  qpoke st,152,値 / qpeek(st,152)  ※IronHSPのみ。3.7/3.8は lpoke st,152,下位 : lpoke st,156,上位
; SdrTitle : LPWSTR (+160, 8byte)  qpoke st,160,値 / qpeek(st,160)  ※IronHSPのみ。3.7/3.8は lpoke st,160,下位 : lpoke st,164,上位
; SdrDepartment : LPWSTR (+168, 8byte)  qpoke st,168,値 / qpeek(st,168)  ※IronHSPのみ。3.7/3.8は lpoke st,168,下位 : lpoke st,172,上位
; SdrOfficeLocation : LPWSTR (+176, 8byte)  qpoke st,176,値 / qpeek(st,176)  ※IronHSPのみ。3.7/3.8は lpoke st,176,下位 : lpoke st,180,上位
; SdrHomePhone : LPWSTR (+184, 8byte)  qpoke st,184,値 / qpeek(st,184)  ※IronHSPのみ。3.7/3.8は lpoke st,184,下位 : lpoke st,188,上位
; SdrOfficePhone : LPWSTR (+192, 8byte)  qpoke st,192,値 / qpeek(st,192)  ※IronHSPのみ。3.7/3.8は lpoke st,192,下位 : lpoke st,196,上位
; Note : LPWSTR (+200, 8byte)  qpoke st,200,値 / qpeek(st,200)  ※IronHSPのみ。3.7/3.8は lpoke st,200,下位 : lpoke st,204,上位
; Subject : LPWSTR (+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_INFOW
    #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_INFOW        ; NSTRUCT 変数を確保
st->SizeOfStruct = 100
mes "SizeOfStruct=" + st->SizeOfStruct