-
Notifications
You must be signed in to change notification settings - Fork 89
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
Safe version of the EnumProcessModulesEx function seems to be incorrect #1266
Comments
I observed a similar error (one element instead of array) for the static extern winmdroot.Foundation.BOOL StartServiceCtrlDispatcher(in winmdroot.System.Services.SERVICE_TABLE_ENTRYW lpServiceStartTable); lpServiceStartTable should be a pointer or an array of SERVICE_TABLE_ENTRYW. |
Agreed. Thank you for reporting. |
|
Reactivate if you don't have what you need already for EnumProcessModulesEx. |
Is |
It's based on the SAL annotations. Additional context on the attribute is at microsoft/win32metadata#284 as well. |
Ok. I'll see what I can do in CsWin32 then. |
@mikebattista I've been researching from your links, and I believe
Having Should we move this issue back to win32metadata? |
|
Actual behavior
I think that the safe version of the EnumProcessModulesEx has an invalid type for the lphModule parameter:
The unsafe version:
Expected behavior
I would expect lphModule to be an out array or a HMODULE pointer (like in the unsafe version).
Repro steps
NativeMethods.txt
content:NativeMethods.json
content (if present):Context
The text was updated successfully, but these errors were encountered: