DanGo
10-15-2007, 03:54 PM
Is there a way to programatically detect that windows XP embedded is running
rather than windows XP. Registry settings, win32 api, .net api??
Thanks,
Dan
Bing.Chen
10-16-2007, 04:09 AM
Dear DanGo,
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
研華 - 微軟台灣區嵌入式作業系統經銷商
http://www.advantech.com.tw/epc/newsletter/ATW/2005MS/
"DanGo" <DanGo@discussions.microsoft.com> 撰寫於郵件新聞:034ECC14-DBB1-438D-98B8-6F45A3F1F060@microsoft.com...
> Is there a way to programatically detect that windows XP embedded is
> running
> rather than windows XP. Registry settings, win32 api, .net api??
>
> Thanks,
> Dan