| Customize Help
| Save Settings

MobjGetHookInfo



Function Map
Synopsis
Get information about a hook event.
Syntax
MIL_INT MobjGetHookInfo(
MIL_ID EventId, //in
MIL_INT64 InfoType, //in
void *UserVarPtr //out
)
Description

This function allows you to get information about the event that caused the hook function to be called. MobjGetHookInfo() should only be called within the scope of an object hook-handler function (see MobjHookFunction()).

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 object-related event identifier received by the hook-handler function (see MobjHookFunction()).

InfoType

Specifies the type of information about which to inquire.

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 inquiring information
Click to summarizeInfoType Description
UserVarPtr
- Possible values returned
Click to summarize M_OBJECT_ID

Inquires the object identifier that called the hook-handler function.

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_ID
Click to summarize Object identifier

Specifies the object identifier that called the hook-handler function.

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.
OBJECT ID