Is there a way to detect if the Windows OS is a server (2003/2008) or a workstation (XP/Vista/Win7)?
===

I want to know Win Api to detect the Windows OS is a server (2003/2008) or a workstation (XP/Vista/Win7)? 