98
Board Request Notification API
Section A-8
A-8
Board Request Notification API
A-8-1
CPNT_RegBDWDTNotifyMessage (Register Board Hardware Error
Message)
Purpose
Register the Windows message to notify a Board hardware error.
Call Format
BOOL CPNT_RegBDWDTNotifyMessage (
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
•
This is used to notify the user application of a hardware error when it occurs
on the CompoNet Master Board and stops the operation.
•
See Section 4-8 for the Board hardware error notification function.
•
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 is
returned and the message is not registered.
A-8-2
CPNT_UnRegBDWDTNotifyMessage (Unregister Board Hardware
Error Message)
Purpose
Unregister the Windows message to notify a Board hardware error.
Call Format
BOOL CPNT_UnRegBDWDTNotifyMessage (HANDLE Handle) ;
Argument
Returned value
It returns TRUE when the message has been successfully unregistered.
It returns FALSE when an error occurs.
Detailed error content can be obtained with GetLastError( ).
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: ......