ホーム › Media.KernelStreaming › KSPROPERTY_BOUNDS_LONG
KSPROPERTY_BOUNDS_LONG
共用体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| Anonymous1 | _Anonymous1_e__Struct | 8 | +0 | +0 | 符号付き32ビットの下限/上限を保持する無名構造体(別表現1)。 |
| Anonymous2 | _Anonymous2_e__Struct | 8 | +0 | +0 | 符号なし32ビットの下限/上限を保持する無名構造体(別表現2)。 |
構造体: _Anonymous1_e__Struct x64 8B / x86 8B
| フィールド | 型 | サイズ | x64 | x86 |
|---|---|---|---|---|
| SignedMinimum | INT | 4 | +0 | +0 |
| SignedMaximum | INT | 4 | +4 | +4 |
構造体: _Anonymous2_e__Struct x64 8B / x86 8B
| フィールド | 型 | サイズ | x64 | x86 |
|---|---|---|---|---|
| UnsignedMinimum | DWORD | 4 | +0 | +0 |
| UnsignedMaximum | DWORD | 4 | +4 | +4 |
各言語での定義
#include <windows.h>
// KSPROPERTY_BOUNDS_LONG (x64 8 / x86 8 バイト)
typedef struct KSPROPERTY_BOUNDS_LONG {
_Anonymous1_e__Struct Anonymous1;
_Anonymous2_e__Struct Anonymous2;
} KSPROPERTY_BOUNDS_LONG;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct KSPROPERTY_BOUNDS_LONG
{
public _Anonymous1_e__Struct Anonymous1;
public _Anonymous2_e__Struct Anonymous2;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure KSPROPERTY_BOUNDS_LONG
Public Anonymous1 As _Anonymous1_e__Struct
Public Anonymous2 As _Anonymous2_e__Struct
End Structureimport ctypes
from ctypes import wintypes
class KSPROPERTY_BOUNDS_LONG(ctypes.Structure):
_fields_ = [
("Anonymous1", _Anonymous1_e__Struct),
("Anonymous2", _Anonymous2_e__Struct),
]#[repr(C)]
pub struct KSPROPERTY_BOUNDS_LONG {
pub Anonymous1: _Anonymous1_e__Struct,
pub Anonymous2: _Anonymous2_e__Struct,
}import "golang.org/x/sys/windows"
type KSPROPERTY_BOUNDS_LONG struct {
Anonymous1 _Anonymous1_e__Struct
Anonymous2 _Anonymous2_e__Struct
}type
KSPROPERTY_BOUNDS_LONG = record
Anonymous1: _Anonymous1_e__Struct;
Anonymous2: _Anonymous2_e__Struct;
end;const KSPROPERTY_BOUNDS_LONG = extern struct {
Anonymous1: _Anonymous1_e__Struct,
Anonymous2: _Anonymous2_e__Struct,
};type
KSPROPERTY_BOUNDS_LONG {.bycopy.} = object
Anonymous1: _Anonymous1_e__Struct
Anonymous2: _Anonymous2_e__Structstruct KSPROPERTY_BOUNDS_LONG
{
_Anonymous1_e__Struct Anonymous1;
_Anonymous2_e__Struct Anonymous2;
}HSP用 定義
HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; KSPROPERTY_BOUNDS_LONG サイズ: 8 バイト(x64)
dim st, 2 ; 4byte整数×2(構造体サイズ 8 / 4 切り上げ)
; Anonymous1 : _Anonymous1_e__Struct (+0, 8byte) varptr(st)+0 を基点に操作(8byte:入れ子/配列)
; Anonymous2 : _Anonymous2_e__Struct (+0, 8byte) varptr(st)+0 を基点に操作(8byte:入れ子/配列)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global KSPROPERTY_BOUNDS_LONG
#field _Anonymous1_e__Struct Anonymous1
#field _Anonymous2_e__Struct Anonymous2
#endstruct
stdim st, KSPROPERTY_BOUNDS_LONG ; NSTRUCT 変数を確保