#define MAJOR_VERSION 1 |
#define MINOR_VERSION 11 |
typedef void* INKUSB_CONTEXT |
typedef void* INKUSB_DEVICE_CONTEXT |
typedef struct tagDATA_FLAGS * PRPT_DATA_FLAGS |
typedef USR_SCREENSAVER* PUSR_SCREENSAVER |
typedef struct tagDATA_FLAGS RPT_DATA_FLAGS |
typedef HRESULT(* USR_CONFIG_HANDLER)(INKUSB_CONTEXT libContext, INKUSB_DEVICE_CONTEXT devContext) |
This routine will handle device configuration on first-time open if OPEN_CONFIG is true when the device is opened for the first time on the system.
If the routine returns an error condition (FAILED(x)) then the open routine will fail the open call.
typedef void(* USR_DATA_READY_HOOK)(INKUSB_DEVICE_CONTEXT devContext, void *pUserDevContext) |
typedef HRESULT(* USR_SETTINGS_HANDLER)(SETTINGS_OP operation, INKUSB_CONTEXT libContext, INKUSB_DEVICE_CONTEXT devContext, POPTIONS pOptions, PSYS_CAL pCal, PSCREENSAVER_INFO pScreenSaverInfo) |
Used during opening of connection to attempt to read/write device settings to persistent media.
enum INKUSB_PARAM |
PARAM_fDisplayDefaultBitmap | |
PARAM_fTransformInkingArea | |
PARAM_fDisplayConfigDialog | |
PARAM_fSuppressbitmap | |
PARAM_fPopupConfigOnFirstUse |
00271 { 00272 PARAM_fDisplayDefaultBitmap = 0, 00273 PARAM_fTransformInkingArea, 00274 PARAM_fDisplayConfigDialog, 00275 PARAM_fSuppressbitmap, 00276 PARAM_fPopupConfigOnFirstUse 00277 } INKUSB_PARAM;
enum PARAM_KEY |
00174 { 00175 OPT_VERSION, 00176 OPT_OPENCONFIG, 00177 OPT_WRITEREG, 00178 OPT_SUPPRESSBITMAP, 00179 OPT_RAWVALUES, 00180 OPT_SCREENSAVER, 00181 OPT_SCREENSAVER_TXT, 00182 OPT_SCREENSAVER_DEFAULT_IMG, 00183 OPT_REG_SAVER_TIMEOUT_KEY, 00184 OPT_CLOSETIMEOUT, 00185 OPT_LOGFILE, 00186 OPT_FLUSHLOG, 00187 OPT_LOGMSG, 00188 OPT_BITMAP_PATH, 00189 OPT_EXCLUSIVEOPEN, 00190 OPT_RUNNINGMODE, 00191 OPT_CLEARREGKEY, 00192 OPT_GETXML_OUTPUT, 00193 OPT_DEFAULT_BITMAP_INDEX_KEY, 00194 OPT_USERDEFINEPATH, 00195 OPT_EPADPROINUSE, 00196 OPT_GETINDEX_STRING = 128 00197 } PARAM_KEY;
enum SCREEN_SAVER_STATE |
00065 { 00066 SS_INITIALIZING, // Initialization in process 00067 SS_IDLE, // Normal user display 00068 SS_ACTIVE, // user-defined screen saver 00069 SS_WAIT_NO_DATA, // Exited, waiting for no data 00070 SS_TERMINATED // Note that bad startups immediately terminate. 00071 } SCREEN_SAVER_STATE;
enum SETTINGS_OP |
HRESULT inkdoCombineLayers | ( | INKUSB_DEVICE_CONTEXT | hDevContext, | |
int | layer | |||
) |
HRESULT inkUSBConnClrScrn | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
INT8U | layer, | |||
INT8U | color | |||
) |
HRESULT inkUSBConnDrawBitmap | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
LCD_BITMAP * | pBitmap | |||
) |
HRESULT inkUSBConnDrawLine | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
LCD_LAYER | layer, | |||
PEN_COLOR | color, | |||
LCD_POINT | p1, | |||
LCD_POINT | p2 | |||
) |
HRESULT inkUSBConnDrawScreen | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
LCD_SCREEN * | pScreen | |||
) |
HRESULT inkUSBConnGetDataReport | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
PRPTDATA | pReport, | |||
DWORD * | p_dwTimestamp | |||
) |
HRESULT inkUSBConnGetLayer | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
INT8U | layer, | |||
LAYER_CODE * | pLayerState | |||
) |
HRESULT inkUSBConnGetMixCode | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
MIX_CODE * | pMixCode | |||
) |
HRESULT inkUSBConnGetOptions | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
OPTIONS * | pOptions | |||
) |
HRESULT inkUSBConnGetSystemCal | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
SYS_CAL * | pCal | |||
) |
HRESULT inkUSBConnMapToLCD | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
int * | p_LCD_x, | |||
int * | p_LCD_y, | |||
int * | p_absX, | |||
int * | p_absY | |||
) |
HRESULT inkUSBConnMouseEcho | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
INT8U | bmButtons, | |||
INT8S | dx, | |||
INT8S | dy | |||
) |
HRESULT inkUSBConnResetDefaults | ( | INKUSB_DEVICE_CONTEXT | hContext | ) |
HRESULT inkUSBConnSaveSettings | ( | INKUSB_DEVICE_CONTEXT | hDevContext | ) |
HRESULT inkUSBConnSelfTest | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
INT8U * | pResultCode | |||
) |
HRESULT inkUSBConnSetLayer | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
INT8U | layer, | |||
LAYER_CODE | layerState | |||
) |
HRESULT inkUSBConnSetMixCode | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
MIX_CODE | mixCode | |||
) |
HRESULT inkUSBConnSetOptions | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
OPTIONS * | pOptions | |||
) |
HRESULT inkUSBConnSetSystemCal | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
SYS_CAL * | pCal | |||
) |
INKUSB_CONTEXT inkUSBCreateContext | ( | USR_SETTINGS_HANDLER | userSettingsHandler, | |
USR_CONFIG_HANDLER | userConfigHandler, | |||
void * | pUserContext | |||
) |
Creates a library instance context -- a single library instance context can have multiple devices open concurrently.
HRESULT inkUSBDbgGetDebugParam | ( | INKUSB_CONTEXT | hContext, | |
INKUSB_DEVICE_CONTEXT | hDeviceContext, | |||
PARAM_KEY | key, | |||
_TCHAR * | pBuffer, | |||
size_t | outBufferLength, | |||
DWORD * | p_dwLength | |||
) |
HRESULT inkUSBDbgGetDeviceHandle | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
HANDLE * | pHandle | |||
) |
HRESULT inkUSBDbgSetDebugParam | ( | INKUSB_CONTEXT | hContext, | |
INKUSB_DEVICE_CONTEXT | hDeviceContext, | |||
PARAM_KEY | key, | |||
_TCHAR * | pBuffer, | |||
DWORD | dwLength | |||
) |
HRESULT inkUSBDestroyContext | ( | INKUSB_CONTEXT | context | ) |
Closes a given context. Closes all opened device contexts associated with the given library context.
HRESULT inkUSBDevCheckUserScreenSaverThreadTerminated | ( | INKUSB_DEVICE_CONTEXT | hDevContext, | |
BOOL & | retVal | |||
) |
Used for user-defined screen-saver thread to determine if the thread has been terminated but another thread. Flag is returned as a TRUE/FALSE condition.
Note that this is NOT USED for the default screen saver thread.
HRESULT inkUSBDevConnClrScrn | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
INT8U | layer, | |||
INT8U | color | |||
) |
HRESULT inkUSBDevConnDrawBitmap | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
LCD_BITMAP * | pBitmap | |||
) |
HRESULT inkUSBDevConnSetLayer | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
INT8U | layer, | |||
LAYER_CODE | layerState | |||
) |
HRESULT inkUSBDevGetCachedCal | ( | INKUSB_DEVICE_CONTEXT | hDevContext, | |
FIRMWARE::PSYS_CAL | pSysCal | |||
) |
HRESULT inkUSBDevGetCachedOptions | ( | INKUSB_DEVICE_CONTEXT | hDevContext, | |
FIRMWARE::POPTIONS | pOptions | |||
) |
BOOLEAN inkUSBDevGetOverlappedResult | ( | INKUSB_DEVICE_CONTEXT | devContext, | |
LPOVERLAPPED | lpOverlapped, | |||
LPDWORD | lpNumberOfBytesTransferred, | |||
BOOL | bWait | |||
) |
HRESULT inkUSBDevGetParam | ( | INKUSB_DEVICE_CONTEXT | hDevContext, | |
INKUSB_PARAM | key, | |||
INT32U * | pValue | |||
) |
BOOLEAN inkUSBDevReadFile | ( | INKUSB_DEVICE_CONTEXT | devContext, | |
LPVOID | lpBuffer, | |||
DWORD | nNumberOfBytesToRead, | |||
LPDWORD | lpNumberOfBytesRead, | |||
LPOVERLAPPED | lpOverlapped | |||
) |
HRESULT inkUSBDevReadReport | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
FIRMWARE::REPORT_ID | id, | |||
void * | pBuffer, | |||
INT16U * | p_Length | |||
) |
HRESULT inkUSBDevReadReport | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
void * | pFormattedReport, | |||
INT16U * | p_Length | |||
) |
HRESULT inkUSBDevRestartScreenSaverThread | ( | INKUSB_DEVICE_CONTEXT | hDevContext | ) |
Used to resume the screen saver thread *after* a call to inkUSBDevTerminateScreenSaverThread has occurred.
Note that the screen saver thread is created by default during the open process.
HRESULT inkUSBDevSetDebugFile | ( | INKUSB_DEVICE_CONTEXT | hDevContext, | |
FILE * | hFile | |||
) |
HRESULT inkUSBDevSetParam | ( | INKUSB_DEVICE_CONTEXT | hDevContext, | |
INKUSB_PARAM | key, | |||
INT32U | value | |||
) |
HRESULT inkUSBDevTerminateScreenSaverThread | ( | INKUSB_DEVICE_CONTEXT | hDevContext | ) |
Used by configuration dialog to "disable" screen saver thread while dialog is executing.
HRESULT inkUSBDevWriteReport | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
FIRMWARE::REPORT_ID | id, | |||
void * | pBuffer, | |||
INT16U * | p_Length, | |||
BOOL | fIsDataThread = FALSE | |||
) |
HRESULT inkUSBDevWriteReport | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
void * | pFormattedReport, | |||
INT16U * | p_Length | |||
) |
HRESULT inkUSBePadCloseConnection | ( | INKUSB_DEVICE_CONTEXT | hContext | ) |
HRESULT inkUSBePadConnGetMouseOn | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
CHAR * | p_fState | |||
) |
HRESULT inkUSBePadConnGetPhysicalExtents | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
double * | pExtX, | |||
double * | pExtY | |||
) |
HRESULT inkUSBePadConnGetRanges | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
INT * | p_min_x, | |||
INT * | p_max_x, | |||
INT * | p_min_y, | |||
INT * | p_max_y, | |||
INT * | p_min_press, | |||
INT * | p_max_press, | |||
INT * | p_nButtons | |||
) |
HRESULT inkUSBePadConnGetReportRate | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
INT * | p_nPackets, | |||
INT * | p_milliseconds | |||
) |
HRESULT inkUSBePadConnGetSerialNumber | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
GUID * | p_serialNum | |||
) |
HRESULT inkUSBePadConnPushMouseData | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
BYTE | dx, | |||
BYTE | dy, | |||
CHAR | bmButtons | |||
) |
HRESULT inkUSBePadConnSetMouseOn | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
CHAR | fState | |||
) |
IEUSB_HANDLE inkUSBePadGetDeviceHandle | ( | INKUSB_DEVICE_CONTEXT | context | ) |
HRESULT inkUSBePadGetNumDevices | ( | INKUSB_CONTEXT | hContext, | |
INT * | p_iNumDevices | |||
) |
HRESULT inkUSBePadGetSerialNumber | ( | INKUSB_CONTEXT | context, | |
int | iDeviceNum, | |||
GUID * | p_serialNum | |||
) |
void* inkUSBePadGetUserContext | ( | INKUSB_DEVICE_CONTEXT | context | ) |
INKUSB_DEVICE_CONTEXT inkUSBePadOpenConnection | ( | INKUSB_CONTEXT | context, | |
INT | iDeviceNum, | |||
void * | pUserContext, | |||
PUSR_SCREENSAVER | UserScreenSaver, | |||
USR_DATA_READY_HOOK | userDataNotifyReady | |||
) |
HRESULT inkUSBePadProInUse | ( | INKUSB_DEVICE_CONTEXT | hDevContext | ) |
USR_DATA_READY_HOOK inkUSBePadSetDataHook | ( | INKUSB_DEVICE_CONTEXT | context, | |
USR_DATA_READY_HOOK | userDataNotifyReady, | |||
void * | pUserContext | |||
) |
HRESULT inkUSBGetParamKey | ( | _TCHAR * | inStr, | |
PARAM_KEY * | key | |||
) |
HRESULT inkUSBGetScreenSaverInfo | ( | INKUSB_CONTEXT | hContext, | |
PSCREENSAVER_INFO | pInfo | |||
) |
void* inkUSBGetUserContext | ( | INKUSB_CONTEXT | context | ) |
HRESULT inkUSBintConnClrScrn | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
INT8U | layer, | |||
INT8U | color, | |||
BOOL | fIsDataThread | |||
) |
HRESULT inkUSBintConnDrawBitmap | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
LCD_BITMAP * | pBitmap, | |||
BOOL | fIsDataThread | |||
) |
HRESULT inkUSBintConnDrawLine | ( | INKUSB_DEVICE_CONTEXT | hContext, | |
LCD_LAYER | layer, | |||
PEN_COLOR | color, | |||
LCD_POINT | p1, | |||
LCD_POINT | p2, | |||
BOOL | fIsDataThread | |||
) |
HRESULT inkUSBintOpenConnection | ( | INKUSB_DEVICE_CONTEXT | pContext, | |
INT | iDeviceNum, | |||
BOOL | fSetupDevice = TRUE | |||
) |
HRESULT inkUSBLibGetParam | ( | INKUSB_CONTEXT | hLibContext, | |
INKUSB_PARAM | key, | |||
INT32U * | pValue | |||
) |
HRESULT inkUSBLibSetParam | ( | INKUSB_CONTEXT | hLibContext, | |
INKUSB_PARAM | key, | |||
INT32U | value | |||
) |
HRESULT inkUSBSetDebugFile | ( | INKUSB_CONTEXT | hLibContext, | |
FILE * | hFile | |||
) |
HRESULT inkUSBSetScreenSaverInfo | ( | INKUSB_CONTEXT | hContext, | |
PSCREENSAVER_INFO | pInfo | |||
) |
HRESULT inkUSBShowConfig | ( | INKUSB_DEVICE_CONTEXT | hDevContext | ) |
HRESULT inkUSBWaitForMultEventsOrUserScreenSaverThreadTerminated | ( | INKUSB_DEVICE_CONTEXT | hDevContext, | |
const DWORD | eventCount, | |||
const HANDLE | eventArray[], | |||
const DWORD | timeout, | |||
BOOL & | abortFlag, | |||
DWORD & | index | |||
) |
Used for user-defined screen-saver thread to determine if the thread has been terminated but another thread. Flag is returned as a TRUE/FALSE condition.
Note that this is NOT USED for the default screen saver thread.