wdext 0.1.0

A DbgEng wrapper framework
// SPDX-FileCopyrightText: 2026 takubokudori
// SPDX-License-Identifier: MIT OR Apache-2.0
//! DML Utilities
//!
//! Note that WinDbg does not allow arbitrary color selection.
//! The `DML_COLOR_*` color codes listed here may also render as different colors depending on the WinDbg version.

/// #0000FF
pub const DML_COLOR_SRCNUM: &str = "srcnum";
/// #A31515
pub const DML_COLOR_SRCHAR: &str = "srcchar";
/// #A31515 (Light), #FF4040 (Dark)
pub const DML_COLOR_SRCSTR: &str = "srcstr";
/// #800000
pub const DML_COLOR_SRCID: &str = "srcid";
/// #0000FF
pub const DML_COLOR_SRCKW: &str = "srckw";
/// #FF3700
pub const DML_COLOR_SRCPAIR: &str = "srcpair";
/// #008000
pub const DML_COLOR_SRCCMNT: &str = "srccmnt";
/// #0000FF
pub const DML_COLOR_SRCDRCT: &str = "srcdrct";
/// #0000FF
pub const DML_COLOR_SRCSPID: &str = "srcspid";
/// #000080
pub const DML_COLOR_SRCCANNOT: &str = "srccannot";
/// #FF0000
pub const DML_COLOR_CHANGED: &str = "changed";
/// Control FG
pub const DML_COLOR_WFG: &str = "wfg";
/// Control BG
pub const DML_COLOR_WBG: &str = "wbg";
// #DBCDBF
pub const DML_COLOR_SUBFG: &str = "subfg";
// #000000
pub const DML_COLOR_SUBBG: &str = "subbg";
/// Control FG
pub const DML_COLOR_NORMFG: &str = "normfg";
/// Control BG
pub const DML_COLOR_NORMBG: &str = "normbg";
/// Control FG
pub const DML_COLOR_WARNFG: &str = "warnfg";
/// Control BG
pub const DML_COLOR_WARNBG: &str = "warnbg";
/// Control FG
pub const DML_COLOR_ERRFG: &str = "errfg";
/// Control BG
pub const DML_COLOR_ERRBG: &str = "errbg";
/// Control FG
pub const DML_COLOR_VERBFG: &str = "verbfg";
/// Control BG
pub const DML_COLOR_VERBBG: &str = "verbbg";
/// #0078D7
pub const DML_COLOR_CLBG: &str = "clbg";
/// #FFFFFF
pub const DML_COLOR_CLFG: &str = "clfg";
/// #FF00FF
pub const DML_COLOR_BPBG: &str = "bpbg";
/// #008080 (Light), #7F7F7F (Dark)
pub const DML_COLOR_SLBG: &str = "slbg";
/// #0000FF
pub const DML_COLOR_EMPHFG: &str = "emphfg";
/// #FFFF00
pub const DML_COLOR_DBPBG: &str = "dbpbg";

/// Text color that changes according to the WinDbg theme.
pub const DML_COLOR_CONTROL_FG: &str = DML_COLOR_WFG;
/// Background color that changes according to the WinDbg theme.
pub const DML_COLOR_CONTROL_BG: &str = DML_COLOR_WBG;
/// #000000
pub const DML_COLOR_BLACK: &str = "black";
/// #FFFFFF
pub const DML_COLOR_WHITE: &str = DML_COLOR_CLFG;
/// #FF0000
pub const DML_COLOR_RED: &str = DML_COLOR_CHANGED;
/// #0000FF
pub const DML_COLOR_BLUE: &str = DML_COLOR_EMPHFG;
/// #FF00FF
pub const DML_COLOR_MAGENTA: &str = DML_COLOR_BPBG;
/// #FFFF00
pub const DML_COLOR_YELLOW: &str = DML_COLOR_DBPBG;
/// #800000
pub const DML_COLOR_MAROON: &str = DML_COLOR_SRCID;
/// #008000
pub const DML_COLOR_GREEN: &str = DML_COLOR_SRCCMNT;
/// #000080
pub const DML_COLOR_NAVY: &str = DML_COLOR_SRCCANNOT;