|
Re: Is it possible to differentiate WinPE and other Windows?
"Bo Xie" <xiebopublic@sina.com> wrote:
>> Windows PE is Windows XP or Windows Vista (or Windows 2003 or Windows
>> 2008)...
>>
>> It's just loading necessary components into memory so you can use it.
>
>I understand it. But I want to differentiate WinPE and other Windows. I
>think there are differencese and that's why we call it "WinPE", not "WinXP"
>or "Vista". e.g., I heard that WinPE has not "event log" service and
>XP/Vista have it.
>
>I want this kind of trick to differentiate WinPE and other Windows. e.g.,
>there might be a register in register table that shows it is a WinPE, not
>XP/Vista.
>
You might want to look at HKLM\Software\Microsoft\Windows
NT\CurrentVersion
And see if a couple of these sub-keys are always consistent in a WinPE
environment. For example InstallDate would likely be missing or zero.
I see other keys there that you may also be able to test...
Same thing likely goes for
HKLM\Software\Microsoft\Windows\CurrentVersion
Or, you could continue with your idea of testing for existence of a
particular service like eventlog and base your decision on that...
HTH
|