forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1875097 - Port the mozwer-rust crate to windows-sys r=gsvelto,gla…
…ndium This exchanges `winapi` functions/types for equivalent `windows-sys` ones. Some basic types (e.g. `PBOOL`) don't exist in `windows-sys`, and I added `type` items for them (though those could be removed and the types inlined; that's what `windows-sys` does itself). The `psapi` library needed to be added for GetModuleFileNameExW; I guess previously `winapi` was linking it? Almost all manual definitions of types (`winapi::ENUM!` and `winapi::STRUCT!`) were no longer needed because `windows-sys` has them. Only the version of `RTL_USER_PROCESS_PARAMETERS` with undocumented fields was still needed. Differential Revision: https://phabricator.services.mozilla.com/D199111
- Loading branch information
Showing
4 changed files
with
123 additions
and
263 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.