Microsoft KB Archive/303442

= DOC: SYSTEM_INFO Structure Incorrectly Defined =

Article ID: 303442

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Encarta Reference Suite 2001

-



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;

Keywords: kbbug kbdocerr KB303442

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.