On Mon Apr 15 10:03:34 2024 +0000, Nikolay Sivov wrote:
Maybe ULONG_PTR is better for this one.
Well, PVOID is how Geoff Chappell defines it [1]. Elsewhere in somewhat similar occasion we define as HANDLE (see CLIENT_ID in winternl.h) which is essentially 'void *' but HANDLE is IMO most confusing because this is not handle but id. So I am not sure, ULONG_PTR is most straightforward ofc but for some reason is usually defined elsewise.
1. https://www.geoffchappell.com/studies/windows/km/ntoskrnl/api/ex/sysinfo/pro...