Skip to content

Fill out windows PEB definition #4586

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 1, 2020
Merged

Conversation

daurnimator
Copy link
Contributor

The PEB has evolved over the lifetime of windows, this PR adds more fields.

@daurnimator daurnimator added standard library This issue involves writing Zig code for the standard library. os-windows labels Feb 29, 2020
@daurnimator
Copy link
Contributor Author

@andrewrk now with selectable OS version support: how can we customise the PEB for the target?
i.e. how can we write:

struct {
   foo: usize,
   if (version >= 0xABC) {
       bar: usize,
       baz: usize,
       qux: usize,
   } 
};

Options:

@andrewrk
Copy link
Member

andrewrk commented Mar 1, 2020

how can we customise the PEB for the target?

field_name: VersionCheckedType(T, min_version),

@andrewrk andrewrk merged commit d951e04 into ziglang:master Mar 1, 2020
@andrewrk
Copy link
Member

andrewrk commented Mar 1, 2020

Nice - this led to 6fcf671

@daurnimator
Copy link
Contributor Author

field_name: VersionCheckedType(T, min_version),

And it would return void on non matches?

@daurnimator daurnimator deleted the windows-PEB branch March 1, 2020 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os-windows standard library This issue involves writing Zig code for the standard library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants