© 2013 Thorlabs GmbH276
DCx Cameras
4.3.61 is_InitEvent
Syntax
INT is_InitEvent (HIDS hCam, HANDLE hEv, INT which)
Description
is_InitEvent() initializes the event handle for the specified event object. This registers the event object in the
uc480 kernel driver.
Attention
Using USB cameras under Windows
The following events require a Windows message loop. This message loop has to be executed by the thread that
loads the uc480 API. The message loop is usually provided by the application window. In some cases, the
message loop might not be created automatically (e.g. in console applications). In this case you will need to
implement the message loop yourself.
This applies to the following uc480 events:
IS_SET_EVENT_REMOVE
IS_SET_EVENT_REMOVAL
IS_SET_EVENT_DEVICE_RECONNECTED
IS_SET_EVENT_NEW_DEVICE
If no message loop exists, a USB camera will not be automatically detected after reconnecting.
Input parameters
Event handle created by the CreateEvent() Windows
API function.
ID of the event to be initialized (see is_EnableEvent()
)
Return values
One of the submitted parameters is outside the valid
range or is not supported for this sensor or is not
available in this mode.
Function executed successfully
Related functions
is_EnableEvent()
is_DisableEvent()
is_ExitEvent()
209
209
205
214