wdext 0.1.0

A DbgEng wrapper framework
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-FileCopyrightText: 2026 takubokudori
// SPDX-License-Identifier: MIT OR Apache-2.0
//! IDebugOutputStream
use crate::{dbgeng::WinResult, *};
use windows::Win32::System::Diagnostics::Debug::Extensions::IDebugOutputStream;
use windy::WStr;

impl_debug_interface!(
    DebugOutputStream,
    DebugOutputStreamRef,
    IDebugOutputStream
);

impl DebugOutputStream {
    pub fn write(&self, psz: impl AsRef<WStr>) -> WinResult<()> {
        unsafe { self.0.Write(pcw!(psz)) }
    }
}