Re: How to set/view Build Version by K
K
Fri Jun 08 18:17:37 CDT 2007
This is a multi-part message in MIME format.
------=_NextPart_000_003B_01C7A9E8.87733650
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: quoted-printable
Once you have a debug build (Non-retail build) of your explorer.exe it =
will show up the build number on desktop.
Take a look at =
$(_WINCEROOT)\public\shell\OAK\HPC\CESHELL\UI\desktopview.cpp you will =
find the following code
#ifndef SHIP_BUILD
WCHAR wszVersion[256];
OSVERSIONINFO VerInfo;
VerInfo.dwOSVersionInfoSize =3D sizeof(OSVERSIONINFO);
::GetVersionEx(&VerInfo);
::wsprintf(wszVersion, L"Windows Embedded CE v%d.%02d (Build %d on =
%s) ",
VerInfo.dwMajorVersion, VerInfo.dwMinorVersion, =
VerInfo.dwBuildNumber, TEXT(__DATE__));
if (m_hbmpDesktop && !fTileBackgroundImage)
{
rc.top =3D rcBlt.bottom + 5;
}
else
{
rc.top =3D rc.top + (rc.bottom - rc.top) / 2 - 8;
}
::DrawText(hdc, wszVersion, -1, &rc, DT_SINGLELINE | DT_CENTER | =
DT_TOP);
#endif
The build number is for the Windows System which is controlled by MSFT =
but not OEM. OEM should have their own build number control and show up =
mechnism if needed but its nothing about the build number for Windows =
CE.
"Wade Ledbetter" <WadeLedbetter@discussions.microsoft.com> wrote in =
message news:A5C479B7-1A9B-41C2-A17D-61F46E645717@microsoft.com...
>=20
> I have several questions related to versioning of NK.bin.
>=20
> 1. How do you set the build version that's displayed on the WindowCE=20
> desktop when the system boots? =20
>=20
> 2. Is there an easy way to automatically set/update this when you =
execute=20
> the build?
>=20
> 3. Is there an easy way to see this build version when looking at an =
NK.bin=20
> file with viewbin or some other utility?
>=20
> Thanks,
>=20
> Wade
------=_NextPart_000_003B_01C7A9E8.87733650
Content-Type: text/html;
charset="Utf-8"
Content-Transfer-Encoding: quoted-printable
=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8">
<META content=3D"MSHTML 6.00.2900.3086" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Once you have a debug build (Non-retail =
build) of=20
your explorer.exe it will show up the build number on =
desktop.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Take a look at=20
$(_WINCEROOT)\public\shell\OAK\HPC\CESHELL\UI\desktopview.cpp you will =
find the=20
following code</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DTerminal size=3D2> #ifndef =
SHIP_BUILD<BR> =20
WCHAR wszVersion[256];<BR> OSVERSIONINFO =
VerInfo;<BR> =20
VerInfo.dwOSVersionInfoSize =3D sizeof(OSVERSIONINFO);</FONT></DIV>
<DIV><FONT face=3DTerminal size=3D2></FONT> </DIV>
<DIV><FONT face=3DTerminal size=3D2> =20
::GetVersionEx(&VerInfo);<BR> ::wsprintf(wszVersion, =
L"Windows=20
Embedded CE v%d.%02d (Build %d on %s)=20
",<BR> &=
nbsp; =20
VerInfo.dwMajorVersion, VerInfo.dwMinorVersion, VerInfo.dwBuildNumber,=20
TEXT(__DATE__));<BR> if (m_hbmpDesktop &&=20
!fTileBackgroundImage)<BR> {<BR> =
rc.top =3D=20
rcBlt.bottom + 5;<BR> }<BR> else<BR> =
{<BR> rc.top =3D rc.top + (rc.bottom - rc.top) / =
2 -=20
8;<BR> }<BR> ::DrawText(hdc, wszVersion, -1, =
&rc,=20
DT_SINGLELINE | DT_CENTER | DT_TOP);<BR> #endif</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>The build number is for the Windows =
System which is=20
controlled by MSFT but not OEM. OEM should have their own build number =
control=20
and show up mechnism if needed but its noth