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

NtQueryInformationProcess can not be generated #1282

Closed
NeverMorewd opened this issue Sep 12, 2024 · 4 comments
Closed

NtQueryInformationProcess can not be generated #1282

NeverMorewd opened this issue Sep 12, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@NeverMorewd
Copy link

Actual behavior

NtQueryInformationProcess was not generated.

Expected behavior

NtQueryInformationProcess can be generated after being added to NativeMethods.txt

Repro steps

  1. NativeMethods.txt content:
NtQueryInformationProcess
PROCESS_BASIC_INFORMATION
  1. NativeMethods.json content (if present):
  1. Any of your own code that should be shared?

Context

  • CsWin32 version: [0.3.106]
  • Win32Metadata version (if explicitly set by project):
  • Target Framework: [net6.0;net8.0;netframework48]
  • LangVersion (if explicitly set by project): [12]
@NeverMorewd NeverMorewd added the bug Something isn't working label Sep 12, 2024
@Ephron-WL
Copy link

I see this generated under Windows.Wdk.PInvoke.NtQueryInformationProcess using Microsoft.Windows.WDK.Win32Metadata 0.11.4. The function is in the Microsoft.Windows.SDK.Win32Metadata as well, but I see it generated from the WDK. You shouldn't have to include the structure, in your native methods files since it will be automatically generated.

@NeverMorewd
Copy link
Author

NeverMorewd commented Sep 25, 2024

I see this generated under Windows.Wdk.PInvoke.NtQueryInformationProcess using Microsoft.Windows.WDK.Win32Metadata 0.11.4. The function is in the Microsoft.Windows.SDK.Win32Metadata as well, but I see it generated from the WDK. You shouldn't have to include the structure, in your native methods files since it will be automatically generated.

Thank you.I see, some functions were generated from Microsoft.Windows.WDK.Win32Metadata which can be accessed by Windows.WDK.PInvoke not Windows.Win32.PInvoke.

Could I consider all functions from 'ntdll' are declared in namespace 'Windows.WDK'?

@Ephron-WL
Copy link

Ephron-WL commented Sep 25, 2024 via email

@NeverMorewd
Copy link
Author

Got it, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants