RE: Any api to find the System is Server or workstati- on ?

Max,

I did not make my post as clear as I may have. From the relevant API
documentation:

Before calling the GetVersionEx function, set the dwOSVersionInfoSize member
of the OSVERSIONINFO data structure to sizeof(OSVERSIONINFO).

Windows NT 4.0 SP6 and later: This member can be a pointer to an
OSVERSIONINFOEX structure. Set the dwOSVersionInfoSize member to
sizeof(OSVERSIONINFOEX) to identify the structure type.

It’s the support of OSVERSIONEX structure (which contains the extra bits
that indicate server/pro/personal etc) that reauires SP6.

Zyg

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: May 11, 2001 13:11
To: NT Developers Interest List
Subject: [ntdev] RE: Any api to find the System is Server or workstation
?

See GetVersionEx and the OSVERSIONEX structure. Unfortunately, for NT
4.0,
the call is only supported with Service Pack 6.

Wrong. From the MSDN library:

“Windows NT/2000: Requires Windows NT 3.5 or later.”

You could mixed GetVersionEx with VerifyVersionInfo.

Max


You are currently subscribed to ntdev as: xxxxx@jetform.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com