Skip to content
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

Structs and constants are not generated #45

Closed
zgabi opened this issue Jan 22, 2021 · 4 comments
Closed

Structs and constants are not generated #45

zgabi opened this issue Jan 22, 2021 · 4 comments

Comments

@zgabi
Copy link

zgabi commented Jan 22, 2021

In the README.md it is mentioned that the structs and constants should be generated when the name is written in the NativeMethods.txt

I added the following structs, but they are not generated:
CWPRETSTRUCT
CWPSTRUCT

I checked in the winmd file, it is there.

Constants are also not generated, see: https://github.com/microsoft/win32metadata/issues/150
The can be found in the winmd, too.
For example:

namespace Windows.Win32.WindowsProgramming
{
  public enum PROCESS_CREATION_FLAGS : uint
@AArnott
Copy link
Member

AArnott commented Jan 22, 2021

I can't repro this problem. When I specify either of those two structs I get them:

959442a0-1b6e-4d83-b12f-a4af8c67486e

@AArnott
Copy link
Member

AArnott commented Jan 22, 2021

I'm closing for now for ease of bug tracking, but if you still have a problem with these structs please comment here and we can re-open.

@AArnott AArnott closed this as completed Jan 22, 2021
@zgabi
Copy link
Author

zgabi commented Jan 22, 2021

Ahh, so they are not in the PInvoke class.

Then maybe you should fix the documenations, since you wrote:

the P/Invoke API can be found on the Microsoft.Windows.Sdk.PInvoke class, like this:

:)

AArnott added a commit that referenced this issue Jan 22, 2021
@AArnott
Copy link
Member

AArnott commented Jan 22, 2021

Sounds good. I have clarified in the readme. Thank you for the feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants