// 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)) }
}
}