95
Explicit Messaging API
Section A-6
Call Format
BOOL CPNT_RegReceiveExplicitNotifyMessage(
HANDLE Handle,
DWORD ThreadId,
HWND hWnd,
UINT Msg
) ;
Argument
Returned value
It returns TRUE when the message has been successfully registered.
It returns FALSE when both the thread ID and the window handle are null or
when an error occurs. Detailed error content can be obtained with
GetLastError( ).
Remarks
•
The value 0 is stored in both of WPARAM and LPARAM of the notified
message.
•
Set either the thread ID or the window handle. If both are set, an error will be
returned and the message will not be registered.
A-6-4
CPNT_UnRegReceiveExplicitNotifyMessage (Unregister Notice of
Explicit Response Message Received)
Purpose
Unregister the message to notify when an Explicit response message is
received.
Call Format
BOOL CPNT_UnRegReceiveExplicitNotifyMessage (HANDLE Handle) ;
Argument
Returned value
It returns TRUE when the notification message has been successfully
unregistered.
It returns FALSE, when an error occurs. Detailed error content can be
obtained with GetLastError( ).
Remarks
The function CPNT_SendExplicit must be executed in prior to this function.
Type
Parameter
Direction
Description
HANDLE
Handle
IN
Device handle obtained with the
function CPNT_Open
DWORD
ThreadId
IN
ID of the thread to notify (No
setting: NULL)
HWND
hWNd
IN
Window handle to notify (No
setting: NULL)
UINT
Msg
IN
Notification message (Event ID)
Type
Parameter
Direction
Description
HANDLE
Handle
IN
Device handle obtained with the
function CPNT_Open
Summary of Contents for 3G8F7-CRM21
Page 4: ...iv...
Page 10: ...x TABLE OF CONTENTS...
Page 46: ...26 Connecting the Communications Power Supply Cables Section 2 4...
Page 74: ...54 Board Hardware Error Notification Section 4 8...
Page 173: ...153 APPENDIX D Sample Program D 1 Sample Program 154...
Page 230: ...210 Wiring for Power Supply Section E 5...
Page 234: ...214 Index...
Page 236: ...216 Revision History...
Page 237: ......