os-id 3.1.0

Provides OS ids abstractions for process and thread
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
///Raw process id type, which is simple `u32`
pub type RawId = u32;

///Access id using `GetCurrentProcessId`
pub fn get_raw_id() -> RawId {
    extern "system" {
        pub fn GetCurrentProcessId() -> RawId;
    }

    unsafe {
        GetCurrentProcessId()
    }
}