ホーム › Storage.InstallableFileSystems › INSTANCE_AGGREGATE_STANDARD_INFORMATION
INSTANCE_AGGREGATE_STANDARD_INFORMATION
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| NextEntryOffset | DWORD | 4 | +0 | +0 | 次のエントリへのバイトオフセット。0なら最終エントリ。 |
| Flags | DWORD | 4 | +4 | +4 | インスタンスの種類を示すフラグ(レガシー/ミニフィルター)。 |
| Type | _Type_e__Union | 8/4 | +8 | +8 | インスタンス種類に応じた標準情報を保持する共用体。 |
共用体: _Type_e__Union x64 8B / x86 4B
| フィールド | 型 | サイズ | x64 | x86 |
|---|---|---|---|---|
| MiniFilter | _MiniFilter_e__Struct | 8/4 | +0 | +0 |
| LegacyFilter | _LegacyFilter_e__Struct | 8/4 | +0 | +0 |
各言語での定義
#include <windows.h>
// INSTANCE_AGGREGATE_STANDARD_INFORMATION (x64 16 / x86 12 バイト)
typedef struct INSTANCE_AGGREGATE_STANDARD_INFORMATION {
DWORD NextEntryOffset;
DWORD Flags;
_Type_e__Union Type;
} INSTANCE_AGGREGATE_STANDARD_INFORMATION;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct INSTANCE_AGGREGATE_STANDARD_INFORMATION
{
public uint NextEntryOffset;
public uint Flags;
public _Type_e__Union Type;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure INSTANCE_AGGREGATE_STANDARD_INFORMATION
Public NextEntryOffset As UInteger
Public Flags As UInteger
Public Type As _Type_e__Union
End Structureimport ctypes
from ctypes import wintypes
class INSTANCE_AGGREGATE_STANDARD_INFORMATION(ctypes.Structure):
_fields_ = [
("NextEntryOffset", wintypes.DWORD),
("Flags", wintypes.DWORD),
("Type", _Type_e__Union),
]#[repr(C)]
pub struct INSTANCE_AGGREGATE_STANDARD_INFORMATION {
pub NextEntryOffset: u32,
pub Flags: u32,
pub Type: _Type_e__Union,
}import "golang.org/x/sys/windows"
type INSTANCE_AGGREGATE_STANDARD_INFORMATION struct {
NextEntryOffset uint32
Flags uint32
Type _Type_e__Union
}type
INSTANCE_AGGREGATE_STANDARD_INFORMATION = record
NextEntryOffset: DWORD;
Flags: DWORD;
Type: _Type_e__Union;
end;const INSTANCE_AGGREGATE_STANDARD_INFORMATION = extern struct {
NextEntryOffset: u32,
Flags: u32,
Type: _Type_e__Union,
};type
INSTANCE_AGGREGATE_STANDARD_INFORMATION {.bycopy.} = object
NextEntryOffset: uint32
Flags: uint32
Type: _Type_e__Unionstruct INSTANCE_AGGREGATE_STANDARD_INFORMATION
{
uint NextEntryOffset;
uint Flags;
_Type_e__Union Type;
}HSP用 定義
HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x86 レイアウト)
; INSTANCE_AGGREGATE_STANDARD_INFORMATION サイズ: 12 バイト(x86)
dim st, 3 ; 4byte整数×3(構造体サイズ 12 / 4 切り上げ)
; NextEntryOffset : DWORD (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; Flags : DWORD (+4, 4byte) st.1 = 値 / 値 = st.1 (lpoke/lpeek も可)
; Type : _Type_e__Union (+8, 4byte) varptr(st)+8 を基点に操作(4byte:入れ子/配列)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; INSTANCE_AGGREGATE_STANDARD_INFORMATION サイズ: 16 バイト(x64)
dim st, 4 ; 4byte整数×4(構造体サイズ 16 / 4 切り上げ)
; NextEntryOffset : DWORD (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; Flags : DWORD (+4, 4byte) st.1 = 値 / 値 = st.1 (lpoke/lpeek も可)
; Type : _Type_e__Union (+8, 8byte) varptr(st)+8 を基点に操作(8byte:入れ子/配列)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global INSTANCE_AGGREGATE_STANDARD_INFORMATION
#field int NextEntryOffset
#field int Flags
#field byte Type 8
#endstruct
stdim st, INSTANCE_AGGREGATE_STANDARD_INFORMATION ; NSTRUCT 変数を確保
st->NextEntryOffset = 100
mes "NextEntryOffset=" + st->NextEntryOffset
; ※union フィールドは byte 列で確保(NSTRUCT は union 非対応)。必要に応じ手動でアクセス。