Registry / other / advapi32-sys

advapi32-sys

JSON →
library0.2.0rscratesunverified

Contains function definitions for the Windows API library advapi32. See winapi for types and constants.

# Cargo.toml [dependencies] advapi32-sys = "0.2.0"
INSTALL
IMPORT
SIG · ADVAPI32-SYS
A
advapi32-sys
otherrustv0.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

advapi32_sys
use advapi32_sys::*;

Calls GetUserNameW from advapi32 to retrieve the current user name.

use advapi32_sys::*; // Example: call GetUserNameW let mut buffer = [0u16; 256]; let mut size = buffer.len() as u32; unsafe { GetUserNameW(buffer.as_mut_ptr(), &mut size); }
Debug
Known issues
gotchaUnsafe code required; raw Windows API
fix
Use safe wrappers like winapi or windows-rs if possible.
affects: >=0.1.0
Upgrade
Version history
0.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
51 hits · last 30 days
node
42
Meta
2
OpenAI (training)
1
Resources
advapi32-sys — cargo add advapi32-sys · libregistry