Microsoft has changed the SYSTEM_INFO structure apparantly...
This is what we have in the v8.x Win32api.inc:
How do I implement that union in my SYSTEM_INFO?
Thanks,
Code:
typedef struct _SYSTEM_INFO { union { DWORD dwOemId; struct { WORD wProcessorArchitecture; WORD wReserved; } ; } ; DWORD dwPageSize; LPVOID lpMinimumApplicationAddress; LPVOID lpMaximumApplicationAddress; DWORD_PTR dwActiveProcessorMask; DWORD dwNumberOfProcessors; DWORD dwProcessorType; DWORD dwAllocationGranularity; WORD wProcessorLevel; WORD wProcessorRevision; } SYSTEM_INFO; Members dwOemId An obsolete member that is retained for compatibility. Applications should use the wProcessorArchitecture branch of the union.
Code:
TYPE SYSTEM_INFO dwOemID AS DWORD dwPageSize AS DWORD lpMinimumApplicationAddress AS DWORD lpMaximumApplicationAddress AS DWORD dwActiveProcessorMask AS DWORD dwNumberOfProcessors AS DWORD dwProcessorType AS DWORD dwAllocationGranularity AS DWORD wProcessorLevel AS WORD wProcessorRevision AS WORD END TYPE
Thanks,
Comment