我刚开始学习Rust,想知道是否可以在不安全的情况下调用WinAPI函数?
extern crate libc; fn main() { unsafe { libc::funcs::extra::kernel32::GetCurrentProcessId(); } }
rust
rust ×1