Win32 API 日本語リファレンス
ホームSystem.Diagnostics.Debug.Extensions › DEBUG_SPECIFIC_FILTER_PARAMETERS

DEBUG_SPECIFIC_FILTER_PARAMETERS

構造体
サイズx64: 20 バイト / x86: 20 バイト

サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。

フィールド

フィールドサイズx64x86説明
ExecutionOptionDWORD4+0+0特定イベント発生時の実行オプション(中断/出力/無視等)。
ContinueOptionDWORD4+4+4イベント処理後の継続オプション(処理/未処理)。
TextSizeDWORD4+8+8イベント説明テキストの長さ。
CommandSizeDWORD4+12+12イベント時に実行するコマンド文字列の長さ。
ArgumentSizeDWORD4+16+16イベントの引数文字列の長さ。

各言語での定義

#include <windows.h>

// DEBUG_SPECIFIC_FILTER_PARAMETERS  (x64 20 / x86 20 バイト)
typedef struct DEBUG_SPECIFIC_FILTER_PARAMETERS {
    DWORD ExecutionOption;
    DWORD ContinueOption;
    DWORD TextSize;
    DWORD CommandSize;
    DWORD ArgumentSize;
} DEBUG_SPECIFIC_FILTER_PARAMETERS;
using System;
using System.Runtime.InteropServices;

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct DEBUG_SPECIFIC_FILTER_PARAMETERS
{
    public uint ExecutionOption;
    public uint ContinueOption;
    public uint TextSize;
    public uint CommandSize;
    public uint ArgumentSize;
}
Imports System.Runtime.InteropServices

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure DEBUG_SPECIFIC_FILTER_PARAMETERS
    Public ExecutionOption As UInteger
    Public ContinueOption As UInteger
    Public TextSize As UInteger
    Public CommandSize As UInteger
    Public ArgumentSize As UInteger
End Structure
import ctypes
from ctypes import wintypes

class DEBUG_SPECIFIC_FILTER_PARAMETERS(ctypes.Structure):
    _fields_ = [
        ("ExecutionOption", wintypes.DWORD),
        ("ContinueOption", wintypes.DWORD),
        ("TextSize", wintypes.DWORD),
        ("CommandSize", wintypes.DWORD),
        ("ArgumentSize", wintypes.DWORD),
    ]
#[repr(C)]
pub struct DEBUG_SPECIFIC_FILTER_PARAMETERS {
    pub ExecutionOption: u32,
    pub ContinueOption: u32,
    pub TextSize: u32,
    pub CommandSize: u32,
    pub ArgumentSize: u32,
}
import "golang.org/x/sys/windows"

type DEBUG_SPECIFIC_FILTER_PARAMETERS struct {
	ExecutionOption uint32
	ContinueOption uint32
	TextSize uint32
	CommandSize uint32
	ArgumentSize uint32
}
type
  DEBUG_SPECIFIC_FILTER_PARAMETERS = record
    ExecutionOption: DWORD;
    ContinueOption: DWORD;
    TextSize: DWORD;
    CommandSize: DWORD;
    ArgumentSize: DWORD;
  end;
const DEBUG_SPECIFIC_FILTER_PARAMETERS = extern struct {
    ExecutionOption: u32,
    ContinueOption: u32,
    TextSize: u32,
    CommandSize: u32,
    ArgumentSize: u32,
};
type
  DEBUG_SPECIFIC_FILTER_PARAMETERS {.bycopy.} = object
    ExecutionOption: uint32
    ContinueOption: uint32
    TextSize: uint32
    CommandSize: uint32
    ArgumentSize: uint32
struct DEBUG_SPECIFIC_FILTER_PARAMETERS
{
    uint ExecutionOption;
    uint ContinueOption;
    uint TextSize;
    uint CommandSize;
    uint ArgumentSize;
}

HSP用 定義

HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。

; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; DEBUG_SPECIFIC_FILTER_PARAMETERS サイズ: 20 バイト(x64)
dim st, 5    ; 4byte整数×5(構造体サイズ 20 / 4 切り上げ)
; ExecutionOption : DWORD (+0, 4byte)  st.0 = 値  /  値 = st.0   (lpoke/lpeek も可)
; ContinueOption : DWORD (+4, 4byte)  st.1 = 値  /  値 = st.1   (lpoke/lpeek も可)
; TextSize : DWORD (+8, 4byte)  st.2 = 値  /  値 = st.2   (lpoke/lpeek も可)
; CommandSize : DWORD (+12, 4byte)  st.3 = 値  /  値 = st.3   (lpoke/lpeek も可)
; ArgumentSize : DWORD (+16, 4byte)  st.4 = 値  /  値 = st.4   (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。
; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global DEBUG_SPECIFIC_FILTER_PARAMETERS
    #field int ExecutionOption
    #field int ContinueOption
    #field int TextSize
    #field int CommandSize
    #field int ArgumentSize
#endstruct

stdim st, DEBUG_SPECIFIC_FILTER_PARAMETERS        ; NSTRUCT 変数を確保
st->ExecutionOption = 100
mes "ExecutionOption=" + st->ExecutionOption