Collapse All
Virtuozzo Virtualization SDK C API Reference
ContentsIndex
PreviousUpNext
PrlStat_GetOsUptime Function
PHT_SYSTEM_STATISTICS

Returns the total virtual machine usage time in seconds.

Syntax
PRL_RESULT PrlStat_GetOsUptime(
    PRL_HANDLE hStat, 
    PRL_UINT64_PTR pnUptime
);
File

PrlApiStat.h

Parameters

hStat
A handle of type PHT_SYSTEM_STATISTICS.
pnUptime
[out] A pointer to a variable that receives the result.

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed. 

PRL_ERR_SUCCESS - function completed successfully. 

Remarks

The virtual machine usage counter is not reset when the virtual machine is stopped and restarted, so it's value reflects the total uptime since the virtual machine was first started.

Links
Copyright ©2016-2017 Parallels International GmbH. All rights reserved.