![background image](http://html1.mh-extra.com/html/omron/3g8f7-crm21/3g8f7-crm21_user-manual_743553115.webp)
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
Содержание 3G8F7-CRM21
Страница 4: ...iv...
Страница 10: ...x TABLE OF CONTENTS...
Страница 30: ...10 Specifications Section 1 7 1 7 3 Dimensions 3G8F7 CRM21 PCI unit mm 3G8F8 CRM21 CompactPCI unit mm...
Страница 46: ...26 Connecting the Communications Power Supply Cables Section 2 4...
Страница 74: ...54 Board Hardware Error Notification Section 4 8...
Страница 173: ...153 APPENDIX D Sample Program D 1 Sample Program 154...
Страница 230: ...210 Wiring for Power Supply Section E 5...
Страница 234: ...214 Index...
Страница 236: ...216 Revision History...
Страница 237: ......