Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Constants on msdn 1

Status
Not open for further replies.

SMURF75

Programmer
Aug 28, 2004
87
GB
Hi

When searching msdn for answers, often you find methods where the possible return values are descibed as constants. (Atleast when working with apis)

for example:

msdn said:
wProcessorArchitecture
The system's processor architecture. The following list shows the possible values for this member:
PROCESSOR_ARCHITECTURE_INTEL
PROCESSOR_ARCHITECTURE_MIPS
PROCESSOR_ARCHITECTURE_UNKNOWN
PROCESSOR_ARCHITECTURE_SHX
PROCESSOR_ARCHITECTURE_ARM

How am I supposed to know what PROCESSOR_ARCHITECTURE_SHX has for value? I dont want to guess :D

So, easy question does anyone know of a page where the constants are listed? Or is there any function in VS to retrieve those constants.

- - - - - - - - - - - - - - - - - -
Im three apples high, Im blue, and i most certainly like that cold beer that should be every mans right after a hard days work!
 
These constants are documented in the Windows API header (*.h) files which are part of the platform SDK. On my machine, they're in:
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include

Most of the constants will be in winbase.h, but it's possible to be in other header files too.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
There must be a better way ;)

You cant expect me to go search the include directory each time I want a constant :)

Anyway.... I found my constants in winNT.h so I guess I can hand you a star!

- - - - - - - - - - - - - - - - - -
Im three apples high, Im blue, and i most certainly like that cold beer that should be every mans right after a hard days work!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top