TWUGetUpdateVersion
The TWUGetUpdateVersion function returns the version of the application whose package information file was retrieved by a prior call to TWUCheckUpdate. You can use this version in prompts to the user during the update process. The returned version corresponds to the DisplayVersion value in the package information file.
const TCHAR * TWUGetUpdateVersion( TWUPDATE hUpdate );
Parameters
- hUpdate
- [Input] Handle of active update session, created with TWUOpenUpdate.
Return value
If the function succeeds, it returns a pointer to the application's version. If the function fails, it returns NULL.