Finding whoose XPe

  • Thread starter Thread starter Simon Wilton
  • Start date Start date
S

Simon Wilton

This follows on from a thread a week or so back that dealt with an
application ascertaining if it was running on XPe - as opposed to any other
flavour of Windows.

What I would like to do (paranoia probably) is to have my applicacations
check that they are running on a copy of XPe that I built.

TIA

Simon
 
Simon,

Could you have it pilfer through the weruntime.ini looking for your master
product key? I can't remember if weruntime.ini is altered during FBA, but
this may work. Your not being paranoid though, if there's a way to do it
people will find it :) HTH,

Brad
 
Try this sample code...


OSVERSIONINFOEX osi;

BOOL bOS;

size_t sSize;
WORD suiteMask;
WORD wEmbedded = 0x40;
BOOL bIsEmbedded;

sSize = sizeof( osi );
memset( &osi, 0, sSize );
osi.dwOSVersionInfoSize = sSize;

bOS = GetVersionEx( (OSVERSIONINFO *)&osi );
suiteMask = osi.wSuiteMask;
bIsEmbedded = ( ((suiteMask & wEmbedded) ==
wEmbedded) ? TRUE : FALSE);




HTH,

ej
 
Hi, Simon!
This says its XPe or not. What I wanted to get at is is it MY xpe build.
Search registry for the PID. I remember it was in 2 places. Then check
in your app the PID.

HTH, Nick
 
Back
Top