windowsinstallationversion-detectionsmall-business-server

How do I detect Windows Small Business Server operating system?


My employer is considering releasing two versions of the same Windows Server-based product; a cheaper "small business" edition and a more expensive "enterprise" edition.

There will be a number of differences between the editions, but ideally we'd like to restrict the "small business" edition to only install on Microsoft Small Business Server (SBS) 2000 or the newer Windows SBS 2003 and 2008.

Is there a reliable way to detect (via an API call or the Registry, for example) whether or not the operating system is one of those SBS products?


Solution

  • I guess GetVersionEx(), which returns OSVERSIONINFOEX will do:'