ホーム › NetworkManagement.WiFi › DOT11EXT_VIRTUAL_STATION_APIS
DOT11EXT_VIRTUAL_STATION_APIS
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| Dot11ExtRequestVirtualStation | DOT11EXT_REQUEST_VIRTUAL_STATION | 8/4 | +0 | +0 | 仮想ステーションの作成を要求するコールバック関数ポインター。 |
| Dot11ExtReleaseVirtualStation | DOT11EXT_RELEASE_VIRTUAL_STATION | 8/4 | +8 | +4 | 仮想ステーションを解放するコールバック関数ポインター。 |
| Dot11ExtQueryVirtualStationProperties | DOT11EXT_QUERY_VIRTUAL_STATION_PROPERTIES | 8/4 | +16 | +8 | 仮想ステーションのプロパティを照会するコールバック。 |
| Dot11ExtSetVirtualStationAPProperties | DOT11EXT_SET_VIRTUAL_STATION_AP_PROPERTIES | 8/4 | +24 | +12 | 仮想ステーションAPのプロパティを設定するコールバック。 |
各言語での定義
#include <windows.h>
// DOT11EXT_VIRTUAL_STATION_APIS (x64 32 / x86 16 バイト)
typedef struct DOT11EXT_VIRTUAL_STATION_APIS {
DOT11EXT_REQUEST_VIRTUAL_STATION Dot11ExtRequestVirtualStation;
DOT11EXT_RELEASE_VIRTUAL_STATION Dot11ExtReleaseVirtualStation;
DOT11EXT_QUERY_VIRTUAL_STATION_PROPERTIES Dot11ExtQueryVirtualStationProperties;
DOT11EXT_SET_VIRTUAL_STATION_AP_PROPERTIES Dot11ExtSetVirtualStationAPProperties;
} DOT11EXT_VIRTUAL_STATION_APIS;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct DOT11EXT_VIRTUAL_STATION_APIS
{
public IntPtr Dot11ExtRequestVirtualStation;
public IntPtr Dot11ExtReleaseVirtualStation;
public IntPtr Dot11ExtQueryVirtualStationProperties;
public IntPtr Dot11ExtSetVirtualStationAPProperties;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure DOT11EXT_VIRTUAL_STATION_APIS
Public Dot11ExtRequestVirtualStation As IntPtr
Public Dot11ExtReleaseVirtualStation As IntPtr
Public Dot11ExtQueryVirtualStationProperties As IntPtr
Public Dot11ExtSetVirtualStationAPProperties As IntPtr
End Structureimport ctypes
from ctypes import wintypes
class DOT11EXT_VIRTUAL_STATION_APIS(ctypes.Structure):
_fields_ = [
("Dot11ExtRequestVirtualStation", ctypes.c_void_p),
("Dot11ExtReleaseVirtualStation", ctypes.c_void_p),
("Dot11ExtQueryVirtualStationProperties", ctypes.c_void_p),
("Dot11ExtSetVirtualStationAPProperties", ctypes.c_void_p),
]#[repr(C)]
pub struct DOT11EXT_VIRTUAL_STATION_APIS {
pub Dot11ExtRequestVirtualStation: *mut core::ffi::c_void,
pub Dot11ExtReleaseVirtualStation: *mut core::ffi::c_void,
pub Dot11ExtQueryVirtualStationProperties: *mut core::ffi::c_void,
pub Dot11ExtSetVirtualStationAPProperties: *mut core::ffi::c_void,
}import "golang.org/x/sys/windows"
type DOT11EXT_VIRTUAL_STATION_APIS struct {
Dot11ExtRequestVirtualStation uintptr
Dot11ExtReleaseVirtualStation uintptr
Dot11ExtQueryVirtualStationProperties uintptr
Dot11ExtSetVirtualStationAPProperties uintptr
}type
DOT11EXT_VIRTUAL_STATION_APIS = record
Dot11ExtRequestVirtualStation: Pointer;
Dot11ExtReleaseVirtualStation: Pointer;
Dot11ExtQueryVirtualStationProperties: Pointer;
Dot11ExtSetVirtualStationAPProperties: Pointer;
end;const DOT11EXT_VIRTUAL_STATION_APIS = extern struct {
Dot11ExtRequestVirtualStation: ?*anyopaque,
Dot11ExtReleaseVirtualStation: ?*anyopaque,
Dot11ExtQueryVirtualStationProperties: ?*anyopaque,
Dot11ExtSetVirtualStationAPProperties: ?*anyopaque,
};type
DOT11EXT_VIRTUAL_STATION_APIS {.bycopy.} = object
Dot11ExtRequestVirtualStation: pointer
Dot11ExtReleaseVirtualStation: pointer
Dot11ExtQueryVirtualStationProperties: pointer
Dot11ExtSetVirtualStationAPProperties: pointerstruct DOT11EXT_VIRTUAL_STATION_APIS
{
void* Dot11ExtRequestVirtualStation;
void* Dot11ExtReleaseVirtualStation;
void* Dot11ExtQueryVirtualStationProperties;
void* Dot11ExtSetVirtualStationAPProperties;
}HSP用 定義
HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x86 レイアウト)
; DOT11EXT_VIRTUAL_STATION_APIS サイズ: 16 バイト(x86)
dim st, 4 ; 4byte整数×4(構造体サイズ 16 / 4 切り上げ)
; Dot11ExtRequestVirtualStation : DOT11EXT_REQUEST_VIRTUAL_STATION (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; Dot11ExtReleaseVirtualStation : DOT11EXT_RELEASE_VIRTUAL_STATION (+4, 4byte) st.1 = 値 / 値 = st.1 (lpoke/lpeek も可)
; Dot11ExtQueryVirtualStationProperties : DOT11EXT_QUERY_VIRTUAL_STATION_PROPERTIES (+8, 4byte) st.2 = 値 / 値 = st.2 (lpoke/lpeek も可)
; Dot11ExtSetVirtualStationAPProperties : DOT11EXT_SET_VIRTUAL_STATION_AP_PROPERTIES (+12, 4byte) st.3 = 値 / 値 = st.3 (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; DOT11EXT_VIRTUAL_STATION_APIS サイズ: 32 バイト(x64)
dim st, 8 ; 4byte整数×8(構造体サイズ 32 / 4 切り上げ)
; Dot11ExtRequestVirtualStation : DOT11EXT_REQUEST_VIRTUAL_STATION (+0, 8byte) qpoke st,0,値 / qpeek(st,0) ※IronHSPのみ。3.7/3.8は lpoke st,0,下位 : lpoke st,4,上位
; Dot11ExtReleaseVirtualStation : DOT11EXT_RELEASE_VIRTUAL_STATION (+8, 8byte) qpoke st,8,値 / qpeek(st,8) ※IronHSPのみ。3.7/3.8は lpoke st,8,下位 : lpoke st,12,上位
; Dot11ExtQueryVirtualStationProperties : DOT11EXT_QUERY_VIRTUAL_STATION_PROPERTIES (+16, 8byte) qpoke st,16,値 / qpeek(st,16) ※IronHSPのみ。3.7/3.8は lpoke st,16,下位 : lpoke st,20,上位
; Dot11ExtSetVirtualStationAPProperties : DOT11EXT_SET_VIRTUAL_STATION_AP_PROPERTIES (+24, 8byte) qpoke st,24,値 / qpeek(st,24) ※IronHSPのみ。3.7/3.8は lpoke st,24,下位 : lpoke st,28,上位
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global DOT11EXT_VIRTUAL_STATION_APIS
#field intptr Dot11ExtRequestVirtualStation
#field intptr Dot11ExtReleaseVirtualStation
#field intptr Dot11ExtQueryVirtualStationProperties
#field intptr Dot11ExtSetVirtualStationAPProperties
#endstruct
stdim st, DOT11EXT_VIRTUAL_STATION_APIS ; NSTRUCT 変数を確保