Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extern crate libc;
- use libc::{c_ulong, c_long};
- type DWORD = c_ulong;
- type LONG = c_long;
- #[allow(non_snake_case)]
- #[derive(Debug)]
- pub struct LUID {
- pub LowPart: DWORD,
- pub HighPart: LONG,
- }
- #[allow(non_snake_case)]
- #[allow(non_camel_case_types)]
- #[derive(Debug)]
- pub struct LUID_AND_ATTRIBUTES {
- pub Luid: LUID,
- pub Attributes: DWORD,
- }
- #[allow(non_snake_case)]
- #[allow(non_camel_case_types)]
- #[derive(Debug)]
- pub struct TOKEN_PRIVILEGES {
- pub PrivilegeCount: DWORD,
- pub Privileges: [LUID_AND_ATTRIBUTES; 1],
- }
- fn main() {
- let privs: TOKEN_PRIVILEGES = unsafe { std::mem::uninitialized() };
- println!("Hello, world! {:?}", privs);
- }
Add Comment
Please, Sign In to add comment