ホーム › Devices.Tapi › LINEAGENTGROUPLIST
LINEAGENTGROUPLIST
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| dwTotalSize | DWORD | 4 | +0 | +0 | この構造体に割り当てられた総サイズをバイトで表す。 |
| dwNeededSize | DWORD | 4 | +4 | +4 | 全情報の格納に必要なサイズをバイトで表す。 |
| dwUsedSize | DWORD | 4 | +8 | +8 | 実際に使用されたサイズをバイトで表す。 |
| dwNumEntries | DWORD | 4 | +12 | +12 | リスト内のグループエントリの個数を表す。 |
| dwListSize | DWORD | 4 | +16 | +16 | グループエントリリストのサイズをバイトで表す。 |
| dwListOffset | DWORD | 4 | +20 | +20 | グループエントリリストまでのオフセットをバイトで表す。 |
各言語での定義
#include <windows.h>
// LINEAGENTGROUPLIST (x64 24 / x86 24 バイト)
#pragma pack(push, 1)
typedef struct LINEAGENTGROUPLIST {
DWORD dwTotalSize;
DWORD dwNeededSize;
DWORD dwUsedSize;
DWORD dwNumEntries;
DWORD dwListSize;
DWORD dwListOffset;
} LINEAGENTGROUPLIST;
#pragma pack(pop)using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Unicode)]
public struct LINEAGENTGROUPLIST
{
public uint dwTotalSize;
public uint dwNeededSize;
public uint dwUsedSize;
public uint dwNumEntries;
public uint dwListSize;
public uint dwListOffset;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, Pack:=1, CharSet:=CharSet.Unicode)>
Public Structure LINEAGENTGROUPLIST
Public dwTotalSize As UInteger
Public dwNeededSize As UInteger
Public dwUsedSize As UInteger
Public dwNumEntries As UInteger
Public dwListSize As UInteger
Public dwListOffset As UInteger
End Structureimport ctypes
from ctypes import wintypes
class LINEAGENTGROUPLIST(ctypes.Structure):
_pack_ = 1
_fields_ = [
("dwTotalSize", wintypes.DWORD),
("dwNeededSize", wintypes.DWORD),
("dwUsedSize", wintypes.DWORD),
("dwNumEntries", wintypes.DWORD),
("dwListSize", wintypes.DWORD),
("dwListOffset", wintypes.DWORD),
]#[repr(C, packed(1))]
pub struct LINEAGENTGROUPLIST {
pub dwTotalSize: u32,
pub dwNeededSize: u32,
pub dwUsedSize: u32,
pub dwNumEntries: u32,
pub dwListSize: u32,
pub dwListOffset: u32,
}import "golang.org/x/sys/windows"
type LINEAGENTGROUPLIST struct {
dwTotalSize uint32
dwNeededSize uint32
dwUsedSize uint32
dwNumEntries uint32
dwListSize uint32
dwListOffset uint32
}type
LINEAGENTGROUPLIST = packed record
dwTotalSize: DWORD;
dwNeededSize: DWORD;
dwUsedSize: DWORD;
dwNumEntries: DWORD;
dwListSize: DWORD;
dwListOffset: DWORD;
end;const LINEAGENTGROUPLIST = extern struct {
dwTotalSize: u32,
dwNeededSize: u32,
dwUsedSize: u32,
dwNumEntries: u32,
dwListSize: u32,
dwListOffset: u32,
};type
LINEAGENTGROUPLIST {.packed.} = object
dwTotalSize: uint32
dwNeededSize: uint32
dwUsedSize: uint32
dwNumEntries: uint32
dwListSize: uint32
dwListOffset: uint32align(1)
struct LINEAGENTGROUPLIST
{
uint dwTotalSize;
uint dwNeededSize;
uint dwUsedSize;
uint dwNumEntries;
uint dwListSize;
uint dwListOffset;
}HSP用 定義
HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; LINEAGENTGROUPLIST サイズ: 24 バイト(x64)
dim st, 6 ; 4byte整数×6(構造体サイズ 24 / 4 切り上げ)
; dwTotalSize : DWORD (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; dwNeededSize : DWORD (+4, 4byte) st.1 = 値 / 値 = st.1 (lpoke/lpeek も可)
; dwUsedSize : DWORD (+8, 4byte) st.2 = 値 / 値 = st.2 (lpoke/lpeek も可)
; dwNumEntries : DWORD (+12, 4byte) st.3 = 値 / 値 = st.3 (lpoke/lpeek も可)
; dwListSize : DWORD (+16, 4byte) st.4 = 値 / 値 = st.4 (lpoke/lpeek も可)
; dwListOffset : DWORD (+20, 4byte) st.5 = 値 / 値 = st.5 (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global LINEAGENTGROUPLIST, pack=1
#field int dwTotalSize
#field int dwNeededSize
#field int dwUsedSize
#field int dwNumEntries
#field int dwListSize
#field int dwListOffset
#endstruct
stdim st, LINEAGENTGROUPLIST ; NSTRUCT 変数を確保
st->dwTotalSize = 100
mes "dwTotalSize=" + st->dwTotalSize