| MIL 10 Reference
| Customize Help
| Save Settings

MseqGetHookInfo



See also
Availability
Available in MIL-Lite
Available in MIL

Available on Windows
Not available on Linux

Available on Non-Matrox computer
Available on Matrox 4Sight-X
Available on Matrox 4Sight GP
Available on Matrox Supersight
function map Function map
Examples
Synopsis
Get information about a sequence hook event.
Syntax
MIL_INT MseqGetHookInfo(
MIL_ID EventId, //in
MIL_INT64 InfoType, //in
void *UserVarPtr //out
)
Description

This function allows you to get information about the sequence event that caused the hook-handler function to be called. MseqGetHookInfo() should only be called within the scope of a sequence hook-handler function (see MseqHookFunction()).

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see if there is complementary information.
Parameters
This function is not supported on the selected boards.
Parameters
EventId

Specifies the sequence event identifier received by the hook-handler function. See MseqHookFunction() for more information.

InfoType

Specifies a combination of two values: 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.

UserVarPtr
Accepts the address of one of the following (see the Parameter associations section for specifics on which is expected):
  • MIL_ID

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.

function map For retrieving the information about a sequence hook event
CollapseInfoType Description
UserVarPtr
- Possible values returned
Collapse M_MODIFIED_BUFFER +

Retrieves information about a modified-buffer type of event. This event only occurs if the hook-handler function was hooked using MseqHookFunction().


You must specify a combination value from the following table:
(summarize)
Collapse UserVarPtr data type info

Data type: MIL_ID

Combination constant for M_MODIFIED_BUFFER.

You must add the following value to the above-mentioned value to get information about the internal output buffer.

function map For retrieving information about the internal output buffer
CollapseInfoType Description
UserVarPtr
- Possible values returned
Collapse M_BUFFER_ID

Retrieves the MIL identifier of the internal output buffer modified by MseqProcess().

(summarize)
Collapse UserVarPtr data type info

Data type: MIL_ID

Return value
The returned value is M_NULL if successful. If the operation fails, a non-null (!M_NULL) value is returned.
Compilation information
Header Include mil.h.
Library Use mil.lib.
DLL Requires mil.dll.
MODIFIED BUFFER BUFFER ID