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 hook-handler function (see MbufHookFunction()).
Specifies the buffer 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.
Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.
For the event type
|
|||||||||||||||||||||||||||||||||||||||
InfoType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_MODIFIED_BUFFER + |
Retrieves information about a modified buffer type of event. (more details...) |
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
|
|||||||||||||||||||||||||||||||||||||||
InfoType |
Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_BUFFER_ID |
Retrieves the MIL identifier of the modified buffer. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_ID |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_GRAB_TIME_STAMP |
Retrieves the time the event generated service request, in secs. (more details...) |
† | f | g | h | j | k | l | m | p | q | r | |||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_DOUBLE |
† | f | g | h | j | k | l | m | p | q | r | |||||||||||||||||||||||||||
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. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_NO |
Specifies that the buffer modification event was not triggered by a move operation. |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_YES |
Specifies that the buffer modification event was triggered by a move operation. |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_REGION_OFFSET_X |
Retrieves the X-offset of the modified region (of the buffer). (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_REGION_OFFSET_Y |
Retrieves the Y-offset of the modified region (of the buffer). (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_REGION_SIZE_X |
Retrieves the width of the modified region (of the buffer). (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_REGION_SIZE_Y |
Retrieves the height of the modified region (of the buffer). (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
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 X/Y size was changed. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_NO |
Specifies that the buffer modification event was not triggered by a resize operation. |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_YES |
Specifies that the buffer modification event was triggered by a resize operation. |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s |
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |