Re: GetVersionEx - dwBuildNumber how to change



<cis@xxxxxxxxxxx> wrote in message news:6f5e7145-0ae4-48e5-a3bd-af2c27da18c6@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 24 Apr., 05:34, Mark <M...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I want to change the value returneddwBuildNumber- it always returns zero,

GetVersionEx() is defined in apis.c wich is prebuild by Microsoft. So
changing CE_BUILD_VER does not change this behaviour without
rebuilding apis.c (which is both prohibited by Microsoft).

Only Microsoft knows which version CE_BUILD_VER had when apic.c was
build.

Correct the version information provided by that API is for the core OS itself and thus owned by Microsoft. It would be disastrous to applications developers if every OEM changed that. You can however provide your own APIs to fetch version numbers related to your specific device.


--
Steve Maillet
Program Manager - .NET Micro Framework
http://blogs.msdn.com/smaillet


.



Relevant Pages

  • Re: RUNDLL32.EXE
    ... 0x66800000 0x155000 Windows Shell Common Dll ... 0x75FA0000 0xA000 BSD Socket API for Windows ... 0x794D0000 0x15000 Microsoft WinSock Extension APIs ...
    (comp.security.firewalls)
  • Re: Explorer keep launching at start up
    ... aka "Nutcase" - Microsoft MVP ... > "Load at next startup only"=dword:00000010 ... > Filters\Export\JPEG\Filter API] ... >> Associate Expert - WindowsXP Expert Zone ...
    (microsoft.public.windowsxp.general)
  • Re: Returning structs
    ... It's pretty good at Win32 API but pretty dreadful at RAD, which is why a lot of people do reach for Borland, and it's at this point that OMF vs COFF actually matters. ... In theory you *could* use a DLL linked by borland using a Microsoft ... jacob at jacob point remcomp point fr ...
    (comp.lang.c)
  • Re: ZoneAlarm -- Alert for "Run a DLL"
    ... I am blocking it from accessing the internet also... ... DLL file called SENSAPI.DLL. ... 0x60000000 0x5000 SENS Connectivity API DLL ... 0x794D0000 0x15000 Microsoft WinSock Extension APIs ...
    (comp.security.firewalls)
  • Re: Why did/does MS make it so difficult and confusing?
    ... Microsoft itself has defined several "platforms" that are based on the ... among all devices for each platform defined by Microsoft. ... The API for the Windows CE operating system is based on the Win 32 ... support for mobile devices was provided by tools ...
    (microsoft.public.pocketpc.developer)