Dear kc,
Try this
1. Call API
BOOL GetVersionEx(
LPOSVERSIONINFO lpVersionInfo
);
OSVERSIONINFOEX structure (which is the output of this call)
One of the members is wSuiteMask (a WORD variable).
Check the VER_SUITE_EMBEDDEDNT (0x00000040) flag in this variable.
2. Query value in Registry
[HKEY_LOCAL_MACHINE\SYSTEM\Cur-rentControlSet\Control\Product-Options]
Key Name: ProductSuite
Type: MULTI_SZ
Value: EmbeddedNT
(In XP Pro, it seems that no content in this key)
--
Best Regards,
Bing Chen
Advantech Co., Ltd.
Microsoft eMVP
¬ãµØ - ·L³n¥xÆW°Ï´O¤J¦¡§@·~¨t²Î¸g¾P°Ó
http://www.advantech.com.tw/epc/newsletter/ATW/2005MS/