ホーム › NetworkManagement.Ndis › NDIS_802_11_CONFIGURATION_FH
NDIS_802_11_CONFIGURATION_FH
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| Length | DWORD | 4 | +0 | +0 | 本構造体の長さ(バイト)。 |
| HopPattern | DWORD | 4 | +4 | +4 | 周波数ホッピングのホップパターン番号。 |
| HopSet | DWORD | 4 | +8 | +8 | 周波数ホッピングのホップセット番号。 |
| DwellTime | DWORD | 4 | +12 | +12 | 各周波数に滞在する時間(Kマイクロ秒単位)。 |
各言語での定義
#include <windows.h>
// NDIS_802_11_CONFIGURATION_FH (x64 16 / x86 16 バイト)
typedef struct NDIS_802_11_CONFIGURATION_FH {
DWORD Length;
DWORD HopPattern;
DWORD HopSet;
DWORD DwellTime;
} NDIS_802_11_CONFIGURATION_FH;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct NDIS_802_11_CONFIGURATION_FH
{
public uint Length;
public uint HopPattern;
public uint HopSet;
public uint DwellTime;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure NDIS_802_11_CONFIGURATION_FH
Public Length As UInteger
Public HopPattern As UInteger
Public HopSet As UInteger
Public DwellTime As UInteger
End Structureimport ctypes
from ctypes import wintypes
class NDIS_802_11_CONFIGURATION_FH(ctypes.Structure):
_fields_ = [
("Length", wintypes.DWORD),
("HopPattern", wintypes.DWORD),
("HopSet", wintypes.DWORD),
("DwellTime", wintypes.DWORD),
]#[repr(C)]
pub struct NDIS_802_11_CONFIGURATION_FH {
pub Length: u32,
pub HopPattern: u32,
pub HopSet: u32,
pub DwellTime: u32,
}import "golang.org/x/sys/windows"
type NDIS_802_11_CONFIGURATION_FH struct {
Length uint32
HopPattern uint32
HopSet uint32
DwellTime uint32
}type
NDIS_802_11_CONFIGURATION_FH = record
Length: DWORD;
HopPattern: DWORD;
HopSet: DWORD;
DwellTime: DWORD;
end;const NDIS_802_11_CONFIGURATION_FH = extern struct {
Length: u32,
HopPattern: u32,
HopSet: u32,
DwellTime: u32,
};type
NDIS_802_11_CONFIGURATION_FH {.bycopy.} = object
Length: uint32
HopPattern: uint32
HopSet: uint32
DwellTime: uint32struct NDIS_802_11_CONFIGURATION_FH
{
uint Length;
uint HopPattern;
uint HopSet;
uint DwellTime;
}HSP用 定義
HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; NDIS_802_11_CONFIGURATION_FH サイズ: 16 バイト(x64)
dim st, 4 ; 4byte整数×4(構造体サイズ 16 / 4 切り上げ)
; Length : DWORD (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; HopPattern : DWORD (+4, 4byte) st.1 = 値 / 値 = st.1 (lpoke/lpeek も可)
; HopSet : DWORD (+8, 4byte) st.2 = 値 / 値 = st.2 (lpoke/lpeek も可)
; DwellTime : DWORD (+12, 4byte) st.3 = 値 / 値 = st.3 (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global NDIS_802_11_CONFIGURATION_FH
#field int Length
#field int HopPattern
#field int HopSet
#field int DwellTime
#endstruct
stdim st, NDIS_802_11_CONFIGURATION_FH ; NSTRUCT 変数を確保
st->Length = 100
mes "Length=" + st->Length