ホーム › NetworkManagement.WiFi › DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX
DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| bEnabled | BOOLEAN | 1 | +0 | +0 | 受信機能テストを有効にするかを示す真偽値。 |
| Dot11Band | DOT11_BAND | 4 | +4 | +4 | テスト対象の周波数帯。 |
| uChannel | DWORD | 4 | +8 | +8 | テストに使用するチャネル番号。 |
| PowerLevel | INT | 4 | +12 | +12 | 受信電力レベル。 |
各言語での定義
#include <windows.h>
// DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX (x64 16 / x86 16 バイト)
typedef struct DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX {
BOOLEAN bEnabled;
DOT11_BAND Dot11Band;
DWORD uChannel;
INT PowerLevel;
} DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX
{
[MarshalAs(UnmanagedType.U1)] public bool bEnabled;
public int Dot11Band;
public uint uChannel;
public int PowerLevel;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX
<MarshalAs(UnmanagedType.U1)> Public bEnabled As Boolean
Public Dot11Band As Integer
Public uChannel As UInteger
Public PowerLevel As Integer
End Structureimport ctypes
from ctypes import wintypes
class DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX(ctypes.Structure):
_fields_ = [
("bEnabled", ctypes.c_byte),
("Dot11Band", ctypes.c_int),
("uChannel", wintypes.DWORD),
("PowerLevel", ctypes.c_int),
]#[repr(C)]
pub struct DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX {
pub bEnabled: u8,
pub Dot11Band: i32,
pub uChannel: u32,
pub PowerLevel: i32,
}import "golang.org/x/sys/windows"
type DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX struct {
bEnabled byte
Dot11Band int32
uChannel uint32
PowerLevel int32
}type
DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX = record
bEnabled: ByteBool;
Dot11Band: Integer;
uChannel: DWORD;
PowerLevel: Integer;
end;const DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX = extern struct {
bEnabled: u8,
Dot11Band: i32,
uChannel: u32,
PowerLevel: i32,
};type
DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX {.bycopy.} = object
bEnabled: uint8
Dot11Band: int32
uChannel: uint32
PowerLevel: int32struct DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX
{
ubyte bEnabled;
int Dot11Band;
uint uChannel;
int PowerLevel;
}HSP用 定義
HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX サイズ: 16 バイト(x64)
dim st, 4 ; 4byte整数×4(構造体サイズ 16 / 4 切り上げ)
; bEnabled : BOOLEAN (+0, 1byte) poke st,0,値 / 値 = peek(st,0)
; Dot11Band : DOT11_BAND (+4, 4byte) st.1 = 値 / 値 = st.1 (lpoke/lpeek も可)
; uChannel : DWORD (+8, 4byte) st.2 = 値 / 値 = st.2 (lpoke/lpeek も可)
; PowerLevel : INT (+12, 4byte) st.3 = 値 / 値 = st.3 (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX
#field bool1 bEnabled
#field int Dot11Band
#field int uChannel
#field int PowerLevel
#endstruct
stdim st, DOT11_MANUFACTURING_FUNCTIONAL_TEST_RX ; NSTRUCT 変数を確保
st->bEnabled = 100
mes "bEnabled=" + st->bEnabled