Any api to find the System is Server or workstation ?

Hi ,

Is any body has a idea of …
Any api to find the System is Server or workstation either Win2k or winNT?

–santosh


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

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

Zyg

-----Original Message-----
From: Santosh S Sulakhe [mailto:xxxxx@wipro.com]
Sent: May 11, 2001 10:55
To: NT Developers Interest List
Subject: [ntdev] Any api to find the System is Server or workstation ?

Hi ,

Is any body has a idea of …
Any api to find the System is Server or workstation either Win2k or winNT?

–santosh


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

> 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: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> Is any body has a idea of …

Any api to find the System is Server or workstation either Win2k or winNT?

Try the ProductOptions registry key.
“WinNT” for workstation.
“ServerNT” for server.
“LanmanNT” for domain controller.

Max


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