Partager via


CeSetProcessVersion

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function sets the version of the process.

Syntax

BOOL CeSetProcessVersion(
  HANDLE hProcess,
  DWORD dwVersion
);

Parameters

  • hProcess
    [in] Handle to the process.
  • dwVersion
    [in] HIWORD(dwVersion) contains the major version and LOWORD(dwVersion) contains the minor version. Use MAKELONG(dwMinor, dwMajor) as the version parameter.

Return Value

TRUE indicates success. FALSE indicates failure.

Windows Mobile Remarks

The following code example changes the version.

#define WM_VER [num].  //set to desired version.
CeSetProcessVersion(GetCurrentProcess(), MAKELONG(0,WM_VER))

Requirements

Header psapi.h
Library coredll.lib
Windows Embedded CE Windows CE .NET 4.2 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

DLL Functions