-
-
Notifications
You must be signed in to change notification settings - Fork 678
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
win32 Process Status API (PSAPI) bindings #4722
base: master
Are you sure you want to change the base?
Conversation
core/sys/windows/psapi.odin
Outdated
Proctection: ULONG_PTR | 5, | ||
ShareCount: ULONG_PTR | 3, | ||
Shared :ULONG_PTR | 1, | ||
Reserved :ULONG_PTR | 3, | ||
VirtualPage: ULONG_PTR | 52, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please adhere to the Odin core style guidelines.
using DUMMYNAME: bit_field u64 {
Proctection: ULONG_PTR | 5,
ShareCount: ULONG_PTR | 3,
Shared: ULONG_PTR | 1,
Reserved: ULONG_PTR | 3,
VirtualPage: ULONG_PTR | 52,
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should now be resolved.
core/sys/windows/psapi.odin
Outdated
foreign psapi { | ||
EnumProcesses :: proc(lpidProcess: PDWORD, cb: DWORD, lpcbNeeded: LPDWORD) -> BOOL --- | ||
EnumProcessModules :: proc(hProcess :HANDLE , lphModule: ^HMODULE , cb: DWORD, lpcbNeeded: LPDWORD) -> BOOL --- | ||
EnumProcessModulesEx :: proc(hProcess: HANDLE, lphModule: ^HMODULE ,cb: DWORD, lpcbNeeded: LPDWORD , dwFilterFlag: DWORD ) -> BOOL --- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please adhere to the coding conventions. Have the :
in the right place, no random spaces, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should now be resolved.
I added bindings for PSAPI on windows, since I used some of them on my personal project.