Registertriggerkeynotification – Argox PT-9130 User Manual

Page 46

Advertising
background image

PT-90 Mobile Computer SDK Programming Manual 39

RegisterTriggerKeyNotification

To Register the application to SYSAPIAX.dll, so that SYSAPIAX.dll will send a window message to the application when the

trigger Key is pressed or released

DWORD RegisterTriggerKeyNotification

{

HANDLE

hWnd

,

UINT

uMsg

}

Parameters

hWnd

[in] The handling window of the application to receive the message.

uMsg

[in] The message value to be sent when trigger Key is pressed or released

Returned Values

Return 0 if the operation is successful, otherwise return 1.

Remarks

The application should call UnregisterTriggerKeyNotification function to unregister the prompt message from the

dll. The wParam parameter of window message return the status of trigger key.

wParam

Trigger Key

0

The trigger key is released.

1

The trigger key is pressed.

Example

if(RegisterTriggerKeyNotification(this->m_hWnd,WM_USER+0x0001))

AfxMessageBox(_T("RegisterTriggerKeyNotification FAIL!!"));

Requirements

OS Versions: Windows CE 6.0 or beyond.

Header: sysapiax.h

Link Library: sysapiax.lib

Link DLL: sysapiax.dll
Device: PT90

Advertising