File: README.md

package info (click to toggle)
rust-winutil 0.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 92 kB
  • sloc: makefile: 4
file content (29 lines) | stat: -rw-r--r-- 585 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Winutil

A simple library wrapping a handful of useful winapi functions.

## Usage

Add this to your Cargo.toml:

```toml
[dependencies]
winutil = "^0.1"
```

and this to your crate root:

```rust
extern crate winutil;
```

then you can use the following functions:

```rust
// 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();
```