ホーム › NetworkManagement.WiFi › DOT11_EXTSTA_ATTRIBUTES
DOT11_EXTSTA_ATTRIBUTES
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| Header | NDIS_OBJECT_HEADER | 4 | +0 | +0 | NDIS オブジェクトのバージョン情報を含むヘッダー。 |
| uScanSSIDListSize | DWORD | 4 | +4 | +4 | スキャン SSID リストの最大サイズを表す。 |
| uDesiredBSSIDListSize | DWORD | 4 | +8 | +8 | 希望 BSSID リストの最大サイズを表す。 |
| uDesiredSSIDListSize | DWORD | 4 | +12 | +12 | 希望 SSID リストの最大サイズを表す。 |
| uExcludedMacAddressListSize | DWORD | 4 | +16 | +16 | 除外 MAC アドレスリストの最大サイズを表す。 |
| uPrivacyExemptionListSize | DWORD | 4 | +20 | +20 | プライバシー免除リストの最大サイズを表す。 |
| uKeyMappingTableSize | DWORD | 4 | +24 | +24 | 鍵マッピングテーブルの最大サイズを表す。 |
| uDefaultKeyTableSize | DWORD | 4 | +28 | +28 | 既定鍵テーブルの最大サイズを表す。 |
| uWEPKeyValueMaxLength | DWORD | 4 | +32 | +32 | WEP 鍵値の最大長を表す。 |
| uPMKIDCacheSize | DWORD | 4 | +36 | +36 | PMKID キャッシュの最大サイズを表す。 |
| uMaxNumPerSTADefaultKeyTables | DWORD | 4 | +40 | +40 | STA ごとの既定鍵テーブル最大数を表す。 |
| bStrictlyOrderedServiceClassImplemented | BOOLEAN | 1 | +44 | +44 | 厳密順序サービスクラス対応の有無を示すフラグ。 |
| ucSupportedQoSProtocolFlags | BYTE | 1 | +45 | +45 | 対応する QoS プロトコルのフラグビットを表す。 |
| bSafeModeImplemented | BOOLEAN | 1 | +46 | +46 | セーフモード対応の有無を示すフラグ。 |
| uNumSupportedCountryOrRegionStrings | DWORD | 4 | +48 | +48 | 対応する国/地域文字列の個数を表す。 |
| pSupportedCountryOrRegionStrings | BYTE* | 8/4 | +56 | +52 | 対応国/地域文字列の配列を指すポインタ。 |
| uInfraNumSupportedUcastAlgoPairs | DWORD | 4 | +64 | +56 | インフラ用ユニキャスト対応アルゴリズムペア数を表す。 |
| pInfraSupportedUcastAlgoPairs | DOT11_AUTH_CIPHER_PAIR* | 8/4 | +72 | +60 | インフラ用ユニキャスト認証/暗号ペア配列へのポインタ。 |
| uInfraNumSupportedMcastAlgoPairs | DWORD | 4 | +80 | +64 | インフラ用マルチキャスト対応アルゴリズムペア数を表す。 |
| pInfraSupportedMcastAlgoPairs | DOT11_AUTH_CIPHER_PAIR* | 8/4 | +88 | +68 | インフラ用マルチキャスト認証/暗号ペア配列へのポインタ。 |
| uAdhocNumSupportedUcastAlgoPairs | DWORD | 4 | +96 | +72 | アドホック用ユニキャスト対応アルゴリズムペア数を表す。 |
| pAdhocSupportedUcastAlgoPairs | DOT11_AUTH_CIPHER_PAIR* | 8/4 | +104 | +76 | アドホック用ユニキャスト認証/暗号ペア配列へのポインタ。 |
| uAdhocNumSupportedMcastAlgoPairs | DWORD | 4 | +112 | +80 | アドホック用マルチキャスト対応アルゴリズムペア数を表す。 |
| pAdhocSupportedMcastAlgoPairs | DOT11_AUTH_CIPHER_PAIR* | 8/4 | +120 | +84 | アドホック用マルチキャスト認証/暗号ペア配列へのポインタ。 |
| bAutoPowerSaveMode | BOOLEAN | 1 | +128 | +88 | 自動省電力モード対応の有無を示すフラグ。 |
| uMaxNetworkOffloadListSize | DWORD | 4 | +132 | +92 | ネットワークオフロードリストの最大サイズを表す。 |
| bMFPCapable | BOOLEAN | 1 | +136 | +96 | 管理フレーム保護(MFP)対応の有無を示すフラグ。 |
| uInfraNumSupportedMcastMgmtAlgoPairs | DWORD | 4 | +140 | +100 | インフラ用マルチキャスト管理アルゴリズムペア数を表す。 |
| pInfraSupportedMcastMgmtAlgoPairs | DOT11_AUTH_CIPHER_PAIR* | 8/4 | +144 | +104 | インフラ用マルチキャスト管理認証/暗号ペア配列へのポインタ。 |
| bNeighborReportSupported | BOOLEAN | 1 | +152 | +108 | 近隣レポート対応の有無を示すフラグ。 |
| bAPChannelReportSupported | BOOLEAN | 1 | +153 | +109 | AP チャネルレポート対応の有無を示すフラグ。 |
| bActionFramesSupported | BOOLEAN | 1 | +154 | +110 | アクションフレーム対応の有無を示すフラグ。 |
| bANQPQueryOffloadSupported | BOOLEAN | 1 | +155 | +111 | ANQP クエリオフロード対応の有無を示すフラグ。 |
| bHESSIDConnectionSupported | BOOLEAN | 1 | +156 | +112 | HESSID 接続対応の有無を示すフラグ。 |
各言語での定義
#include <windows.h>
// NDIS_OBJECT_HEADER (x64 4 / x86 4 バイト)
typedef struct NDIS_OBJECT_HEADER {
BYTE Type;
BYTE Revision;
WORD Size;
} NDIS_OBJECT_HEADER;
// DOT11_EXTSTA_ATTRIBUTES (x64 160 / x86 116 バイト)
typedef struct DOT11_EXTSTA_ATTRIBUTES {
NDIS_OBJECT_HEADER Header;
DWORD uScanSSIDListSize;
DWORD uDesiredBSSIDListSize;
DWORD uDesiredSSIDListSize;
DWORD uExcludedMacAddressListSize;
DWORD uPrivacyExemptionListSize;
DWORD uKeyMappingTableSize;
DWORD uDefaultKeyTableSize;
DWORD uWEPKeyValueMaxLength;
DWORD uPMKIDCacheSize;
DWORD uMaxNumPerSTADefaultKeyTables;
BOOLEAN bStrictlyOrderedServiceClassImplemented;
BYTE ucSupportedQoSProtocolFlags;
BOOLEAN bSafeModeImplemented;
DWORD uNumSupportedCountryOrRegionStrings;
BYTE* pSupportedCountryOrRegionStrings;
DWORD uInfraNumSupportedUcastAlgoPairs;
DOT11_AUTH_CIPHER_PAIR* pInfraSupportedUcastAlgoPairs;
DWORD uInfraNumSupportedMcastAlgoPairs;
DOT11_AUTH_CIPHER_PAIR* pInfraSupportedMcastAlgoPairs;
DWORD uAdhocNumSupportedUcastAlgoPairs;
DOT11_AUTH_CIPHER_PAIR* pAdhocSupportedUcastAlgoPairs;
DWORD uAdhocNumSupportedMcastAlgoPairs;
DOT11_AUTH_CIPHER_PAIR* pAdhocSupportedMcastAlgoPairs;
BOOLEAN bAutoPowerSaveMode;
DWORD uMaxNetworkOffloadListSize;
BOOLEAN bMFPCapable;
DWORD uInfraNumSupportedMcastMgmtAlgoPairs;
DOT11_AUTH_CIPHER_PAIR* pInfraSupportedMcastMgmtAlgoPairs;
BOOLEAN bNeighborReportSupported;
BOOLEAN bAPChannelReportSupported;
BOOLEAN bActionFramesSupported;
BOOLEAN bANQPQueryOffloadSupported;
BOOLEAN bHESSIDConnectionSupported;
} DOT11_EXTSTA_ATTRIBUTES;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct NDIS_OBJECT_HEADER
{
public byte Type;
public byte Revision;
public ushort Size;
}
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct DOT11_EXTSTA_ATTRIBUTES
{
public NDIS_OBJECT_HEADER Header;
public uint uScanSSIDListSize;
public uint uDesiredBSSIDListSize;
public uint uDesiredSSIDListSize;
public uint uExcludedMacAddressListSize;
public uint uPrivacyExemptionListSize;
public uint uKeyMappingTableSize;
public uint uDefaultKeyTableSize;
public uint uWEPKeyValueMaxLength;
public uint uPMKIDCacheSize;
public uint uMaxNumPerSTADefaultKeyTables;
[MarshalAs(UnmanagedType.U1)] public bool bStrictlyOrderedServiceClassImplemented;
public byte ucSupportedQoSProtocolFlags;
[MarshalAs(UnmanagedType.U1)] public bool bSafeModeImplemented;
public uint uNumSupportedCountryOrRegionStrings;
public IntPtr pSupportedCountryOrRegionStrings;
public uint uInfraNumSupportedUcastAlgoPairs;
public IntPtr pInfraSupportedUcastAlgoPairs;
public uint uInfraNumSupportedMcastAlgoPairs;
public IntPtr pInfraSupportedMcastAlgoPairs;
public uint uAdhocNumSupportedUcastAlgoPairs;
public IntPtr pAdhocSupportedUcastAlgoPairs;
public uint uAdhocNumSupportedMcastAlgoPairs;
public IntPtr pAdhocSupportedMcastAlgoPairs;
[MarshalAs(UnmanagedType.U1)] public bool bAutoPowerSaveMode;
public uint uMaxNetworkOffloadListSize;
[MarshalAs(UnmanagedType.U1)] public bool bMFPCapable;
public uint uInfraNumSupportedMcastMgmtAlgoPairs;
public IntPtr pInfraSupportedMcastMgmtAlgoPairs;
[MarshalAs(UnmanagedType.U1)] public bool bNeighborReportSupported;
[MarshalAs(UnmanagedType.U1)] public bool bAPChannelReportSupported;
[MarshalAs(UnmanagedType.U1)] public bool bActionFramesSupported;
[MarshalAs(UnmanagedType.U1)] public bool bANQPQueryOffloadSupported;
[MarshalAs(UnmanagedType.U1)] public bool bHESSIDConnectionSupported;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure NDIS_OBJECT_HEADER
Public Type As Byte
Public Revision As Byte
Public Size As UShort
End Structure
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure DOT11_EXTSTA_ATTRIBUTES
Public Header As NDIS_OBJECT_HEADER
Public uScanSSIDListSize As UInteger
Public uDesiredBSSIDListSize As UInteger
Public uDesiredSSIDListSize As UInteger
Public uExcludedMacAddressListSize As UInteger
Public uPrivacyExemptionListSize As UInteger
Public uKeyMappingTableSize As UInteger
Public uDefaultKeyTableSize As UInteger
Public uWEPKeyValueMaxLength As UInteger
Public uPMKIDCacheSize As UInteger
Public uMaxNumPerSTADefaultKeyTables As UInteger
<MarshalAs(UnmanagedType.U1)> Public bStrictlyOrderedServiceClassImplemented As Boolean
Public ucSupportedQoSProtocolFlags As Byte
<MarshalAs(UnmanagedType.U1)> Public bSafeModeImplemented As Boolean
Public uNumSupportedCountryOrRegionStrings As UInteger
Public pSupportedCountryOrRegionStrings As IntPtr
Public uInfraNumSupportedUcastAlgoPairs As UInteger
Public pInfraSupportedUcastAlgoPairs As IntPtr
Public uInfraNumSupportedMcastAlgoPairs As UInteger
Public pInfraSupportedMcastAlgoPairs As IntPtr
Public uAdhocNumSupportedUcastAlgoPairs As UInteger
Public pAdhocSupportedUcastAlgoPairs As IntPtr
Public uAdhocNumSupportedMcastAlgoPairs As UInteger
Public pAdhocSupportedMcastAlgoPairs As IntPtr
<MarshalAs(UnmanagedType.U1)> Public bAutoPowerSaveMode As Boolean
Public uMaxNetworkOffloadListSize As UInteger
<MarshalAs(UnmanagedType.U1)> Public bMFPCapable As Boolean
Public uInfraNumSupportedMcastMgmtAlgoPairs As UInteger
Public pInfraSupportedMcastMgmtAlgoPairs As IntPtr
<MarshalAs(UnmanagedType.U1)> Public bNeighborReportSupported As Boolean
<MarshalAs(UnmanagedType.U1)> Public bAPChannelReportSupported As Boolean
<MarshalAs(UnmanagedType.U1)> Public bActionFramesSupported As Boolean
<MarshalAs(UnmanagedType.U1)> Public bANQPQueryOffloadSupported As Boolean
<MarshalAs(UnmanagedType.U1)> Public bHESSIDConnectionSupported As Boolean
End Structureimport ctypes
from ctypes import wintypes
class NDIS_OBJECT_HEADER(ctypes.Structure):
_fields_ = [
("Type", ctypes.c_ubyte),
("Revision", ctypes.c_ubyte),
("Size", ctypes.c_ushort),
]
class DOT11_EXTSTA_ATTRIBUTES(ctypes.Structure):
_fields_ = [
("Header", NDIS_OBJECT_HEADER),
("uScanSSIDListSize", wintypes.DWORD),
("uDesiredBSSIDListSize", wintypes.DWORD),
("uDesiredSSIDListSize", wintypes.DWORD),
("uExcludedMacAddressListSize", wintypes.DWORD),
("uPrivacyExemptionListSize", wintypes.DWORD),
("uKeyMappingTableSize", wintypes.DWORD),
("uDefaultKeyTableSize", wintypes.DWORD),
("uWEPKeyValueMaxLength", wintypes.DWORD),
("uPMKIDCacheSize", wintypes.DWORD),
("uMaxNumPerSTADefaultKeyTables", wintypes.DWORD),
("bStrictlyOrderedServiceClassImplemented", ctypes.c_byte),
("ucSupportedQoSProtocolFlags", ctypes.c_ubyte),
("bSafeModeImplemented", ctypes.c_byte),
("uNumSupportedCountryOrRegionStrings", wintypes.DWORD),
("pSupportedCountryOrRegionStrings", ctypes.c_void_p),
("uInfraNumSupportedUcastAlgoPairs", wintypes.DWORD),
("pInfraSupportedUcastAlgoPairs", ctypes.c_void_p),
("uInfraNumSupportedMcastAlgoPairs", wintypes.DWORD),
("pInfraSupportedMcastAlgoPairs", ctypes.c_void_p),
("uAdhocNumSupportedUcastAlgoPairs", wintypes.DWORD),
("pAdhocSupportedUcastAlgoPairs", ctypes.c_void_p),
("uAdhocNumSupportedMcastAlgoPairs", wintypes.DWORD),
("pAdhocSupportedMcastAlgoPairs", ctypes.c_void_p),
("bAutoPowerSaveMode", ctypes.c_byte),
("uMaxNetworkOffloadListSize", wintypes.DWORD),
("bMFPCapable", ctypes.c_byte),
("uInfraNumSupportedMcastMgmtAlgoPairs", wintypes.DWORD),
("pInfraSupportedMcastMgmtAlgoPairs", ctypes.c_void_p),
("bNeighborReportSupported", ctypes.c_byte),
("bAPChannelReportSupported", ctypes.c_byte),
("bActionFramesSupported", ctypes.c_byte),
("bANQPQueryOffloadSupported", ctypes.c_byte),
("bHESSIDConnectionSupported", ctypes.c_byte),
]#[repr(C)]
pub struct NDIS_OBJECT_HEADER {
pub Type: u8,
pub Revision: u8,
pub Size: u16,
}
#[repr(C)]
pub struct DOT11_EXTSTA_ATTRIBUTES {
pub Header: NDIS_OBJECT_HEADER,
pub uScanSSIDListSize: u32,
pub uDesiredBSSIDListSize: u32,
pub uDesiredSSIDListSize: u32,
pub uExcludedMacAddressListSize: u32,
pub uPrivacyExemptionListSize: u32,
pub uKeyMappingTableSize: u32,
pub uDefaultKeyTableSize: u32,
pub uWEPKeyValueMaxLength: u32,
pub uPMKIDCacheSize: u32,
pub uMaxNumPerSTADefaultKeyTables: u32,
pub bStrictlyOrderedServiceClassImplemented: u8,
pub ucSupportedQoSProtocolFlags: u8,
pub bSafeModeImplemented: u8,
pub uNumSupportedCountryOrRegionStrings: u32,
pub pSupportedCountryOrRegionStrings: *mut core::ffi::c_void,
pub uInfraNumSupportedUcastAlgoPairs: u32,
pub pInfraSupportedUcastAlgoPairs: *mut core::ffi::c_void,
pub uInfraNumSupportedMcastAlgoPairs: u32,
pub pInfraSupportedMcastAlgoPairs: *mut core::ffi::c_void,
pub uAdhocNumSupportedUcastAlgoPairs: u32,
pub pAdhocSupportedUcastAlgoPairs: *mut core::ffi::c_void,
pub uAdhocNumSupportedMcastAlgoPairs: u32,
pub pAdhocSupportedMcastAlgoPairs: *mut core::ffi::c_void,
pub bAutoPowerSaveMode: u8,
pub uMaxNetworkOffloadListSize: u32,
pub bMFPCapable: u8,
pub uInfraNumSupportedMcastMgmtAlgoPairs: u32,
pub pInfraSupportedMcastMgmtAlgoPairs: *mut core::ffi::c_void,
pub bNeighborReportSupported: u8,
pub bAPChannelReportSupported: u8,
pub bActionFramesSupported: u8,
pub bANQPQueryOffloadSupported: u8,
pub bHESSIDConnectionSupported: u8,
}import "golang.org/x/sys/windows"
type NDIS_OBJECT_HEADER struct {
Type byte
Revision byte
Size uint16
}
type DOT11_EXTSTA_ATTRIBUTES struct {
Header NDIS_OBJECT_HEADER
uScanSSIDListSize uint32
uDesiredBSSIDListSize uint32
uDesiredSSIDListSize uint32
uExcludedMacAddressListSize uint32
uPrivacyExemptionListSize uint32
uKeyMappingTableSize uint32
uDefaultKeyTableSize uint32
uWEPKeyValueMaxLength uint32
uPMKIDCacheSize uint32
uMaxNumPerSTADefaultKeyTables uint32
bStrictlyOrderedServiceClassImplemented byte
ucSupportedQoSProtocolFlags byte
bSafeModeImplemented byte
uNumSupportedCountryOrRegionStrings uint32
pSupportedCountryOrRegionStrings uintptr
uInfraNumSupportedUcastAlgoPairs uint32
pInfraSupportedUcastAlgoPairs uintptr
uInfraNumSupportedMcastAlgoPairs uint32
pInfraSupportedMcastAlgoPairs uintptr
uAdhocNumSupportedUcastAlgoPairs uint32
pAdhocSupportedUcastAlgoPairs uintptr
uAdhocNumSupportedMcastAlgoPairs uint32
pAdhocSupportedMcastAlgoPairs uintptr
bAutoPowerSaveMode byte
uMaxNetworkOffloadListSize uint32
bMFPCapable byte
uInfraNumSupportedMcastMgmtAlgoPairs uint32
pInfraSupportedMcastMgmtAlgoPairs uintptr
bNeighborReportSupported byte
bAPChannelReportSupported byte
bActionFramesSupported byte
bANQPQueryOffloadSupported byte
bHESSIDConnectionSupported byte
}type
NDIS_OBJECT_HEADER = record
Type: Byte;
Revision: Byte;
Size: Word;
end;
DOT11_EXTSTA_ATTRIBUTES = record
Header: NDIS_OBJECT_HEADER;
uScanSSIDListSize: DWORD;
uDesiredBSSIDListSize: DWORD;
uDesiredSSIDListSize: DWORD;
uExcludedMacAddressListSize: DWORD;
uPrivacyExemptionListSize: DWORD;
uKeyMappingTableSize: DWORD;
uDefaultKeyTableSize: DWORD;
uWEPKeyValueMaxLength: DWORD;
uPMKIDCacheSize: DWORD;
uMaxNumPerSTADefaultKeyTables: DWORD;
bStrictlyOrderedServiceClassImplemented: ByteBool;
ucSupportedQoSProtocolFlags: Byte;
bSafeModeImplemented: ByteBool;
uNumSupportedCountryOrRegionStrings: DWORD;
pSupportedCountryOrRegionStrings: Pointer;
uInfraNumSupportedUcastAlgoPairs: DWORD;
pInfraSupportedUcastAlgoPairs: Pointer;
uInfraNumSupportedMcastAlgoPairs: DWORD;
pInfraSupportedMcastAlgoPairs: Pointer;
uAdhocNumSupportedUcastAlgoPairs: DWORD;
pAdhocSupportedUcastAlgoPairs: Pointer;
uAdhocNumSupportedMcastAlgoPairs: DWORD;
pAdhocSupportedMcastAlgoPairs: Pointer;
bAutoPowerSaveMode: ByteBool;
uMaxNetworkOffloadListSize: DWORD;
bMFPCapable: ByteBool;
uInfraNumSupportedMcastMgmtAlgoPairs: DWORD;
pInfraSupportedMcastMgmtAlgoPairs: Pointer;
bNeighborReportSupported: ByteBool;
bAPChannelReportSupported: ByteBool;
bActionFramesSupported: ByteBool;
bANQPQueryOffloadSupported: ByteBool;
bHESSIDConnectionSupported: ByteBool;
end;const NDIS_OBJECT_HEADER = extern struct {
Type: u8,
Revision: u8,
Size: u16,
};
const DOT11_EXTSTA_ATTRIBUTES = extern struct {
Header: NDIS_OBJECT_HEADER,
uScanSSIDListSize: u32,
uDesiredBSSIDListSize: u32,
uDesiredSSIDListSize: u32,
uExcludedMacAddressListSize: u32,
uPrivacyExemptionListSize: u32,
uKeyMappingTableSize: u32,
uDefaultKeyTableSize: u32,
uWEPKeyValueMaxLength: u32,
uPMKIDCacheSize: u32,
uMaxNumPerSTADefaultKeyTables: u32,
bStrictlyOrderedServiceClassImplemented: u8,
ucSupportedQoSProtocolFlags: u8,
bSafeModeImplemented: u8,
uNumSupportedCountryOrRegionStrings: u32,
pSupportedCountryOrRegionStrings: ?*anyopaque,
uInfraNumSupportedUcastAlgoPairs: u32,
pInfraSupportedUcastAlgoPairs: ?*anyopaque,
uInfraNumSupportedMcastAlgoPairs: u32,
pInfraSupportedMcastAlgoPairs: ?*anyopaque,
uAdhocNumSupportedUcastAlgoPairs: u32,
pAdhocSupportedUcastAlgoPairs: ?*anyopaque,
uAdhocNumSupportedMcastAlgoPairs: u32,
pAdhocSupportedMcastAlgoPairs: ?*anyopaque,
bAutoPowerSaveMode: u8,
uMaxNetworkOffloadListSize: u32,
bMFPCapable: u8,
uInfraNumSupportedMcastMgmtAlgoPairs: u32,
pInfraSupportedMcastMgmtAlgoPairs: ?*anyopaque,
bNeighborReportSupported: u8,
bAPChannelReportSupported: u8,
bActionFramesSupported: u8,
bANQPQueryOffloadSupported: u8,
bHESSIDConnectionSupported: u8,
};type
NDIS_OBJECT_HEADER {.bycopy.} = object
Type: uint8
Revision: uint8
Size: uint16
DOT11_EXTSTA_ATTRIBUTES {.bycopy.} = object
Header: NDIS_OBJECT_HEADER
uScanSSIDListSize: uint32
uDesiredBSSIDListSize: uint32
uDesiredSSIDListSize: uint32
uExcludedMacAddressListSize: uint32
uPrivacyExemptionListSize: uint32
uKeyMappingTableSize: uint32
uDefaultKeyTableSize: uint32
uWEPKeyValueMaxLength: uint32
uPMKIDCacheSize: uint32
uMaxNumPerSTADefaultKeyTables: uint32
bStrictlyOrderedServiceClassImplemented: uint8
ucSupportedQoSProtocolFlags: uint8
bSafeModeImplemented: uint8
uNumSupportedCountryOrRegionStrings: uint32
pSupportedCountryOrRegionStrings: pointer
uInfraNumSupportedUcastAlgoPairs: uint32
pInfraSupportedUcastAlgoPairs: pointer
uInfraNumSupportedMcastAlgoPairs: uint32
pInfraSupportedMcastAlgoPairs: pointer
uAdhocNumSupportedUcastAlgoPairs: uint32
pAdhocSupportedUcastAlgoPairs: pointer
uAdhocNumSupportedMcastAlgoPairs: uint32
pAdhocSupportedMcastAlgoPairs: pointer
bAutoPowerSaveMode: uint8
uMaxNetworkOffloadListSize: uint32
bMFPCapable: uint8
uInfraNumSupportedMcastMgmtAlgoPairs: uint32
pInfraSupportedMcastMgmtAlgoPairs: pointer
bNeighborReportSupported: uint8
bAPChannelReportSupported: uint8
bActionFramesSupported: uint8
bANQPQueryOffloadSupported: uint8
bHESSIDConnectionSupported: uint8struct NDIS_OBJECT_HEADER
{
ubyte Type;
ubyte Revision;
ushort Size;
}
struct DOT11_EXTSTA_ATTRIBUTES
{
NDIS_OBJECT_HEADER Header;
uint uScanSSIDListSize;
uint uDesiredBSSIDListSize;
uint uDesiredSSIDListSize;
uint uExcludedMacAddressListSize;
uint uPrivacyExemptionListSize;
uint uKeyMappingTableSize;
uint uDefaultKeyTableSize;
uint uWEPKeyValueMaxLength;
uint uPMKIDCacheSize;
uint uMaxNumPerSTADefaultKeyTables;
ubyte bStrictlyOrderedServiceClassImplemented;
ubyte ucSupportedQoSProtocolFlags;
ubyte bSafeModeImplemented;
uint uNumSupportedCountryOrRegionStrings;
void* pSupportedCountryOrRegionStrings;
uint uInfraNumSupportedUcastAlgoPairs;
void* pInfraSupportedUcastAlgoPairs;
uint uInfraNumSupportedMcastAlgoPairs;
void* pInfraSupportedMcastAlgoPairs;
uint uAdhocNumSupportedUcastAlgoPairs;
void* pAdhocSupportedUcastAlgoPairs;
uint uAdhocNumSupportedMcastAlgoPairs;
void* pAdhocSupportedMcastAlgoPairs;
ubyte bAutoPowerSaveMode;
uint uMaxNetworkOffloadListSize;
ubyte bMFPCapable;
uint uInfraNumSupportedMcastMgmtAlgoPairs;
void* pInfraSupportedMcastMgmtAlgoPairs;
ubyte bNeighborReportSupported;
ubyte bAPChannelReportSupported;
ubyte bActionFramesSupported;
ubyte bANQPQueryOffloadSupported;
ubyte bHESSIDConnectionSupported;
}HSP用 定義
HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x86 レイアウト)
; DOT11_EXTSTA_ATTRIBUTES サイズ: 116 バイト(x86)
dim st, 29 ; 4byte整数×29(構造体サイズ 116 / 4 切り上げ)
; Header : NDIS_OBJECT_HEADER (+0, 4byte) varptr(st)+0 を基点に操作(4byte:入れ子/配列)
; uScanSSIDListSize : DWORD (+4, 4byte) st.1 = 値 / 値 = st.1 (lpoke/lpeek も可)
; uDesiredBSSIDListSize : DWORD (+8, 4byte) st.2 = 値 / 値 = st.2 (lpoke/lpeek も可)
; uDesiredSSIDListSize : DWORD (+12, 4byte) st.3 = 値 / 値 = st.3 (lpoke/lpeek も可)
; uExcludedMacAddressListSize : DWORD (+16, 4byte) st.4 = 値 / 値 = st.4 (lpoke/lpeek も可)
; uPrivacyExemptionListSize : DWORD (+20, 4byte) st.5 = 値 / 値 = st.5 (lpoke/lpeek も可)
; uKeyMappingTableSize : DWORD (+24, 4byte) st.6 = 値 / 値 = st.6 (lpoke/lpeek も可)
; uDefaultKeyTableSize : DWORD (+28, 4byte) st.7 = 値 / 値 = st.7 (lpoke/lpeek も可)
; uWEPKeyValueMaxLength : DWORD (+32, 4byte) st.8 = 値 / 値 = st.8 (lpoke/lpeek も可)
; uPMKIDCacheSize : DWORD (+36, 4byte) st.9 = 値 / 値 = st.9 (lpoke/lpeek も可)
; uMaxNumPerSTADefaultKeyTables : DWORD (+40, 4byte) st.10 = 値 / 値 = st.10 (lpoke/lpeek も可)
; bStrictlyOrderedServiceClassImplemented : BOOLEAN (+44, 1byte) poke st,44,値 / 値 = peek(st,44)
; ucSupportedQoSProtocolFlags : BYTE (+45, 1byte) poke st,45,値 / 値 = peek(st,45)
; bSafeModeImplemented : BOOLEAN (+46, 1byte) poke st,46,値 / 値 = peek(st,46)
; uNumSupportedCountryOrRegionStrings : DWORD (+48, 4byte) st.12 = 値 / 値 = st.12 (lpoke/lpeek も可)
; pSupportedCountryOrRegionStrings : BYTE* (+52, 4byte) st.13 = 値 / 値 = st.13 (lpoke/lpeek も可)
; uInfraNumSupportedUcastAlgoPairs : DWORD (+56, 4byte) st.14 = 値 / 値 = st.14 (lpoke/lpeek も可)
; pInfraSupportedUcastAlgoPairs : DOT11_AUTH_CIPHER_PAIR* (+60, 4byte) varptr(st)+60 を基点に操作(4byte:入れ子/配列)
; uInfraNumSupportedMcastAlgoPairs : DWORD (+64, 4byte) st.16 = 値 / 値 = st.16 (lpoke/lpeek も可)
; pInfraSupportedMcastAlgoPairs : DOT11_AUTH_CIPHER_PAIR* (+68, 4byte) varptr(st)+68 を基点に操作(4byte:入れ子/配列)
; uAdhocNumSupportedUcastAlgoPairs : DWORD (+72, 4byte) st.18 = 値 / 値 = st.18 (lpoke/lpeek も可)
; pAdhocSupportedUcastAlgoPairs : DOT11_AUTH_CIPHER_PAIR* (+76, 4byte) varptr(st)+76 を基点に操作(4byte:入れ子/配列)
; uAdhocNumSupportedMcastAlgoPairs : DWORD (+80, 4byte) st.20 = 値 / 値 = st.20 (lpoke/lpeek も可)
; pAdhocSupportedMcastAlgoPairs : DOT11_AUTH_CIPHER_PAIR* (+84, 4byte) varptr(st)+84 を基点に操作(4byte:入れ子/配列)
; bAutoPowerSaveMode : BOOLEAN (+88, 1byte) poke st,88,値 / 値 = peek(st,88)
; uMaxNetworkOffloadListSize : DWORD (+92, 4byte) st.23 = 値 / 値 = st.23 (lpoke/lpeek も可)
; bMFPCapable : BOOLEAN (+96, 1byte) poke st,96,値 / 値 = peek(st,96)
; uInfraNumSupportedMcastMgmtAlgoPairs : DWORD (+100, 4byte) st.25 = 値 / 値 = st.25 (lpoke/lpeek も可)
; pInfraSupportedMcastMgmtAlgoPairs : DOT11_AUTH_CIPHER_PAIR* (+104, 4byte) varptr(st)+104 を基点に操作(4byte:入れ子/配列)
; bNeighborReportSupported : BOOLEAN (+108, 1byte) poke st,108,値 / 値 = peek(st,108)
; bAPChannelReportSupported : BOOLEAN (+109, 1byte) poke st,109,値 / 値 = peek(st,109)
; bActionFramesSupported : BOOLEAN (+110, 1byte) poke st,110,値 / 値 = peek(st,110)
; bANQPQueryOffloadSupported : BOOLEAN (+111, 1byte) poke st,111,値 / 値 = peek(st,111)
; bHESSIDConnectionSupported : BOOLEAN (+112, 1byte) poke st,112,値 / 値 = peek(st,112)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; DOT11_EXTSTA_ATTRIBUTES サイズ: 160 バイト(x64)
dim st, 40 ; 4byte整数×40(構造体サイズ 160 / 4 切り上げ)
; Header : NDIS_OBJECT_HEADER (+0, 4byte) varptr(st)+0 を基点に操作(4byte:入れ子/配列)
; uScanSSIDListSize : DWORD (+4, 4byte) st.1 = 値 / 値 = st.1 (lpoke/lpeek も可)
; uDesiredBSSIDListSize : DWORD (+8, 4byte) st.2 = 値 / 値 = st.2 (lpoke/lpeek も可)
; uDesiredSSIDListSize : DWORD (+12, 4byte) st.3 = 値 / 値 = st.3 (lpoke/lpeek も可)
; uExcludedMacAddressListSize : DWORD (+16, 4byte) st.4 = 値 / 値 = st.4 (lpoke/lpeek も可)
; uPrivacyExemptionListSize : DWORD (+20, 4byte) st.5 = 値 / 値 = st.5 (lpoke/lpeek も可)
; uKeyMappingTableSize : DWORD (+24, 4byte) st.6 = 値 / 値 = st.6 (lpoke/lpeek も可)
; uDefaultKeyTableSize : DWORD (+28, 4byte) st.7 = 値 / 値 = st.7 (lpoke/lpeek も可)
; uWEPKeyValueMaxLength : DWORD (+32, 4byte) st.8 = 値 / 値 = st.8 (lpoke/lpeek も可)
; uPMKIDCacheSize : DWORD (+36, 4byte) st.9 = 値 / 値 = st.9 (lpoke/lpeek も可)
; uMaxNumPerSTADefaultKeyTables : DWORD (+40, 4byte) st.10 = 値 / 値 = st.10 (lpoke/lpeek も可)
; bStrictlyOrderedServiceClassImplemented : BOOLEAN (+44, 1byte) poke st,44,値 / 値 = peek(st,44)
; ucSupportedQoSProtocolFlags : BYTE (+45, 1byte) poke st,45,値 / 値 = peek(st,45)
; bSafeModeImplemented : BOOLEAN (+46, 1byte) poke st,46,値 / 値 = peek(st,46)
; uNumSupportedCountryOrRegionStrings : DWORD (+48, 4byte) st.12 = 値 / 値 = st.12 (lpoke/lpeek も可)
; pSupportedCountryOrRegionStrings : BYTE* (+56, 8byte) qpoke st,56,値 / qpeek(st,56) ※IronHSPのみ。3.7/3.8は lpoke st,56,下位 : lpoke st,60,上位
; uInfraNumSupportedUcastAlgoPairs : DWORD (+64, 4byte) st.16 = 値 / 値 = st.16 (lpoke/lpeek も可)
; pInfraSupportedUcastAlgoPairs : DOT11_AUTH_CIPHER_PAIR* (+72, 8byte) varptr(st)+72 を基点に操作(8byte:入れ子/配列)
; uInfraNumSupportedMcastAlgoPairs : DWORD (+80, 4byte) st.20 = 値 / 値 = st.20 (lpoke/lpeek も可)
; pInfraSupportedMcastAlgoPairs : DOT11_AUTH_CIPHER_PAIR* (+88, 8byte) varptr(st)+88 を基点に操作(8byte:入れ子/配列)
; uAdhocNumSupportedUcastAlgoPairs : DWORD (+96, 4byte) st.24 = 値 / 値 = st.24 (lpoke/lpeek も可)
; pAdhocSupportedUcastAlgoPairs : DOT11_AUTH_CIPHER_PAIR* (+104, 8byte) varptr(st)+104 を基点に操作(8byte:入れ子/配列)
; uAdhocNumSupportedMcastAlgoPairs : DWORD (+112, 4byte) st.28 = 値 / 値 = st.28 (lpoke/lpeek も可)
; pAdhocSupportedMcastAlgoPairs : DOT11_AUTH_CIPHER_PAIR* (+120, 8byte) varptr(st)+120 を基点に操作(8byte:入れ子/配列)
; bAutoPowerSaveMode : BOOLEAN (+128, 1byte) poke st,128,値 / 値 = peek(st,128)
; uMaxNetworkOffloadListSize : DWORD (+132, 4byte) st.33 = 値 / 値 = st.33 (lpoke/lpeek も可)
; bMFPCapable : BOOLEAN (+136, 1byte) poke st,136,値 / 値 = peek(st,136)
; uInfraNumSupportedMcastMgmtAlgoPairs : DWORD (+140, 4byte) st.35 = 値 / 値 = st.35 (lpoke/lpeek も可)
; pInfraSupportedMcastMgmtAlgoPairs : DOT11_AUTH_CIPHER_PAIR* (+144, 8byte) varptr(st)+144 を基点に操作(8byte:入れ子/配列)
; bNeighborReportSupported : BOOLEAN (+152, 1byte) poke st,152,値 / 値 = peek(st,152)
; bAPChannelReportSupported : BOOLEAN (+153, 1byte) poke st,153,値 / 値 = peek(st,153)
; bActionFramesSupported : BOOLEAN (+154, 1byte) poke st,154,値 / 値 = peek(st,154)
; bANQPQueryOffloadSupported : BOOLEAN (+155, 1byte) poke st,155,値 / 値 = peek(st,155)
; bHESSIDConnectionSupported : BOOLEAN (+156, 1byte) poke st,156,値 / 値 = peek(st,156)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
; ※GUID・入れ子構造体はデフォルト型でないため、依存する #defstruct を先に定義(下記に同梱)。
#defstruct global NDIS_OBJECT_HEADER
#field byte Type
#field byte Revision
#field short Size
#endstruct
#defstruct global DOT11_EXTSTA_ATTRIBUTES
#field NDIS_OBJECT_HEADER Header
#field int uScanSSIDListSize
#field int uDesiredBSSIDListSize
#field int uDesiredSSIDListSize
#field int uExcludedMacAddressListSize
#field int uPrivacyExemptionListSize
#field int uKeyMappingTableSize
#field int uDefaultKeyTableSize
#field int uWEPKeyValueMaxLength
#field int uPMKIDCacheSize
#field int uMaxNumPerSTADefaultKeyTables
#field bool1 bStrictlyOrderedServiceClassImplemented
#field byte ucSupportedQoSProtocolFlags
#field bool1 bSafeModeImplemented
#field int uNumSupportedCountryOrRegionStrings
#field intptr pSupportedCountryOrRegionStrings
#field int uInfraNumSupportedUcastAlgoPairs
#field intptr pInfraSupportedUcastAlgoPairs
#field int uInfraNumSupportedMcastAlgoPairs
#field intptr pInfraSupportedMcastAlgoPairs
#field int uAdhocNumSupportedUcastAlgoPairs
#field intptr pAdhocSupportedUcastAlgoPairs
#field int uAdhocNumSupportedMcastAlgoPairs
#field intptr pAdhocSupportedMcastAlgoPairs
#field bool1 bAutoPowerSaveMode
#field int uMaxNetworkOffloadListSize
#field bool1 bMFPCapable
#field int uInfraNumSupportedMcastMgmtAlgoPairs
#field intptr pInfraSupportedMcastMgmtAlgoPairs
#field bool1 bNeighborReportSupported
#field bool1 bAPChannelReportSupported
#field bool1 bActionFramesSupported
#field bool1 bANQPQueryOffloadSupported
#field bool1 bHESSIDConnectionSupported
#endstruct
stdim st, DOT11_EXTSTA_ATTRIBUTES ; NSTRUCT 変数を確保
st->uScanSSIDListSize = 100
mes "uScanSSIDListSize=" + st->uScanSSIDListSize