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_count メンバーで指定された数の文字を収集するかの、いずれか早い方まで処理します。
wki502_maximum_collection_countDWORD4+8+8コンピューターが文字デバイスリソースにデータを送信する前に収集する情報のバイト数です。ワークステーションは、指定されたバイト数を収集するか、wki502_collection_time メンバーで指定された時間だけ待機するかの、いずれか早い方まで処理します。
wki502_keep_connDWORD4+12+12サーバーのリソースへの非アクティブな接続をサーバーが維持する秒数です。
wki502_max_cmdsDWORD4+16+16ネットワークに同時に送信できるネットワークデバイスドライバーコマンドの数です。
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+40予約済みです。
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予約済みです。
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+104予約済みです。
wki502_use_raw_readBOOL4+108+108予約済みです。
wki502_use_raw_writeBOOL4+112+112予約済みです。
wki502_use_write_raw_dataBOOL4+116+116予約済みです。
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予約済みです。

公式ドキュメント

            <b>WKSTA_INFO_502</b> 構造体は廃止されています。この構造体には、ワークステーション環境に関する情報が格納されます。
出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)

各言語での定義

#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