Table: | For the event type |
+ combination: | For the modified buffer type of event |
+ combination: | For getting the string size |
MIL_ID EventId, | //in |
MIL_INT64 InfoType, | //in |
void *UserVarPtr | //out |
This function allows you to get information about the event that caused the hook handler function to be called. MbufGetHookInfo() should only be called within the scope of a buffer or container hook-handler function (see MbufHookFunction()).
Specifies the buffer or container event identifier received by the hook-handler function (see MbufHookFunction()).
Specifies the event type and the type of information about the event to return.
See the Parameter associations section for possible values that can be specified.
Specifies the address in which to write the requested information.
See the Parameter associations section for possible values that can be returned.
The table below lists possible values for the InfoType parameter and possible values returned to the UserVarPtr parameter.
For the event type
|
|||||||||||||||||||||||||||||||||||||||
|
Description | MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_GC_FEATURE_CHANGE_NAME + |
Retrieves the name of the GenICam feature that changed. This information type is only available if MbufGetHookInfo() is called from a function hooked to GenTL feature change events using MbufHookFunction() with M_FEATURE_CHANGE. (summarize)Retrieves the name of the GenICam feature that changed. (more details...) |
‡ | v | ||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
|
‡ | v | ||||||||||||||||||||||||||||||||||||
Value |
Specifies the feature name. |
‡ | v | ||||||||||||||||||||||||||||||||||||
M_MODIFIED_BUFFER + |
Retrieves information about a modified buffer or container type of event. This event occurs if the hook-handler function was hooked using MbufHookFunction() with M_MODIFIED_BUFFER. You must specify a combination value from the following table: Retrieves information about a modified buffer or container type of event. (more details...) |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a void
MORE
Data type info: Data
type: address of a void
MORE
|
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa |
You must add one of the following values to the above-mentioned value to set the type of information to return.
For the modified buffer type of event
|
|||||||||||||||||||||||||||||||||||||||
|
Description | MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_BUFFER_ID |
Retrieves the MIL identifier of the modified buffer or container. (summarize)Retrieves the MIL identifier of the modified buffer or container. (more details...) |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_ID
Data type info: Data
type: address of a MIL_ID
|
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
M_GRAB_TIME_STAMP |
Inquires the time when MIL finished grabbing into the buffer, expressed in seconds. Typically, this will be in seconds since the Host computer was started. This can be used to see if a frame has been missed since the last time stamp. (summarize)Inquires the time when MIL finished grabbing into the buffer, expressed in seconds. (more details...) |
‡ | g | h | j | k M10 |
l | m | p | r U27 |
t U28 |
y U75 |
aa | ||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a
MIL_DOUBLE
Data type info: Data
type: address of a
MIL_DOUBLE
|
‡ | g | h | j | k M10 |
l | m | p | r U27 |
t U28 |
y U75 |
aa | ||||||||||||||||||||||||||
M_MOVED |
Returns whether the buffer modification event was triggered by a move operation performed by MbufChildMove(); that is, the buffer is a child buffer and its X/Y offset was changed. (summarize)Returns whether the buffer modification event was triggered by a move operation performed by MbufChildMove(); that is, the buffer is a child buffer and its X/Y offset was changed. (more details...) |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
M_NO |
Specifies that the buffer modification event was not triggered by a move operation. |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
M_YES |
Specifies that the buffer modification event was triggered by a move operation. |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
M_REGION_OFFSET_X |
Retrieves the X-offset of the modified region (of the buffer). (summarize)Retrieves the X-offset of the modified region (of the buffer). (more details...) |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
M_REGION_OFFSET_Y |
Retrieves the Y-offset of the modified region (of the buffer). (summarize)Retrieves the Y-offset of the modified region (of the buffer). (more details...) |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
M_REGION_SIZE_X |
Retrieves the width of the modified region (of the buffer). (summarize)Retrieves the width of the modified region (of the buffer). (more details...) |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
M_REGION_SIZE_Y |
Retrieves the height of the modified region (of the buffer). (summarize)Retrieves the height of the modified region (of the buffer). (more details...) |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
M_RESIZED |
Returns whether the buffer modification event was triggered by a resize operation performed by MbufChildMove(); that is; the buffer is a child buffer and its XY-size was changed. (summarize)Returns whether the buffer modification event was triggered by a resize operation performed by MbufChildMove(); that is; the buffer is a child buffer and its XY-size was changed. (more details...) |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
M_NO |
Specifies that the buffer modification event was not triggered by a resize operation. |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
M_YES |
Specifies that the buffer modification event was triggered by a resize operation. |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa |
You can add the following value to the above-mentioned value to get the string's length.
For getting the string size
|
|||||||||||||||||||||||||||||||||||||||
|
Description | MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_STRING_SIZE |
Retrieves the length of the string, including the terminating null character ("\0"). (summarize)Retrieves the length of the string, including the terminating null character ("\0"). (more details...) |
‡ | v | ||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | v |
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |