1 2 3 4 5 6 7 8
pub type BOOL = i32; #[link(name = "kernel32")] extern "system" { pub fn DebugBreak(); pub fn IsDebuggerPresent() -> BOOL; pub fn OutputDebugStringA(lpOutputString: *const u8); }