ホーム › System.Diagnostics.Debug › MINIDUMP_FUNCTION_TABLE_DESCRIPTOR
MINIDUMP_FUNCTION_TABLE_DESCRIPTOR
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| MinimumAddress | ULONGLONG | 8 | +0 | +0 | この関数テーブルがカバーする最小アドレス。 |
| MaximumAddress | ULONGLONG | 8 | +8 | +8 | カバーする最大アドレス。 |
| BaseAddress | ULONGLONG | 8 | +16 | +16 | 関数テーブルの基底アドレス。 |
| EntryCount | DWORD | 4 | +24 | +24 | 関数エントリの個数。 |
| SizeOfAlignPad | DWORD | 4 | +28 | +28 | アラインメント調整用パディングのサイズ。 |
各言語での定義
#include <windows.h>
// MINIDUMP_FUNCTION_TABLE_DESCRIPTOR (x64 32 / x86 32 バイト)
#pragma pack(push, 4)
typedef struct MINIDUMP_FUNCTION_TABLE_DESCRIPTOR {
ULONGLONG MinimumAddress;
ULONGLONG MaximumAddress;
ULONGLONG BaseAddress;
DWORD EntryCount;
DWORD SizeOfAlignPad;
} MINIDUMP_FUNCTION_TABLE_DESCRIPTOR;
#pragma pack(pop)using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Pack = 4, CharSet = CharSet.Unicode)]
public struct MINIDUMP_FUNCTION_TABLE_DESCRIPTOR
{
public ulong MinimumAddress;
public ulong MaximumAddress;
public ulong BaseAddress;
public uint EntryCount;
public uint SizeOfAlignPad;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, Pack:=4, CharSet:=CharSet.Unicode)>
Public Structure MINIDUMP_FUNCTION_TABLE_DESCRIPTOR
Public MinimumAddress As ULong
Public MaximumAddress As ULong
Public BaseAddress As ULong
Public EntryCount As UInteger
Public SizeOfAlignPad As UInteger
End Structureimport ctypes
from ctypes import wintypes
class MINIDUMP_FUNCTION_TABLE_DESCRIPTOR(ctypes.Structure):
_pack_ = 4
_fields_ = [
("MinimumAddress", ctypes.c_ulonglong),
("MaximumAddress", ctypes.c_ulonglong),
("BaseAddress", ctypes.c_ulonglong),
("EntryCount", wintypes.DWORD),
("SizeOfAlignPad", wintypes.DWORD),
]#[repr(C, packed(4))]
pub struct MINIDUMP_FUNCTION_TABLE_DESCRIPTOR {
pub MinimumAddress: u64,
pub MaximumAddress: u64,
pub BaseAddress: u64,
pub EntryCount: u32,
pub SizeOfAlignPad: u32,
}import "golang.org/x/sys/windows"
type MINIDUMP_FUNCTION_TABLE_DESCRIPTOR struct {
MinimumAddress uint64
MaximumAddress uint64
BaseAddress uint64
EntryCount uint32
SizeOfAlignPad uint32
}type
MINIDUMP_FUNCTION_TABLE_DESCRIPTOR = packed record
MinimumAddress: UInt64;
MaximumAddress: UInt64;
BaseAddress: UInt64;
EntryCount: DWORD;
SizeOfAlignPad: DWORD;
end;const MINIDUMP_FUNCTION_TABLE_DESCRIPTOR = extern struct {
MinimumAddress: u64,
MaximumAddress: u64,
BaseAddress: u64,
EntryCount: u32,
SizeOfAlignPad: u32,
};type
MINIDUMP_FUNCTION_TABLE_DESCRIPTOR {.packed.} = object
MinimumAddress: uint64
MaximumAddress: uint64
BaseAddress: uint64
EntryCount: uint32
SizeOfAlignPad: uint32align(4)
struct MINIDUMP_FUNCTION_TABLE_DESCRIPTOR
{
ulong MinimumAddress;
ulong MaximumAddress;
ulong BaseAddress;
uint EntryCount;
uint SizeOfAlignPad;
}HSP用 定義
HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; MINIDUMP_FUNCTION_TABLE_DESCRIPTOR サイズ: 32 バイト(x64)
dim st, 8 ; 4byte整数×8(構造体サイズ 32 / 4 切り上げ)
; MinimumAddress : ULONGLONG (+0, 8byte) qpoke st,0,値 / qpeek(st,0) ※IronHSPのみ。3.7/3.8は lpoke st,0,下位 : lpoke st,4,上位
; MaximumAddress : ULONGLONG (+8, 8byte) qpoke st,8,値 / qpeek(st,8) ※IronHSPのみ。3.7/3.8は lpoke st,8,下位 : lpoke st,12,上位
; BaseAddress : ULONGLONG (+16, 8byte) qpoke st,16,値 / qpeek(st,16) ※IronHSPのみ。3.7/3.8は lpoke st,16,下位 : lpoke st,20,上位
; EntryCount : DWORD (+24, 4byte) st.6 = 値 / 値 = st.6 (lpoke/lpeek も可)
; SizeOfAlignPad : DWORD (+28, 4byte) st.7 = 値 / 値 = st.7 (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global MINIDUMP_FUNCTION_TABLE_DESCRIPTOR, pack=4
#field int64 MinimumAddress
#field int64 MaximumAddress
#field int64 BaseAddress
#field int EntryCount
#field int SizeOfAlignPad
#endstruct
stdim st, MINIDUMP_FUNCTION_TABLE_DESCRIPTOR ; NSTRUCT 変数を確保
st->MinimumAddress = 100
mes "MinimumAddress=" + st->MinimumAddress