#winapi #process #detect #wrapper #root #cargo-toml #extern #add #wrapping #running

winutil

Simple library providing wrappers around a handful of useful winapi calls

1 unstable release

Uses old Rust 2015

0.1.1 Dec 19, 2017
0.1.0 Mar 31, 2016

#65 in Windows APIs

Download history 1759/week @ 2022-08-10 1029/week @ 2022-08-17 1338/week @ 2022-08-24 1320/week @ 2022-08-31 1496/week @ 2022-09-07 968/week @ 2022-09-14 1271/week @ 2022-09-21 1390/week @ 2022-09-28 1346/week @ 2022-10-05 1074/week @ 2022-10-12 1092/week @ 2022-10-19 1260/week @ 2022-10-26 1315/week @ 2022-11-02 1104/week @ 2022-11-09 1233/week @ 2022-11-16 530/week @ 2022-11-23

4,337 downloads per month

MIT license

5KB
87 lines

Winutil

A simple library wrapping a handful of useful winapi functions.

Usage

Add this to your Cargo.toml:

[dependencies]
winutil = "^0.1"

and this to your crate root:

extern crate winutil;

then you can use the following functions:

// Detect if the current process is running under the WoW64 subsytem.
is_wow64_process();
// Return an Option containing the NetBIOS name of the local computer.
get_computer_name();
// Return an Option containing the user associated with the current thread.
get_user_name();

Dependencies

~27KB