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

WKSTA_INFO_502

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

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

フィールド

フィールドサイズx64x86説明
wki502_char_waitDWORD4+0+0通信デバイスが利用可能になるまで待機する時間をミリ秒単位で示す。
wki502_collection_timeDWORD4+4+4文字データをバッファに蓄積する待機時間をミリ秒単位で示す。
wki502_maximum_collection_countDWORD4+8+8送信前にバッファに蓄積する文字数の上限を示す。
wki502_keep_connDWORD4+12+12未使用接続を維持する時間を秒単位で示す。
wki502_max_cmdsDWORD4+16+16サーバーへ同時送信可能なコマンド(SMB)の最大数を示す。
wki502_sess_timeoutDWORD4+20+20応答のないセッションを切断するまでの時間を秒単位で示す。
wki502_siz_char_bufDWORD4+24+24各文字バッファのサイズをバイト単位で示す。
wki502_max_threadsDWORD4+28+28ネットワーク処理に割り当て可能なスレッドの最大数を示す。
wki502_lock_quotaDWORD4+32+32ファイルごとに許容するバイトロックのクォータをバイト単位で示す。
wki502_lock_incrementDWORD4+36+36ロック領域を拡張する際の増分をバイト単位で示す。
wki502_lock_maximumDWORD4+40+401ファイルに対するロック数の最大値を示す。
wki502_pipe_incrementDWORD4+44+44パイプ用領域を拡張する際の増分をバイト単位で示す。
wki502_pipe_maximumDWORD4+48+48名前付きパイプに割り当て可能な最大バイト数を示す。
wki502_cache_file_timeoutDWORD4+52+52リダイレクタがファイルをキャッシュ保持する時間を秒単位で示す。
wki502_dormant_file_limitDWORD4+56+56閉じた後も開いたまま保持する休止ファイルの最大数を示す。
wki502_read_ahead_throughputDWORD4+60+60先読みを行う際のスループット閾値をバイト/秒で示す。
wki502_num_mailslot_buffersDWORD4+64+64メールスロット用バッファの数を示す。
wki502_num_srv_announce_buffersDWORD4+68+68サーバーアナウンス用バッファの数を示す。
wki502_max_illegal_datagram_eventsDWORD4+72+72記録する不正データグラムイベントの最大数を示す。
wki502_illegal_datagram_event_reset_frequencyDWORD4+76+76不正データグラムイベントカウンタをリセットする頻度を秒単位で示す。
wki502_log_election_packetsBOOL4+80+80ブラウザ選挙パケットをログ記録するかを示すフラグ。
wki502_use_opportunistic_lockingBOOL4+84+84便宜的ロック(oplock)を使用するかを示すフラグ。
wki502_use_unlock_behindBOOL4+88+88アンロックビハインド最適化を使用するかを示すフラグ。
wki502_use_close_behindBOOL4+92+92クローズビハインド最適化を使用するかを示すフラグ。
wki502_buf_named_pipesBOOL4+96+96名前付きパイプの書き込みをバッファリングするかを示すフラグ。
wki502_use_lock_read_unlockBOOL4+100+100ロック・読取・アンロックの結合操作を使用するかを示すフラグ。
wki502_utilize_nt_cachingBOOL4+104+104NTキャッシュ機構を利用するかを示すフラグ。
wki502_use_raw_readBOOL4+108+108raw読み取りプロトコルを使用するかを示すフラグ。
wki502_use_raw_writeBOOL4+112+112raw書き込みプロトコルを使用するかを示すフラグ。
wki502_use_write_raw_dataBOOL4+116+116書き込みデータをrawモードで送信するかを示すフラグ。
wki502_use_encryptionBOOL4+120+120通信に暗号化を使用するかを示すフラグ。
wki502_buf_files_deny_writeBOOL4+124+124書き込み拒否で開いたファイルをバッファリングするかを示すフラグ。
wki502_buf_read_only_filesBOOL4+128+128読み取り専用ファイルをバッファリングするかを示すフラグ。
wki502_force_core_create_modeBOOL4+132+132コア作成モードを強制するかを示すフラグ。
wki502_use_512_byte_max_transferBOOL4+136+136最大転送サイズを512バイトに制限するかを示すフラグ。

各言語での定義

#include <windows.h>

// WKSTA_INFO_502  (x64 140 / x86 140 バイト)
typedef struct WKSTA_INFO_502 {
    DWORD wki502_char_wait;
    DWORD wki502_collection_time;
    DWORD wki502_maximum_collection_count;
    DWORD wki502_keep_conn;
    DWORD wki502_max_cmds;
    DWORD wki502_sess_timeout;
    DWORD wki502_siz_char_buf;
    DWORD wki502_max_threads;
    DWORD wki502_lock_quota;
    DWORD wki502_lock_increment;
    DWORD wki502_lock_maximum;
    DWORD wki502_pipe_increment;
    DWORD wki502_pipe_maximum;
    DWORD wki502_cache_file_timeout;
    DWORD wki502_dormant_file_limit;
    DWORD wki502_read_ahead_throughput;
    DWORD wki502_num_mailslot_buffers;
    DWORD wki502_num_srv_announce_buffers;
    DWORD wki502_max_illegal_datagram_events;
    DWORD wki502_illegal_datagram_event_reset_frequency;
    BOOL wki502_log_election_packets;
    BOOL wki502_use_opportunistic_locking;
    BOOL wki502_use_unlock_behind;
    BOOL wki502_use_close_behind;
    BOOL wki502_buf_named_pipes;
    BOOL wki502_use_lock_read_unlock;
    BOOL wki502_utilize_nt_caching;
    BOOL wki502_use_raw_read;
    BOOL wki502_use_raw_write;
    BOOL wki502_use_write_raw_data;
    BOOL wki502_use_encryption;
    BOOL wki502_buf_files_deny_write;
    BOOL wki502_buf_read_only_files;
    BOOL wki502_force_core_create_mode;
    BOOL wki502_use_512_byte_max_transfer;
} WKSTA_INFO_502;
using System;
using System.Runtime.InteropServices;

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct WKSTA_INFO_502
{
    public uint wki502_char_wait;
    public uint wki502_collection_time;
    public uint wki502_maximum_collection_count;
    public uint wki502_keep_conn;
    public uint wki502_max_cmds;
    public uint wki502_sess_timeout;
    public uint wki502_siz_char_buf;
    public uint wki502_max_threads;
    public uint wki502_lock_quota;
    public uint wki502_lock_increment;
    public uint wki502_lock_maximum;
    public uint wki502_pipe_increment;
    public uint wki502_pipe_maximum;
    public uint wki502_cache_file_timeout;
    public uint wki502_dormant_file_limit;
    public uint wki502_read_ahead_throughput;
    public uint wki502_num_mailslot_buffers;
    public uint wki502_num_srv_announce_buffers;
    public uint wki502_max_illegal_datagram_events;
    public uint wki502_illegal_datagram_event_reset_frequency;
    [MarshalAs(UnmanagedType.Bool)] public bool wki502_log_election_packets;
    [MarshalAs(UnmanagedType.Bool)] public bool wki502_use_opportunistic_locking;
    [MarshalAs(UnmanagedType.Bool)] public bool wki502_use_unlock_behind;
    [MarshalAs(UnmanagedType.Bool)] public bool wki502_use_close_behind;
    [MarshalAs(UnmanagedType.Bool)] public bool wki502_buf_named_pipes;
    [MarshalAs(UnmanagedType.Bool)] public bool wki502_use_lock_read_unlock;
    [MarshalAs(UnmanagedType.Bool)] public bool wki502_utilize_nt_caching;
    [MarshalAs(UnmanagedType.Bool)] public bool wki502_use_raw_read;
    [MarshalAs(UnmanagedType.Bool)] public bool wki502_use_raw_write;
    [MarshalAs(UnmanagedType.Bool)] public bool wki502_use_write_raw_data;
    [MarshalAs(UnmanagedType.Bool)] public bool wki502_use_encryption;
    [MarshalAs(UnmanagedType.Bool)] public bool wki502_buf_files_deny_write;
    [MarshalAs(UnmanagedType.Bool)] public bool wki502_buf_read_only_files;
    [MarshalAs(UnmanagedType.Bool)] public bool wki502_force_core_create_mode;
    [MarshalAs(UnmanagedType.Bool)] public bool wki502_use_512_byte_max_transfer;
}
Imports System.Runtime.InteropServices

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure WKSTA_INFO_502
    Public wki502_char_wait As UInteger
    Public wki502_collection_time As UInteger
    Public wki502_maximum_collection_count As UInteger
    Public wki502_keep_conn As UInteger
    Public wki502_max_cmds As UInteger
    Public wki502_sess_timeout As UInteger
    Public wki502_siz_char_buf As UInteger
    Public wki502_max_threads As UInteger
    Public wki502_lock_quota As UInteger
    Public wki502_lock_increment As UInteger
    Public wki502_lock_maximum As UInteger
    Public wki502_pipe_increment As UInteger
    Public wki502_pipe_maximum As UInteger
    Public wki502_cache_file_timeout As UInteger
    Public wki502_dormant_file_limit As UInteger
    Public wki502_read_ahead_throughput As UInteger
    Public wki502_num_mailslot_buffers As UInteger
    Public wki502_num_srv_announce_buffers As UInteger
    Public wki502_max_illegal_datagram_events As UInteger
    Public wki502_illegal_datagram_event_reset_frequency As UInteger
    <MarshalAs(UnmanagedType.Bool)> Public wki502_log_election_packets As Boolean
    <MarshalAs(UnmanagedType.Bool)> Public wki502_use_opportunistic_locking As Boolean
    <MarshalAs(UnmanagedType.Bool)> Public wki502_use_unlock_behind As Boolean
    <MarshalAs(UnmanagedType.Bool)> Public wki502_use_close_behind As Boolean
    <MarshalAs(UnmanagedType.Bool)> Public wki502_buf_named_pipes As Boolean
    <MarshalAs(UnmanagedType.Bool)> Public wki502_use_lock_read_unlock As Boolean
    <MarshalAs(UnmanagedType.Bool)> Public wki502_utilize_nt_caching As Boolean
    <MarshalAs(UnmanagedType.Bool)> Public wki502_use_raw_read As Boolean
    <MarshalAs(UnmanagedType.Bool)> Public wki502_use_raw_write As Boolean
    <MarshalAs(UnmanagedType.Bool)> Public wki502_use_write_raw_data As Boolean
    <MarshalAs(UnmanagedType.Bool)> Public wki502_use_encryption As Boolean
    <MarshalAs(UnmanagedType.Bool)> Public wki502_buf_files_deny_write As Boolean
    <MarshalAs(UnmanagedType.Bool)> Public wki502_buf_read_only_files As Boolean
    <MarshalAs(UnmanagedType.Bool)> Public wki502_force_core_create_mode As Boolean
    <MarshalAs(UnmanagedType.Bool)> Public wki502_use_512_byte_max_transfer As Boolean
End Structure
import ctypes
from ctypes import wintypes

class WKSTA_INFO_502(ctypes.Structure):
    _fields_ = [
        ("wki502_char_wait", wintypes.DWORD),
        ("wki502_collection_time", wintypes.DWORD),
        ("wki502_maximum_collection_count", wintypes.DWORD),
        ("wki502_keep_conn", wintypes.DWORD),
        ("wki502_max_cmds", wintypes.DWORD),
        ("wki502_sess_timeout", wintypes.DWORD),
        ("wki502_siz_char_buf", wintypes.DWORD),
        ("wki502_max_threads", wintypes.DWORD),
        ("wki502_lock_quota", wintypes.DWORD),
        ("wki502_lock_increment", wintypes.DWORD),
        ("wki502_lock_maximum", wintypes.DWORD),
        ("wki502_pipe_increment", wintypes.DWORD),
        ("wki502_pipe_maximum", wintypes.DWORD),
        ("wki502_cache_file_timeout", wintypes.DWORD),
        ("wki502_dormant_file_limit", wintypes.DWORD),
        ("wki502_read_ahead_throughput", wintypes.DWORD),
        ("wki502_num_mailslot_buffers", wintypes.DWORD),
        ("wki502_num_srv_announce_buffers", wintypes.DWORD),
        ("wki502_max_illegal_datagram_events", wintypes.DWORD),
        ("wki502_illegal_datagram_event_reset_frequency", wintypes.DWORD),
        ("wki502_log_election_packets", wintypes.BOOL),
        ("wki502_use_opportunistic_locking", wintypes.BOOL),
        ("wki502_use_unlock_behind", wintypes.BOOL),
        ("wki502_use_close_behind", wintypes.BOOL),
        ("wki502_buf_named_pipes", wintypes.BOOL),
        ("wki502_use_lock_read_unlock", wintypes.BOOL),
        ("wki502_utilize_nt_caching", wintypes.BOOL),
        ("wki502_use_raw_read", wintypes.BOOL),
        ("wki502_use_raw_write", wintypes.BOOL),
        ("wki502_use_write_raw_data", wintypes.BOOL),
        ("wki502_use_encryption", wintypes.BOOL),
        ("wki502_buf_files_deny_write", wintypes.BOOL),
        ("wki502_buf_read_only_files", wintypes.BOOL),
        ("wki502_force_core_create_mode", wintypes.BOOL),
        ("wki502_use_512_byte_max_transfer", wintypes.BOOL),
    ]
#[repr(C)]
pub struct WKSTA_INFO_502 {
    pub wki502_char_wait: u32,
    pub wki502_collection_time: u32,
    pub wki502_maximum_collection_count: u32,
    pub wki502_keep_conn: u32,
    pub wki502_max_cmds: u32,
    pub wki502_sess_timeout: u32,
    pub wki502_siz_char_buf: u32,
    pub wki502_max_threads: u32,
    pub wki502_lock_quota: u32,
    pub wki502_lock_increment: u32,
    pub wki502_lock_maximum: u32,
    pub wki502_pipe_increment: u32,
    pub wki502_pipe_maximum: u32,
    pub wki502_cache_file_timeout: u32,
    pub wki502_dormant_file_limit: u32,
    pub wki502_read_ahead_throughput: u32,
    pub wki502_num_mailslot_buffers: u32,
    pub wki502_num_srv_announce_buffers: u32,
    pub wki502_max_illegal_datagram_events: u32,
    pub wki502_illegal_datagram_event_reset_frequency: u32,
    pub wki502_log_election_packets: i32,
    pub wki502_use_opportunistic_locking: i32,
    pub wki502_use_unlock_behind: i32,
    pub wki502_use_close_behind: i32,
    pub wki502_buf_named_pipes: i32,
    pub wki502_use_lock_read_unlock: i32,
    pub wki502_utilize_nt_caching: i32,
    pub wki502_use_raw_read: i32,
    pub wki502_use_raw_write: i32,
    pub wki502_use_write_raw_data: i32,
    pub wki502_use_encryption: i32,
    pub wki502_buf_files_deny_write: i32,
    pub wki502_buf_read_only_files: i32,
    pub wki502_force_core_create_mode: i32,
    pub wki502_use_512_byte_max_transfer: i32,
}
import "golang.org/x/sys/windows"

type WKSTA_INFO_502 struct {
	wki502_char_wait uint32
	wki502_collection_time uint32
	wki502_maximum_collection_count uint32
	wki502_keep_conn uint32
	wki502_max_cmds uint32
	wki502_sess_timeout uint32
	wki502_siz_char_buf uint32
	wki502_max_threads uint32
	wki502_lock_quota uint32
	wki502_lock_increment uint32
	wki502_lock_maximum uint32
	wki502_pipe_increment uint32
	wki502_pipe_maximum uint32
	wki502_cache_file_timeout uint32
	wki502_dormant_file_limit uint32
	wki502_read_ahead_throughput uint32
	wki502_num_mailslot_buffers uint32
	wki502_num_srv_announce_buffers uint32
	wki502_max_illegal_datagram_events uint32
	wki502_illegal_datagram_event_reset_frequency uint32
	wki502_log_election_packets int32
	wki502_use_opportunistic_locking int32
	wki502_use_unlock_behind int32
	wki502_use_close_behind int32
	wki502_buf_named_pipes int32
	wki502_use_lock_read_unlock int32
	wki502_utilize_nt_caching int32
	wki502_use_raw_read int32
	wki502_use_raw_write int32
	wki502_use_write_raw_data int32
	wki502_use_encryption int32
	wki502_buf_files_deny_write int32
	wki502_buf_read_only_files int32
	wki502_force_core_create_mode int32
	wki502_use_512_byte_max_transfer int32
}
type
  WKSTA_INFO_502 = record
    wki502_char_wait: DWORD;
    wki502_collection_time: DWORD;
    wki502_maximum_collection_count: DWORD;
    wki502_keep_conn: DWORD;
    wki502_max_cmds: DWORD;
    wki502_sess_timeout: DWORD;
    wki502_siz_char_buf: DWORD;
    wki502_max_threads: DWORD;
    wki502_lock_quota: DWORD;
    wki502_lock_increment: DWORD;
    wki502_lock_maximum: DWORD;
    wki502_pipe_increment: DWORD;
    wki502_pipe_maximum: DWORD;
    wki502_cache_file_timeout: DWORD;
    wki502_dormant_file_limit: DWORD;
    wki502_read_ahead_throughput: DWORD;
    wki502_num_mailslot_buffers: DWORD;
    wki502_num_srv_announce_buffers: DWORD;
    wki502_max_illegal_datagram_events: DWORD;
    wki502_illegal_datagram_event_reset_frequency: DWORD;
    wki502_log_election_packets: BOOL;
    wki502_use_opportunistic_locking: BOOL;
    wki502_use_unlock_behind: BOOL;
    wki502_use_close_behind: BOOL;
    wki502_buf_named_pipes: BOOL;
    wki502_use_lock_read_unlock: BOOL;
    wki502_utilize_nt_caching: BOOL;
    wki502_use_raw_read: BOOL;
    wki502_use_raw_write: BOOL;
    wki502_use_write_raw_data: BOOL;
    wki502_use_encryption: BOOL;
    wki502_buf_files_deny_write: BOOL;
    wki502_buf_read_only_files: BOOL;
    wki502_force_core_create_mode: BOOL;
    wki502_use_512_byte_max_transfer: BOOL;
  end;
const WKSTA_INFO_502 = extern struct {
    wki502_char_wait: u32,
    wki502_collection_time: u32,
    wki502_maximum_collection_count: u32,
    wki502_keep_conn: u32,
    wki502_max_cmds: u32,
    wki502_sess_timeout: u32,
    wki502_siz_char_buf: u32,
    wki502_max_threads: u32,
    wki502_lock_quota: u32,
    wki502_lock_increment: u32,
    wki502_lock_maximum: u32,
    wki502_pipe_increment: u32,
    wki502_pipe_maximum: u32,
    wki502_cache_file_timeout: u32,
    wki502_dormant_file_limit: u32,
    wki502_read_ahead_throughput: u32,
    wki502_num_mailslot_buffers: u32,
    wki502_num_srv_announce_buffers: u32,
    wki502_max_illegal_datagram_events: u32,
    wki502_illegal_datagram_event_reset_frequency: u32,
    wki502_log_election_packets: i32,
    wki502_use_opportunistic_locking: i32,
    wki502_use_unlock_behind: i32,
    wki502_use_close_behind: i32,
    wki502_buf_named_pipes: i32,
    wki502_use_lock_read_unlock: i32,
    wki502_utilize_nt_caching: i32,
    wki502_use_raw_read: i32,
    wki502_use_raw_write: i32,
    wki502_use_write_raw_data: i32,
    wki502_use_encryption: i32,
    wki502_buf_files_deny_write: i32,
    wki502_buf_read_only_files: i32,
    wki502_force_core_create_mode: i32,
    wki502_use_512_byte_max_transfer: i32,
};
type
  WKSTA_INFO_502 {.bycopy.} = object
    wki502_char_wait: uint32
    wki502_collection_time: uint32
    wki502_maximum_collection_count: uint32
    wki502_keep_conn: uint32
    wki502_max_cmds: uint32
    wki502_sess_timeout: uint32
    wki502_siz_char_buf: uint32
    wki502_max_threads: uint32
    wki502_lock_quota: uint32
    wki502_lock_increment: uint32
    wki502_lock_maximum: uint32
    wki502_pipe_increment: uint32
    wki502_pipe_maximum: uint32
    wki502_cache_file_timeout: uint32
    wki502_dormant_file_limit: uint32
    wki502_read_ahead_throughput: uint32
    wki502_num_mailslot_buffers: uint32
    wki502_num_srv_announce_buffers: uint32
    wki502_max_illegal_datagram_events: uint32
    wki502_illegal_datagram_event_reset_frequency: uint32
    wki502_log_election_packets: int32
    wki502_use_opportunistic_locking: int32
    wki502_use_unlock_behind: int32
    wki502_use_close_behind: int32
    wki502_buf_named_pipes: int32
    wki502_use_lock_read_unlock: int32
    wki502_utilize_nt_caching: int32
    wki502_use_raw_read: int32
    wki502_use_raw_write: int32
    wki502_use_write_raw_data: int32
    wki502_use_encryption: int32
    wki502_buf_files_deny_write: int32
    wki502_buf_read_only_files: int32
    wki502_force_core_create_mode: int32
    wki502_use_512_byte_max_transfer: int32
struct WKSTA_INFO_502
{
    uint wki502_char_wait;
    uint wki502_collection_time;
    uint wki502_maximum_collection_count;
    uint wki502_keep_conn;
    uint wki502_max_cmds;
    uint wki502_sess_timeout;
    uint wki502_siz_char_buf;
    uint wki502_max_threads;
    uint wki502_lock_quota;
    uint wki502_lock_increment;
    uint wki502_lock_maximum;
    uint wki502_pipe_increment;
    uint wki502_pipe_maximum;
    uint wki502_cache_file_timeout;
    uint wki502_dormant_file_limit;
    uint wki502_read_ahead_throughput;
    uint wki502_num_mailslot_buffers;
    uint wki502_num_srv_announce_buffers;
    uint wki502_max_illegal_datagram_events;
    uint wki502_illegal_datagram_event_reset_frequency;
    int wki502_log_election_packets;
    int wki502_use_opportunistic_locking;
    int wki502_use_unlock_behind;
    int wki502_use_close_behind;
    int wki502_buf_named_pipes;
    int wki502_use_lock_read_unlock;
    int wki502_utilize_nt_caching;
    int wki502_use_raw_read;
    int wki502_use_raw_write;
    int wki502_use_write_raw_data;
    int wki502_use_encryption;
    int wki502_buf_files_deny_write;
    int wki502_buf_read_only_files;
    int wki502_force_core_create_mode;
    int wki502_use_512_byte_max_transfer;
}

HSP用 定義

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

; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; WKSTA_INFO_502 サイズ: 140 バイト(x64)
dim st, 35    ; 4byte整数×35(構造体サイズ 140 / 4 切り上げ)
; wki502_char_wait : DWORD (+0, 4byte)  st.0 = 値  /  値 = st.0   (lpoke/lpeek も可)
; wki502_collection_time : DWORD (+4, 4byte)  st.1 = 値  /  値 = st.1   (lpoke/lpeek も可)
; wki502_maximum_collection_count : DWORD (+8, 4byte)  st.2 = 値  /  値 = st.2   (lpoke/lpeek も可)
; wki502_keep_conn : DWORD (+12, 4byte)  st.3 = 値  /  値 = st.3   (lpoke/lpeek も可)
; wki502_max_cmds : DWORD (+16, 4byte)  st.4 = 値  /  値 = st.4   (lpoke/lpeek も可)
; wki502_sess_timeout : DWORD (+20, 4byte)  st.5 = 値  /  値 = st.5   (lpoke/lpeek も可)
; wki502_siz_char_buf : DWORD (+24, 4byte)  st.6 = 値  /  値 = st.6   (lpoke/lpeek も可)
; wki502_max_threads : DWORD (+28, 4byte)  st.7 = 値  /  値 = st.7   (lpoke/lpeek も可)
; wki502_lock_quota : DWORD (+32, 4byte)  st.8 = 値  /  値 = st.8   (lpoke/lpeek も可)
; wki502_lock_increment : DWORD (+36, 4byte)  st.9 = 値  /  値 = st.9   (lpoke/lpeek も可)
; wki502_lock_maximum : DWORD (+40, 4byte)  st.10 = 値  /  値 = st.10   (lpoke/lpeek も可)
; wki502_pipe_increment : DWORD (+44, 4byte)  st.11 = 値  /  値 = st.11   (lpoke/lpeek も可)
; wki502_pipe_maximum : DWORD (+48, 4byte)  st.12 = 値  /  値 = st.12   (lpoke/lpeek も可)
; wki502_cache_file_timeout : DWORD (+52, 4byte)  st.13 = 値  /  値 = st.13   (lpoke/lpeek も可)
; wki502_dormant_file_limit : DWORD (+56, 4byte)  st.14 = 値  /  値 = st.14   (lpoke/lpeek も可)
; wki502_read_ahead_throughput : DWORD (+60, 4byte)  st.15 = 値  /  値 = st.15   (lpoke/lpeek も可)
; wki502_num_mailslot_buffers : DWORD (+64, 4byte)  st.16 = 値  /  値 = st.16   (lpoke/lpeek も可)
; wki502_num_srv_announce_buffers : DWORD (+68, 4byte)  st.17 = 値  /  値 = st.17   (lpoke/lpeek も可)
; wki502_max_illegal_datagram_events : DWORD (+72, 4byte)  st.18 = 値  /  値 = st.18   (lpoke/lpeek も可)
; wki502_illegal_datagram_event_reset_frequency : DWORD (+76, 4byte)  st.19 = 値  /  値 = st.19   (lpoke/lpeek も可)
; wki502_log_election_packets : BOOL (+80, 4byte)  st.20 = 値  /  値 = st.20   (lpoke/lpeek も可)
; wki502_use_opportunistic_locking : BOOL (+84, 4byte)  st.21 = 値  /  値 = st.21   (lpoke/lpeek も可)
; wki502_use_unlock_behind : BOOL (+88, 4byte)  st.22 = 値  /  値 = st.22   (lpoke/lpeek も可)
; wki502_use_close_behind : BOOL (+92, 4byte)  st.23 = 値  /  値 = st.23   (lpoke/lpeek も可)
; wki502_buf_named_pipes : BOOL (+96, 4byte)  st.24 = 値  /  値 = st.24   (lpoke/lpeek も可)
; wki502_use_lock_read_unlock : BOOL (+100, 4byte)  st.25 = 値  /  値 = st.25   (lpoke/lpeek も可)
; wki502_utilize_nt_caching : BOOL (+104, 4byte)  st.26 = 値  /  値 = st.26   (lpoke/lpeek も可)
; wki502_use_raw_read : BOOL (+108, 4byte)  st.27 = 値  /  値 = st.27   (lpoke/lpeek も可)
; wki502_use_raw_write : BOOL (+112, 4byte)  st.28 = 値  /  値 = st.28   (lpoke/lpeek も可)
; wki502_use_write_raw_data : BOOL (+116, 4byte)  st.29 = 値  /  値 = st.29   (lpoke/lpeek も可)
; wki502_use_encryption : BOOL (+120, 4byte)  st.30 = 値  /  値 = st.30   (lpoke/lpeek も可)
; wki502_buf_files_deny_write : BOOL (+124, 4byte)  st.31 = 値  /  値 = st.31   (lpoke/lpeek も可)
; wki502_buf_read_only_files : BOOL (+128, 4byte)  st.32 = 値  /  値 = st.32   (lpoke/lpeek も可)
; wki502_force_core_create_mode : BOOL (+132, 4byte)  st.33 = 値  /  値 = st.33   (lpoke/lpeek も可)
; wki502_use_512_byte_max_transfer : BOOL (+136, 4byte)  st.34 = 値  /  値 = st.34   (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。
; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global WKSTA_INFO_502
    #field int wki502_char_wait
    #field int wki502_collection_time
    #field int wki502_maximum_collection_count
    #field int wki502_keep_conn
    #field int wki502_max_cmds
    #field int wki502_sess_timeout
    #field int wki502_siz_char_buf
    #field int wki502_max_threads
    #field int wki502_lock_quota
    #field int wki502_lock_increment
    #field int wki502_lock_maximum
    #field int wki502_pipe_increment
    #field int wki502_pipe_maximum
    #field int wki502_cache_file_timeout
    #field int wki502_dormant_file_limit
    #field int wki502_read_ahead_throughput
    #field int wki502_num_mailslot_buffers
    #field int wki502_num_srv_announce_buffers
    #field int wki502_max_illegal_datagram_events
    #field int wki502_illegal_datagram_event_reset_frequency
    #field bool wki502_log_election_packets
    #field bool wki502_use_opportunistic_locking
    #field bool wki502_use_unlock_behind
    #field bool wki502_use_close_behind
    #field bool wki502_buf_named_pipes
    #field bool wki502_use_lock_read_unlock
    #field bool wki502_utilize_nt_caching
    #field bool wki502_use_raw_read
    #field bool wki502_use_raw_write
    #field bool wki502_use_write_raw_data
    #field bool wki502_use_encryption
    #field bool wki502_buf_files_deny_write
    #field bool wki502_buf_read_only_files
    #field bool wki502_force_core_create_mode
    #field bool wki502_use_512_byte_max_transfer
#endstruct

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