| Crates.io | wintypes |
| lib.rs | wintypes |
| version | 0.1.6 |
| created_at | 2025-01-17 10:29:58.841086+00 |
| updated_at | 2025-08-06 07:40:43.033674+00 |
| description | A rust library that exports windows functions as types |
| homepage | |
| repository | https://github.com/NioZow/wintypes |
| max_upload_size | |
| id | 1520509 |
| size | 682,167 |
A rust library that exports windows functions as types
Once this library is downloaded you can just use a function as a type by DLL:
use wintypes::user32::FnMessageBoxA;
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
$ ./scripts/parse_doc_crates.py exports.json
ntapi and winapi for implementing windows functions as functions. This project scrapes prototypes from those crates.