ホーム › System.Ioctl › FS_BPIO_INPUT
FS_BPIO_INPUT
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| Operation | FS_BPIO_OPERATIONS | 4 | +0 | +0 | 実行するBypassIO操作の種別を示す列挙値。有効化/無効化/問い合わせ等。 |
| InFlags | FS_BPIO_INFLAGS | 4 | +4 | +4 | BypassIO操作に対する入力フラグ。 |
| Reserved1 | ULONGLONG | 8 | +8 | +8 | 将来の拡張用に予約された領域。0を設定する。 |
| Reserved2 | ULONGLONG | 8 | +16 | +16 | 将来の拡張用に予約された領域。0を設定する。 |
各言語での定義
#include <windows.h>
// FS_BPIO_INPUT (x64 24 / x86 24 バイト)
typedef struct FS_BPIO_INPUT {
FS_BPIO_OPERATIONS Operation;
FS_BPIO_INFLAGS InFlags;
ULONGLONG Reserved1;
ULONGLONG Reserved2;
} FS_BPIO_INPUT;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct FS_BPIO_INPUT
{
public int Operation;
public int InFlags;
public ulong Reserved1;
public ulong Reserved2;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure FS_BPIO_INPUT
Public Operation As Integer
Public InFlags As Integer
Public Reserved1 As ULong
Public Reserved2 As ULong
End Structureimport ctypes
from ctypes import wintypes
class FS_BPIO_INPUT(ctypes.Structure):
_fields_ = [
("Operation", ctypes.c_int),
("InFlags", ctypes.c_int),
("Reserved1", ctypes.c_ulonglong),
("Reserved2", ctypes.c_ulonglong),
]#[repr(C)]
pub struct FS_BPIO_INPUT {
pub Operation: i32,
pub InFlags: i32,
pub Reserved1: u64,
pub Reserved2: u64,
}import "golang.org/x/sys/windows"
type FS_BPIO_INPUT struct {
Operation int32
InFlags int32
Reserved1 uint64
Reserved2 uint64
}type
FS_BPIO_INPUT = record
Operation: Integer;
InFlags: Integer;
Reserved1: UInt64;
Reserved2: UInt64;
end;const FS_BPIO_INPUT = extern struct {
Operation: i32,
InFlags: i32,
Reserved1: u64,
Reserved2: u64,
};type
FS_BPIO_INPUT {.bycopy.} = object
Operation: int32
InFlags: int32
Reserved1: uint64
Reserved2: uint64struct FS_BPIO_INPUT
{
int Operation;
int InFlags;
ulong Reserved1;
ulong Reserved2;
}HSP用 定義
HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; FS_BPIO_INPUT サイズ: 24 バイト(x64)
dim st, 6 ; 4byte整数×6(構造体サイズ 24 / 4 切り上げ)
; Operation : FS_BPIO_OPERATIONS (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; InFlags : FS_BPIO_INFLAGS (+4, 4byte) st.1 = 値 / 値 = st.1 (lpoke/lpeek も可)
; Reserved1 : ULONGLONG (+8, 8byte) qpoke st,8,値 / qpeek(st,8) ※IronHSPのみ。3.7/3.8は lpoke st,8,下位 : lpoke st,12,上位
; Reserved2 : ULONGLONG (+16, 8byte) qpoke st,16,値 / qpeek(st,16) ※IronHSPのみ。3.7/3.8は lpoke st,16,下位 : lpoke st,20,上位
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global FS_BPIO_INPUT
#field int Operation
#field int InFlags
#field int64 Reserved1
#field int64 Reserved2
#endstruct
stdim st, FS_BPIO_INPUT ; NSTRUCT 変数を確保
st->Operation = 100
mes "Operation=" + st->Operation