
Frame Grabber SDK (Windows-C) Developer Guide
3.8 Message Notification
APIs for registering the callback function for exceptions and events.
3.8.1 MV_FG_RegisterExceptionCallBack
Register the callback function for exception information.
API Definition
int MV_FG_RegisterExceptionCallBack(
PORTHANDLE
hPort,
MV_FG_ExceptionCallBack
cbException,
void
*pUser
);
Parameters
hPort
[IN] Handle of the object to which the parameter belongs; the object can be a frame grabber, device,
or stream channel.
cbException
[IN] Exception information callback function.
void (__stdcall *MV_FG_ExceptionCallBack)(
MV_FG_EXCEPTION_TYPE enExceptionType,
void
*pUser
)
enExceptionType
[IN] Exception type information, see MV_FG_EXCEPTION_TYPE for details.
pUser
[IN] User-defined data.
pUser
[IN] User-defined data.
Return Value
Return MV_FG_SUCCESS on success, and return Error Code on failure.
Remarks
● Processing time-consuming operations in the callback function will block the access to the
subsequent exception information.
● This API is available for the exception callback of frame grabbers, devices, and stream channels. The
type of registered callback function varies according to the handle type.
35





















































































































































