Registry / other / kernel32-sys

kernel32-sys

JSON →
library0.2.2rscratesunverified

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

# Cargo.toml [dependencies] kernel32-sys = "0.2.2"
INSTALL
IMPORT
SIG · KERNEL32-SYS
K
kernel32-sys
otherrustv0.2.2
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.

GetLastError
✓ use kernel32::GetLastError;

Calls GetLastError to retrieve the last Windows error code.

use kernel32::GetLastError; fn main() { unsafe { let error = GetLastError(); println!("Last error: {}", error); } }
Debug
Known issues
breakingThis crate is deprecated in favor of the `winapi` crate which provides safer and more complete bindings.
fix
Replace with `winapi` and use its `um::errhandlingapi::GetLastError`.
affects: >=0.2.0
Upgrade
Version history
0.2.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
kernel32-sys — cargo add kernel32-sys · libregistry