james
james

Reputation: 1035

How to check if Windows is embedded or POS?

I am developing a program that I do not want to be installed on embedded versions of windows. Is there an API call I can make or some standard way of detecting if the current windows version is embedded/pos?

Upvotes: 1

Views: 1097

Answers (2)

rrirower
rrirower

Reputation: 4590

Have a look at the Windows Management Instrumentation classes. In particular, you should be able to get what you want from the Win32_OperatingSystem class object and its various member elements. It provides a bit more information than the OSVERSIONINFOEX structure.

Upvotes: 1

Malkocoglu
Malkocoglu

Reputation: 2601

Maybe, this helps. You have to use the OSVERSIONINFOEX struct and check the wSuiteMask member...

http://msdn.microsoft.com/en-us/library/windows/desktop/ms724833%28v=vs.85%29.aspx

Upvotes: 1

Related Questions