Problem with XPE SP1 and GetVersionEx

  • Thread starter Thread starter Steffen Brummer
  • Start date Start date
S

Steffen Brummer

Hi,

I'm trying to determine if my application is running XPE with or without
SP1, but a call to GetVersionEx always returns 0 in the wServicePackMajor
and wServicePackMinor fields.
The values are correct when I run my program on a WinXP Pro SP1 and Win2k
Pro SP3, so I wonder if I'm not running XPE SP1 as I thought or if it simply
does not?
Maybee I need to add a special component in my configuration?

The other values seems to be valid except for the CSDVersion which is also
an empty string.

Regards,
Steffen Brummer
 
Hi Steffen,
I'm trying to determine if my application is running XPE with or without
SP1, but a call to GetVersionEx always returns 0 in the wServicePackMajor
and wServicePackMinor fields.
The values are correct when I run my program on a WinXP Pro SP1 and Win2k
Pro SP3, so I wonder if I'm not running XPE SP1 as I thought or if it simply
does not?
Maybee I need to add a special component in my configuration?

The other values seems to be valid except for the CSDVersion which is also
an empty string.


Try using goggle to search this NG.

This is a bug, but I think that I saw solution to this problem somewhere in
this group, recently.


Best regards,
Slobodan
 
Add to registry,

HKLM\SYSTEM\CurrentControlSet\Control\Windows\CSDVersion,
REG_DWORD,value 0x100

I don't know if this is enough.

Best regards,
Slobodan Brcin
 
Thank you for your quick answer,

If I add the missing information to the registry, then how can I be sure
that my build really is SP1?
I guess I can make GetVersionEx return the correct value if it reads from
the registry, assume the CSDVersion text is taken from:

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CSDVersion

The key you mentioned seems to hold the Major and Minor SP versions, so it
should be possible, but is it correct to do it that way?

Best regards,
Steffen Brummer
 
The key you mentioned seems to hold the Major and Minor SP versions, so it
should be possible, but is it correct to do it that way?

For now, until some QFE fixes the problem.


Best regards,
Slobodan
 
Back
Top