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