Jump to content
Excelsior Forums

union datatypes

Recommended Posts

I am tryng to call GetSystemInfo win32Api function.  It takes a structure that contains a union.  Here is the structure:

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;


How do I represent this to xFunction?


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now