Hdk7515_Powermode; Api Enumerations - Psion EP10 User Manual

Hand-held computer hdk
Hide thumbs Also See for EP10:
Table of Contents

Advertisement

Chapter 3: Software

API Enumerations

This function can only be called by a driver, not by an application. The driver that calls this function must be
loaded by the Peripherals driver at startup.
Returns
ERROR_SUCCESS – if successful.
ERROR_INVALID_HANDLE – the specified handle is invalid.
ERROR_INVALID_PARAMETER – one of the parameters is incorrect or invalid.
ERROR_INVALID_DATA - an exception was generated.
Other errors are possible.
Sample Code
DWORD GetPowerMode(Hdk7515_PowerMode *powerMode)
{
HANDLE hdkHandle = INVALID_HANDLE_VALUE;
DWORD result = Hdk7515_Open(&hdkHandle, Hdk7515_Connector_Docking);
if( result != ERROR_SUCCESS ) {
}
Hdk7515_PowerMode mode = Hdk7515_PowerMode_Manual;
result = Hdk7515_GetPowerMode(hdkHandle, &mode);
if( result == ERROR_SUCCESS ) {
}
Hdk7515_Close(hdkHandle);
hdkHandle = INVALID_HANDLE_VALUE;
return result;
}
3.7.4
API Enumerations
The following enumerations are declared in the file Hdk7515Consts.h:
3.7.4.1

Hdk7515_PowerMode

The Hdk7515_PowerMode enumeration is defined as follows:
typedef enum {

} Hdk7515_PowerMode;

26
Psion EP10 HDK User Manual
return ERROR_NOT_SUPPORTED;
*powerMode = mode;
Hdk7515_PowerMode_Auto = 1,
Hdk7515_PowerMode_Manual = 2,
Hdk7515_PowerMode_Invalid = 0xffffffff

Advertisement

Table of Contents
loading

Related Products for Psion EP10

Table of Contents