Detecting Windows XP Embedded vs Windows XP

G

Guest

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
 
B

Bing.Chen

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

¬ãµØ - ·L³n¥xÆW°Ï´O¤J¦¡§@·~¨t²Î¸g¾P°Ó
http://www.advantech.com.tw/epc/newsletter/ATW/2005MS/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top