Collapse All
Parallels Virtualization SDK
ContentsIndex
PreviousUpNext
PrlCtTemplate_GetOsVersion Function
PHT_CT_TEMPLATE

Returns the version of the operating system for which the specified template is running.

Syntax
PRL_RESULT PrlCtTemplate_GetOsVersion(
    PRL_HANDLE hTemplate, 
    PRL_UINT32_PTR pnOsVersion
);
File

PrlApiDeprecated.h

Parameters

hTemplate
A handle of type PHT_CT_TEMPLATE.
pnOsVersion
[out] A pointer to a variable that receives the OS version.

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed. 

PRL_ERR_NO_DATA - the OS information is not present in the template configuration. 

PRL_ERR_SUCCESS - function completed successfully. 

Remarks

The OS versions are defined in the PrlOses.h file as macros. Look for the macros that are prefixed with PVS_GUEST_VER_ (e.g. PVS_GUEST_VER_LIN_REDHAT).

Links
© 2021 Parallels International GmbH. All rights reserved.