Win32 API 日本語リファレンス
ホームNetworkManagement.NetManagement › USER_INFO_3

USER_INFO_3

構造体
サイズx64: 184 バイト / x86: 116 バイト

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

フィールド

フィールドサイズx64x86説明
usri3_nameLPWSTR8/4+0+0ユーザーアカウント名。
usri3_passwordLPWSTR8/4+8+4アカウントのパスワード。取得時は通常空文字。
usri3_password_ageDWORD4+16+8前回のパスワード変更からの経過時間(秒)。
usri3_privUSER_PRIV4+20+12ユーザーの権限レベル(ゲスト/ユーザー/管理者)。
usri3_home_dirLPWSTR8/4+24+16ホームディレクトリのパス。
usri3_commentLPWSTR8/4+32+20アカウントのコメント。
usri3_flagsUSER_ACCOUNT_FLAGS4+40+24アカウントの動作と状態を示すフラグ。
usri3_script_pathLPWSTR8/4+48+28ログオンスクリプトのパス。
usri3_auth_flagsAF_OP4+56+32操作者(管理)権限を示す認可フラグ。
usri3_full_nameLPWSTR8/4+64+36ユーザーのフルネーム。
usri3_usr_commentLPWSTR8/4+72+40ユーザー自身が設定するコメント。
usri3_parmsLPWSTR8/4+80+44アプリケーション固有のパラメータ領域。
usri3_workstationsLPWSTR8/4+88+48ログオンを許可するワークステーション一覧(カンマ区切り)。
usri3_last_logonDWORD4+96+52最後にログオンした日時(1970年起算秒)。
usri3_last_logoffDWORD4+100+56最後にログオフした日時(1970年起算秒)。
usri3_acct_expiresDWORD4+104+60アカウント有効期限(秒)。TIMEQ_FOREVERで無期限。
usri3_max_storageDWORD4+108+64ユーザーに許可される最大ディスク容量(バイト)。
usri3_units_per_weekDWORD4+112+68ログオン時間を表す週あたりの単位数。
usri3_logon_hoursBYTE*8/4+120+72ログオン可能時間帯を表すビットマップへのポインタ。
usri3_bad_pw_countDWORD4+128+76誤ったパスワード入力の回数。
usri3_num_logonsDWORD4+132+80このアカウントの累計ログオン回数。
usri3_logon_serverLPWSTR8/4+136+84ログオンを処理するサーバー名。
usri3_country_codeDWORD4+144+88ユーザーの国コード。
usri3_code_pageDWORD4+148+92ユーザーのコードページ。
usri3_user_idDWORD4+152+96ユーザーの相対識別子(RID)。
usri3_primary_group_idDWORD4+156+100ユーザーのプライマリグループのRID。
usri3_profileLPWSTR8/4+160+104ユーザープロファイルのパス。
usri3_home_dir_driveLPWSTR8/4+168+108ホームディレクトリに割り当てるドライブ文字。
usri3_password_expiredDWORD4+176+112パスワードが期限切れかを示す(非0で要変更)。

各言語での定義

#include <windows.h>

// USER_INFO_3  (x64 184 / x86 116 バイト)
typedef struct USER_INFO_3 {
    LPWSTR usri3_name;
    LPWSTR usri3_password;
    DWORD usri3_password_age;
    USER_PRIV usri3_priv;
    LPWSTR usri3_home_dir;
    LPWSTR usri3_comment;
    USER_ACCOUNT_FLAGS usri3_flags;
    LPWSTR usri3_script_path;
    AF_OP usri3_auth_flags;
    LPWSTR usri3_full_name;
    LPWSTR usri3_usr_comment;
    LPWSTR usri3_parms;
    LPWSTR usri3_workstations;
    DWORD usri3_last_logon;
    DWORD usri3_last_logoff;
    DWORD usri3_acct_expires;
    DWORD usri3_max_storage;
    DWORD usri3_units_per_week;
    BYTE* usri3_logon_hours;
    DWORD usri3_bad_pw_count;
    DWORD usri3_num_logons;
    LPWSTR usri3_logon_server;
    DWORD usri3_country_code;
    DWORD usri3_code_page;
    DWORD usri3_user_id;
    DWORD usri3_primary_group_id;
    LPWSTR usri3_profile;
    LPWSTR usri3_home_dir_drive;
    DWORD usri3_password_expired;
} USER_INFO_3;
using System;
using System.Runtime.InteropServices;

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct USER_INFO_3
{
    public IntPtr usri3_name;
    public IntPtr usri3_password;
    public uint usri3_password_age;
    public uint usri3_priv;
    public IntPtr usri3_home_dir;
    public IntPtr usri3_comment;
    public uint usri3_flags;
    public IntPtr usri3_script_path;
    public uint usri3_auth_flags;
    public IntPtr usri3_full_name;
    public IntPtr usri3_usr_comment;
    public IntPtr usri3_parms;
    public IntPtr usri3_workstations;
    public uint usri3_last_logon;
    public uint usri3_last_logoff;
    public uint usri3_acct_expires;
    public uint usri3_max_storage;
    public uint usri3_units_per_week;
    public IntPtr usri3_logon_hours;
    public uint usri3_bad_pw_count;
    public uint usri3_num_logons;
    public IntPtr usri3_logon_server;
    public uint usri3_country_code;
    public uint usri3_code_page;
    public uint usri3_user_id;
    public uint usri3_primary_group_id;
    public IntPtr usri3_profile;
    public IntPtr usri3_home_dir_drive;
    public uint usri3_password_expired;
}
Imports System.Runtime.InteropServices

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure USER_INFO_3
    Public usri3_name As IntPtr
    Public usri3_password As IntPtr
    Public usri3_password_age As UInteger
    Public usri3_priv As UInteger
    Public usri3_home_dir As IntPtr
    Public usri3_comment As IntPtr
    Public usri3_flags As UInteger
    Public usri3_script_path As IntPtr
    Public usri3_auth_flags As UInteger
    Public usri3_full_name As IntPtr
    Public usri3_usr_comment As IntPtr
    Public usri3_parms As IntPtr
    Public usri3_workstations As IntPtr
    Public usri3_last_logon As UInteger
    Public usri3_last_logoff As UInteger
    Public usri3_acct_expires As UInteger
    Public usri3_max_storage As UInteger
    Public usri3_units_per_week As UInteger
    Public usri3_logon_hours As IntPtr
    Public usri3_bad_pw_count As UInteger
    Public usri3_num_logons As UInteger
    Public usri3_logon_server As IntPtr
    Public usri3_country_code As UInteger
    Public usri3_code_page As UInteger
    Public usri3_user_id As UInteger
    Public usri3_primary_group_id As UInteger
    Public usri3_profile As IntPtr
    Public usri3_home_dir_drive As IntPtr
    Public usri3_password_expired As UInteger
End Structure
import ctypes
from ctypes import wintypes

class USER_INFO_3(ctypes.Structure):
    _fields_ = [
        ("usri3_name", ctypes.c_void_p),
        ("usri3_password", ctypes.c_void_p),
        ("usri3_password_age", wintypes.DWORD),
        ("usri3_priv", wintypes.DWORD),
        ("usri3_home_dir", ctypes.c_void_p),
        ("usri3_comment", ctypes.c_void_p),
        ("usri3_flags", wintypes.DWORD),
        ("usri3_script_path", ctypes.c_void_p),
        ("usri3_auth_flags", wintypes.DWORD),
        ("usri3_full_name", ctypes.c_void_p),
        ("usri3_usr_comment", ctypes.c_void_p),
        ("usri3_parms", ctypes.c_void_p),
        ("usri3_workstations", ctypes.c_void_p),
        ("usri3_last_logon", wintypes.DWORD),
        ("usri3_last_logoff", wintypes.DWORD),
        ("usri3_acct_expires", wintypes.DWORD),
        ("usri3_max_storage", wintypes.DWORD),
        ("usri3_units_per_week", wintypes.DWORD),
        ("usri3_logon_hours", ctypes.c_void_p),
        ("usri3_bad_pw_count", wintypes.DWORD),
        ("usri3_num_logons", wintypes.DWORD),
        ("usri3_logon_server", ctypes.c_void_p),
        ("usri3_country_code", wintypes.DWORD),
        ("usri3_code_page", wintypes.DWORD),
        ("usri3_user_id", wintypes.DWORD),
        ("usri3_primary_group_id", wintypes.DWORD),
        ("usri3_profile", ctypes.c_void_p),
        ("usri3_home_dir_drive", ctypes.c_void_p),
        ("usri3_password_expired", wintypes.DWORD),
    ]
#[repr(C)]
pub struct USER_INFO_3 {
    pub usri3_name: *mut core::ffi::c_void,
    pub usri3_password: *mut core::ffi::c_void,
    pub usri3_password_age: u32,
    pub usri3_priv: u32,
    pub usri3_home_dir: *mut core::ffi::c_void,
    pub usri3_comment: *mut core::ffi::c_void,
    pub usri3_flags: u32,
    pub usri3_script_path: *mut core::ffi::c_void,
    pub usri3_auth_flags: u32,
    pub usri3_full_name: *mut core::ffi::c_void,
    pub usri3_usr_comment: *mut core::ffi::c_void,
    pub usri3_parms: *mut core::ffi::c_void,
    pub usri3_workstations: *mut core::ffi::c_void,
    pub usri3_last_logon: u32,
    pub usri3_last_logoff: u32,
    pub usri3_acct_expires: u32,
    pub usri3_max_storage: u32,
    pub usri3_units_per_week: u32,
    pub usri3_logon_hours: *mut core::ffi::c_void,
    pub usri3_bad_pw_count: u32,
    pub usri3_num_logons: u32,
    pub usri3_logon_server: *mut core::ffi::c_void,
    pub usri3_country_code: u32,
    pub usri3_code_page: u32,
    pub usri3_user_id: u32,
    pub usri3_primary_group_id: u32,
    pub usri3_profile: *mut core::ffi::c_void,
    pub usri3_home_dir_drive: *mut core::ffi::c_void,
    pub usri3_password_expired: u32,
}
import "golang.org/x/sys/windows"

type USER_INFO_3 struct {
	usri3_name uintptr
	usri3_password uintptr
	usri3_password_age uint32
	usri3_priv uint32
	usri3_home_dir uintptr
	usri3_comment uintptr
	usri3_flags uint32
	usri3_script_path uintptr
	usri3_auth_flags uint32
	usri3_full_name uintptr
	usri3_usr_comment uintptr
	usri3_parms uintptr
	usri3_workstations uintptr
	usri3_last_logon uint32
	usri3_last_logoff uint32
	usri3_acct_expires uint32
	usri3_max_storage uint32
	usri3_units_per_week uint32
	usri3_logon_hours uintptr
	usri3_bad_pw_count uint32
	usri3_num_logons uint32
	usri3_logon_server uintptr
	usri3_country_code uint32
	usri3_code_page uint32
	usri3_user_id uint32
	usri3_primary_group_id uint32
	usri3_profile uintptr
	usri3_home_dir_drive uintptr
	usri3_password_expired uint32
}
type
  USER_INFO_3 = record
    usri3_name: Pointer;
    usri3_password: Pointer;
    usri3_password_age: DWORD;
    usri3_priv: DWORD;
    usri3_home_dir: Pointer;
    usri3_comment: Pointer;
    usri3_flags: DWORD;
    usri3_script_path: Pointer;
    usri3_auth_flags: DWORD;
    usri3_full_name: Pointer;
    usri3_usr_comment: Pointer;
    usri3_parms: Pointer;
    usri3_workstations: Pointer;
    usri3_last_logon: DWORD;
    usri3_last_logoff: DWORD;
    usri3_acct_expires: DWORD;
    usri3_max_storage: DWORD;
    usri3_units_per_week: DWORD;
    usri3_logon_hours: Pointer;
    usri3_bad_pw_count: DWORD;
    usri3_num_logons: DWORD;
    usri3_logon_server: Pointer;
    usri3_country_code: DWORD;
    usri3_code_page: DWORD;
    usri3_user_id: DWORD;
    usri3_primary_group_id: DWORD;
    usri3_profile: Pointer;
    usri3_home_dir_drive: Pointer;
    usri3_password_expired: DWORD;
  end;
const USER_INFO_3 = extern struct {
    usri3_name: ?*anyopaque,
    usri3_password: ?*anyopaque,
    usri3_password_age: u32,
    usri3_priv: u32,
    usri3_home_dir: ?*anyopaque,
    usri3_comment: ?*anyopaque,
    usri3_flags: u32,
    usri3_script_path: ?*anyopaque,
    usri3_auth_flags: u32,
    usri3_full_name: ?*anyopaque,
    usri3_usr_comment: ?*anyopaque,
    usri3_parms: ?*anyopaque,
    usri3_workstations: ?*anyopaque,
    usri3_last_logon: u32,
    usri3_last_logoff: u32,
    usri3_acct_expires: u32,
    usri3_max_storage: u32,
    usri3_units_per_week: u32,
    usri3_logon_hours: ?*anyopaque,
    usri3_bad_pw_count: u32,
    usri3_num_logons: u32,
    usri3_logon_server: ?*anyopaque,
    usri3_country_code: u32,
    usri3_code_page: u32,
    usri3_user_id: u32,
    usri3_primary_group_id: u32,
    usri3_profile: ?*anyopaque,
    usri3_home_dir_drive: ?*anyopaque,
    usri3_password_expired: u32,
};
type
  USER_INFO_3 {.bycopy.} = object
    usri3_name: pointer
    usri3_password: pointer
    usri3_password_age: uint32
    usri3_priv: uint32
    usri3_home_dir: pointer
    usri3_comment: pointer
    usri3_flags: uint32
    usri3_script_path: pointer
    usri3_auth_flags: uint32
    usri3_full_name: pointer
    usri3_usr_comment: pointer
    usri3_parms: pointer
    usri3_workstations: pointer
    usri3_last_logon: uint32
    usri3_last_logoff: uint32
    usri3_acct_expires: uint32
    usri3_max_storage: uint32
    usri3_units_per_week: uint32
    usri3_logon_hours: pointer
    usri3_bad_pw_count: uint32
    usri3_num_logons: uint32
    usri3_logon_server: pointer
    usri3_country_code: uint32
    usri3_code_page: uint32
    usri3_user_id: uint32
    usri3_primary_group_id: uint32
    usri3_profile: pointer
    usri3_home_dir_drive: pointer
    usri3_password_expired: uint32
struct USER_INFO_3
{
    void* usri3_name;
    void* usri3_password;
    uint usri3_password_age;
    uint usri3_priv;
    void* usri3_home_dir;
    void* usri3_comment;
    uint usri3_flags;
    void* usri3_script_path;
    uint usri3_auth_flags;
    void* usri3_full_name;
    void* usri3_usr_comment;
    void* usri3_parms;
    void* usri3_workstations;
    uint usri3_last_logon;
    uint usri3_last_logoff;
    uint usri3_acct_expires;
    uint usri3_max_storage;
    uint usri3_units_per_week;
    void* usri3_logon_hours;
    uint usri3_bad_pw_count;
    uint usri3_num_logons;
    void* usri3_logon_server;
    uint usri3_country_code;
    uint usri3_code_page;
    uint usri3_user_id;
    uint usri3_primary_group_id;
    void* usri3_profile;
    void* usri3_home_dir_drive;
    uint usri3_password_expired;
}

HSP用 定義

HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。

; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x86 レイアウト)
; USER_INFO_3 サイズ: 116 バイト(x86)
dim st, 29    ; 4byte整数×29(構造体サイズ 116 / 4 切り上げ)
; usri3_name : LPWSTR (+0, 4byte)  st.0 = 値  /  値 = st.0   (lpoke/lpeek も可)
; usri3_password : LPWSTR (+4, 4byte)  st.1 = 値  /  値 = st.1   (lpoke/lpeek も可)
; usri3_password_age : DWORD (+8, 4byte)  st.2 = 値  /  値 = st.2   (lpoke/lpeek も可)
; usri3_priv : USER_PRIV (+12, 4byte)  st.3 = 値  /  値 = st.3   (lpoke/lpeek も可)
; usri3_home_dir : LPWSTR (+16, 4byte)  st.4 = 値  /  値 = st.4   (lpoke/lpeek も可)
; usri3_comment : LPWSTR (+20, 4byte)  st.5 = 値  /  値 = st.5   (lpoke/lpeek も可)
; usri3_flags : USER_ACCOUNT_FLAGS (+24, 4byte)  st.6 = 値  /  値 = st.6   (lpoke/lpeek も可)
; usri3_script_path : LPWSTR (+28, 4byte)  st.7 = 値  /  値 = st.7   (lpoke/lpeek も可)
; usri3_auth_flags : AF_OP (+32, 4byte)  st.8 = 値  /  値 = st.8   (lpoke/lpeek も可)
; usri3_full_name : LPWSTR (+36, 4byte)  st.9 = 値  /  値 = st.9   (lpoke/lpeek も可)
; usri3_usr_comment : LPWSTR (+40, 4byte)  st.10 = 値  /  値 = st.10   (lpoke/lpeek も可)
; usri3_parms : LPWSTR (+44, 4byte)  st.11 = 値  /  値 = st.11   (lpoke/lpeek も可)
; usri3_workstations : LPWSTR (+48, 4byte)  st.12 = 値  /  値 = st.12   (lpoke/lpeek も可)
; usri3_last_logon : DWORD (+52, 4byte)  st.13 = 値  /  値 = st.13   (lpoke/lpeek も可)
; usri3_last_logoff : DWORD (+56, 4byte)  st.14 = 値  /  値 = st.14   (lpoke/lpeek も可)
; usri3_acct_expires : DWORD (+60, 4byte)  st.15 = 値  /  値 = st.15   (lpoke/lpeek も可)
; usri3_max_storage : DWORD (+64, 4byte)  st.16 = 値  /  値 = st.16   (lpoke/lpeek も可)
; usri3_units_per_week : DWORD (+68, 4byte)  st.17 = 値  /  値 = st.17   (lpoke/lpeek も可)
; usri3_logon_hours : BYTE* (+72, 4byte)  st.18 = 値  /  値 = st.18   (lpoke/lpeek も可)
; usri3_bad_pw_count : DWORD (+76, 4byte)  st.19 = 値  /  値 = st.19   (lpoke/lpeek も可)
; usri3_num_logons : DWORD (+80, 4byte)  st.20 = 値  /  値 = st.20   (lpoke/lpeek も可)
; usri3_logon_server : LPWSTR (+84, 4byte)  st.21 = 値  /  値 = st.21   (lpoke/lpeek も可)
; usri3_country_code : DWORD (+88, 4byte)  st.22 = 値  /  値 = st.22   (lpoke/lpeek も可)
; usri3_code_page : DWORD (+92, 4byte)  st.23 = 値  /  値 = st.23   (lpoke/lpeek も可)
; usri3_user_id : DWORD (+96, 4byte)  st.24 = 値  /  値 = st.24   (lpoke/lpeek も可)
; usri3_primary_group_id : DWORD (+100, 4byte)  st.25 = 値  /  値 = st.25   (lpoke/lpeek も可)
; usri3_profile : LPWSTR (+104, 4byte)  st.26 = 値  /  値 = st.26   (lpoke/lpeek も可)
; usri3_home_dir_drive : LPWSTR (+108, 4byte)  st.27 = 値  /  値 = st.27   (lpoke/lpeek も可)
; usri3_password_expired : DWORD (+112, 4byte)  st.28 = 値  /  値 = st.28   (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; USER_INFO_3 サイズ: 184 バイト(x64)
dim st, 46    ; 4byte整数×46(構造体サイズ 184 / 4 切り上げ)
; usri3_name : LPWSTR (+0, 8byte)  qpoke st,0,値 / qpeek(st,0)  ※IronHSPのみ。3.7/3.8は lpoke st,0,下位 : lpoke st,4,上位
; usri3_password : LPWSTR (+8, 8byte)  qpoke st,8,値 / qpeek(st,8)  ※IronHSPのみ。3.7/3.8は lpoke st,8,下位 : lpoke st,12,上位
; usri3_password_age : DWORD (+16, 4byte)  st.4 = 値  /  値 = st.4   (lpoke/lpeek も可)
; usri3_priv : USER_PRIV (+20, 4byte)  st.5 = 値  /  値 = st.5   (lpoke/lpeek も可)
; usri3_home_dir : LPWSTR (+24, 8byte)  qpoke st,24,値 / qpeek(st,24)  ※IronHSPのみ。3.7/3.8は lpoke st,24,下位 : lpoke st,28,上位
; usri3_comment : LPWSTR (+32, 8byte)  qpoke st,32,値 / qpeek(st,32)  ※IronHSPのみ。3.7/3.8は lpoke st,32,下位 : lpoke st,36,上位
; usri3_flags : USER_ACCOUNT_FLAGS (+40, 4byte)  st.10 = 値  /  値 = st.10   (lpoke/lpeek も可)
; usri3_script_path : LPWSTR (+48, 8byte)  qpoke st,48,値 / qpeek(st,48)  ※IronHSPのみ。3.7/3.8は lpoke st,48,下位 : lpoke st,52,上位
; usri3_auth_flags : AF_OP (+56, 4byte)  st.14 = 値  /  値 = st.14   (lpoke/lpeek も可)
; usri3_full_name : LPWSTR (+64, 8byte)  qpoke st,64,値 / qpeek(st,64)  ※IronHSPのみ。3.7/3.8は lpoke st,64,下位 : lpoke st,68,上位
; usri3_usr_comment : LPWSTR (+72, 8byte)  qpoke st,72,値 / qpeek(st,72)  ※IronHSPのみ。3.7/3.8は lpoke st,72,下位 : lpoke st,76,上位
; usri3_parms : LPWSTR (+80, 8byte)  qpoke st,80,値 / qpeek(st,80)  ※IronHSPのみ。3.7/3.8は lpoke st,80,下位 : lpoke st,84,上位
; usri3_workstations : LPWSTR (+88, 8byte)  qpoke st,88,値 / qpeek(st,88)  ※IronHSPのみ。3.7/3.8は lpoke st,88,下位 : lpoke st,92,上位
; usri3_last_logon : DWORD (+96, 4byte)  st.24 = 値  /  値 = st.24   (lpoke/lpeek も可)
; usri3_last_logoff : DWORD (+100, 4byte)  st.25 = 値  /  値 = st.25   (lpoke/lpeek も可)
; usri3_acct_expires : DWORD (+104, 4byte)  st.26 = 値  /  値 = st.26   (lpoke/lpeek も可)
; usri3_max_storage : DWORD (+108, 4byte)  st.27 = 値  /  値 = st.27   (lpoke/lpeek も可)
; usri3_units_per_week : DWORD (+112, 4byte)  st.28 = 値  /  値 = st.28   (lpoke/lpeek も可)
; usri3_logon_hours : BYTE* (+120, 8byte)  qpoke st,120,値 / qpeek(st,120)  ※IronHSPのみ。3.7/3.8は lpoke st,120,下位 : lpoke st,124,上位
; usri3_bad_pw_count : DWORD (+128, 4byte)  st.32 = 値  /  値 = st.32   (lpoke/lpeek も可)
; usri3_num_logons : DWORD (+132, 4byte)  st.33 = 値  /  値 = st.33   (lpoke/lpeek も可)
; usri3_logon_server : LPWSTR (+136, 8byte)  qpoke st,136,値 / qpeek(st,136)  ※IronHSPのみ。3.7/3.8は lpoke st,136,下位 : lpoke st,140,上位
; usri3_country_code : DWORD (+144, 4byte)  st.36 = 値  /  値 = st.36   (lpoke/lpeek も可)
; usri3_code_page : DWORD (+148, 4byte)  st.37 = 値  /  値 = st.37   (lpoke/lpeek も可)
; usri3_user_id : DWORD (+152, 4byte)  st.38 = 値  /  値 = st.38   (lpoke/lpeek も可)
; usri3_primary_group_id : DWORD (+156, 4byte)  st.39 = 値  /  値 = st.39   (lpoke/lpeek も可)
; usri3_profile : LPWSTR (+160, 8byte)  qpoke st,160,値 / qpeek(st,160)  ※IronHSPのみ。3.7/3.8は lpoke st,160,下位 : lpoke st,164,上位
; usri3_home_dir_drive : LPWSTR (+168, 8byte)  qpoke st,168,値 / qpeek(st,168)  ※IronHSPのみ。3.7/3.8は lpoke st,168,下位 : lpoke st,172,上位
; usri3_password_expired : DWORD (+176, 4byte)  st.44 = 値  /  値 = st.44   (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。
; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global USER_INFO_3
    #field intptr usri3_name
    #field intptr usri3_password
    #field int usri3_password_age
    #field int usri3_priv
    #field intptr usri3_home_dir
    #field intptr usri3_comment
    #field int usri3_flags
    #field intptr usri3_script_path
    #field int usri3_auth_flags
    #field intptr usri3_full_name
    #field intptr usri3_usr_comment
    #field intptr usri3_parms
    #field intptr usri3_workstations
    #field int usri3_last_logon
    #field int usri3_last_logoff
    #field int usri3_acct_expires
    #field int usri3_max_storage
    #field int usri3_units_per_week
    #field intptr usri3_logon_hours
    #field int usri3_bad_pw_count
    #field int usri3_num_logons
    #field intptr usri3_logon_server
    #field int usri3_country_code
    #field int usri3_code_page
    #field int usri3_user_id
    #field int usri3_primary_group_id
    #field intptr usri3_profile
    #field intptr usri3_home_dir_drive
    #field int usri3_password_expired
#endstruct

stdim st, USER_INFO_3        ; NSTRUCT 変数を確保
st->usri3_password_age = 100
mes "usri3_password_age=" + st->usri3_password_age