Collapse All
Parallels C API Reference Guide
ContentsIndex
PreviousUpNext
PrlSrvCfgDev_SetDeviceState Function
PrlApi.h  PHT_HW_GENERIC_DEVICE  Send Feedback

Sets the device state enumerated in PRL_GENERIC_DEVICE_STATE.

Syntax
PRL_RESULT PrlSrvCfgDev_SetDeviceState(
    PRL_HANDLE hGenericDevice, 
    PRL_GENERIC_DEVICE_STATE nDeviceState
);
File
Parameters

hGenericDevice
A handle of type PHT_HW_GENERIC_DEVICE, or one of the descendant types, identifying the device.
pnDeviceState
The value to set. Specify a device state to configure it. For generic PCI devices see PrlSrv_ConfigureGenericPci function.

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed. 

PRL_ERR_SUCCESS - function completed successfully. 

Links
Copyright (c) 1999-2009 Parallels Software International Inc.
What do you think about this topic? Send feedback!