DOC: SYSTEM_INFO Structure Incorrectly Defined (303442)



The information in this article applies to:

  • Microsoft Windows CE Platform Builder 3.0

This article was previously published under Q303442

SUMMARY

The Platform Builder Documentation incorrectly describes the SYSTEM_INFO structure.

MORE INFORMATION

The Platform Builder Documentation defines the SYSTEM_INFO structure as follows:
typedef struct _SYSTEM_INFO {
DWORD dwOemId;
struct {
    WORD wProcessorArchitecture;
    WORD wReserved;
}
.
.
.
} SYSTEM_INFO, *LPSYSTEM_INFO;

				

The definition above is incorrect. The dwOemId, wProcessorArchitecture, and wReserved members should share a union. The correct definition, which is found in Winbase.h, is as follows:
typedef struct _SYSTEM_INFO {
    union {
        DWORD dwOemId;          // Obsolete field...do not use
        struct {
            WORD wProcessorArchitecture;
            WORD wReserved;
        };
    };
.
.
.
}SYSTEM_INFO, *LPSYSTEM_INFO;
				

Modification Type:MinorLast Reviewed:8/18/2005
Keywords:kbbug kbdocerr KB303442