4-1
Section
Library Functions
53
4-1-9 ClkSetMessageOnArrival()
FINS Message Reception Notification Registration to Window
Makes settings to notify the specified window with a Windows message when a
FINS message is received.
INT ClkSetMessageOnArrival(PCLKHANDLE hCLK, HWND hWnd, UINT
uMsg);
Type
Variable name
Description
PCLKHANDLE
hCLK
The CLK handle obtained with
ClkOpen()
HWND
hWnd
Window handle to receive event
notification
UINT
uMsg
Message to use for notification
(WM_USER to 0x7FFF)
CLK_SUCCESS is returned if the function ends normally.
CLK_ERROR is returned if the function ends in an error. Detailed error informa-
tion can be obtained using ClkGetLastError().
Both ClkSetMessageOnArrival and ClkSetThreadMessageOnArrival cannot be
registered at the same time.
The function will end in an error if a null pointer is specified for the window handle
specified as the argument. (Detailed error information = ERR_WINDO-
WHANDLE_PARA: Window handle error)
The function will end in an error if an illegal value is specified for the window han-
dle specified as the argument. (Detailed error information = 67: Illegal window
handle)
The function will end in an error if the message specified in the argument is over
0x7FFF. (Detailed error information = ERR_MESSAGE_PARA: Message type
error)
The function will end in an error if a message has already been registered for
FINS message reception. (Detailed error information = 70: Duplicated message
registration error)
4-1-10 ClkSetThreadMessageOnArrival()
FINS Message Reception Notification Registration to Thread
Makes settings to notify the specified thread with a Windows message when a
FINS message is received.
INT ClkSetThreadMessageOnArrival(PCLKHANDLE hCLK, DWORD
dwThreadId, UINT uMsg);
Type
Variable name
Description
PCLKHANDLE
hCLK
The CLK handle obtained with
ClkOpen()
DWORD
dwThreadId
Thread ID to receive event notification
UINT
uMsg
Message to use for notification
(WM_USER to 0x7FFF)
CLK_SUCCESS is returned if the function ends normally.
CLK_ERROR is returned if the function ends in an error. Detailed error informa-
tion can be obtained using ClkGetLastError().
Both ClkSetMessageOnArrival and ClkSetThreadMessageOnArrival cannot be
registered at the same time.
Function
Call Format
Arguments
Return Value
Description
Function
Call Format
Arguments
Return Value
Description
Содержание SYSMAC 3G8F7-CLK12-E
Страница 2: ......
Страница 4: ......
Страница 6: ......
Страница 10: ......
Страница 16: ......
Страница 30: ...1 2 Section Specifications and Configurations 14 1 2 5 Dimensions Wired Model 3G8F7 CLK21 E Unit mm ...
Страница 36: ......
Страница 56: ......
Страница 62: ......
Страница 78: ......
Страница 94: ......
Страница 128: ......
Страница 140: ......
Страница 158: ......