wintypes

Crates.iowintypes
lib.rswintypes
version0.1.6
created_at2025-01-17 10:29:58.841086+00
updated_at2025-08-06 07:40:43.033674+00
descriptionA rust library that exports windows functions as types
homepage
repositoryhttps://github.com/NioZow/wintypes
max_upload_size
id1520509
size682,167
NioZ (NioZow)

documentation

README

wintypes

A rust library that exports windows functions as types

Usage

Once this library is downloaded you can just use a function as a type by DLL:

use wintypes::user32::FnMessageBoxA;

Build

Get DLLs exported functions

The first step is to get the exported functions of the DLLs:

$ scripts/parse_dll_exports.py ~/SharedFolder/dlls/advapi32.dll ~/SharedFolder/dlls/crypt32.dll ~/SharedFolder/dlls/kernel32.dll ~/SharedFolder/dlls/kernelbase.dll ~/SharedFolder/dlls/winhttp.dll ~/SharedFolder/dlls/ntdll.dll | jq . > exports.json

Generate the types

$ ./scripts/parse_doc_crates.py exports.json

Credits

  • ntapi and winapi for implementing windows functions as functions. This project scrapes prototypes from those crates.
Commit count: 9

cargo fmt