Skip to content

felix-rs/ntcall-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ntcall-rs

Easily call NT System Calls from rust.

Crates.io

All System Call ID’s are dumped at compile-time. To get started just import the function you would like to use and call it just like with winapi/ntapi.

Usage

To use ntcall-rs, first add this to your Cargo.toml:

[dependencies]
ntcall = "0.1"

Example

Shutting down your PC with a System Call.

use ntcall::NtShutdownSystem;

const ShutdownPowerOff: u32 = 2;

unsafe { NtShutdownSystem(ShutdownPowerOff); }

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in ntcall-rs by you, shall be licensed as MIT, without any additional terms or conditions.

About

Crate for calling NT System Calls easily

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages