MIL_ID ContextAppId, | //in |
MIL_ID EventId, | //in |
MIL_INT64 InfoType, | //in |
void *UserVarPtr | //out |
This function retrieves information about the event that caused the hook-handler function to be called. This function should only be called within the scope of an application hook-handler function call (see MappHookFunction()).
Specifies the identifier of the application context to use.
For specifying the application
context
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the current application context. |
||||||||||||||||||||||||||||||||||||||
Application Context Identifier |
Specifies the application context identifier. |
Specifies the application event identifier received by the hook-handler function. See MappHookFunction() for more information.
Specifies the type of information to get.
See the Parameter associations section for possible values that can be specified.
Specifies the address in which to write the requested information. Note that, when getting parameter values (MappGetHookInfo() with M_PARAM_VALUE), the UserVarPtr parameter should be of the same data type as value of the selected parameter.
See the Parameter associations section for possible values that can be returned.
The tables below list possible values for the InfoType parameter and possible values returned to the UserVarPtr parameter.
If the hook-handler function was called due to an M_ERROR_CURRENT or M_ERROR_FATAL event type, the InfoType parameter can be set to one of the values below.
Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.
For specifying the information type (with
an M_ERROR_CURRENT or M_ERROR_FATAL event type)
|
|||||||||||||||||||||||||||||||||||||||
InfoType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_CURRENT + |
Retrieves the error code returned by the last function call. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CURRENT_SUB_1 + |
Retrieves the first error subcode returned by the last function call. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CURRENT_SUB_2 + |
Retrieves the second error subcode returned by the last function call. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CURRENT_SUB_3 + |
Retrieves the third error subcode returned by the last function call. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CURRENT_SUB_NB |
Retrieves the number of error subcodes associated with the last function called, when it returns an error. (more details...) |
If the hook-handler function was called due to an M_ERROR_GLOBAL event type, the InfoType parameter can be set to one of the values below.
Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.
For specifying the information type (with
an M_ERROR_GLOBAL event type)
|
|||||||||||||||||||||||||||||||||||||||
InfoType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_GLOBAL + |
Retrieves the error code of the first error that has occurred since the last call to MappGetError() (with ErrorType set to M_GLOBAL). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_GLOBAL_FCT + |
Retrieves the opcode associated with the first error-generating function since the last call to MappGetError() (with ErrorType set to M_GLOBAL). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_GLOBAL_SUB_1 + |
Retrieves the first error subcode of the first error that has occurred since the call to MappGetError() (with ErrorType set to M_GLOBAL). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_GLOBAL_SUB_2 + |
Retrieves the second error subcode of the first error that has occurred since the call to MappGetError() (with ErrorType set to M_GLOBAL). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_GLOBAL_SUB_3 + |
Retrieves the third error subcode of the first error that has occurred since the call to MappGetError() (with ErrorType set to M_GLOBAL). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_GLOBAL_SUB_NB |
Retrieves the number of error subcodes associated with the first error that occurred since the last call to MappGetError() (with ErrorType set to M_GLOBAL). (more details...) |
If the hook-handler function was called due to an M_ERROR_CURRENT, M_TRACE_START, or M_TRACE_END event type, the InfoType parameter can be set to the value below.
Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.
For specifying the information type (with
an M_ERROR_CURRENT, M_TRACE_START, or M_TRACE_END event
type)
|
|||||||||||||||||||||||||||||||||||||||
InfoType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_CURRENT_FCT + |
Retrieves the opcode associated with the last function called when it returns an error (for M_ERROR_CURRENT), just started (for M_TRACE_START), or just ended (for M_TRACE_END). (more details...) |
You can add the following value to the above-mentioned values to get the associated message instead of the numeric code.
For getting the associated message
instead of the numeric code
|
|||||||||||||||||||||||||||||||||||||||
InfoType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_MESSAGE |
Returns the error message instead of the error code, or the function name instead of the function code. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: array of type MIL_TEXT_CHAR |
If the hook-handler function was called due to an M_TRACE_START or M_TRACE_END event type, the InfoType parameter can be set to one of the values below.
Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.
For specifying the information type (with
an M_TRACE_START or M_TRACE_END event type)
|
|||||||||||||||||||||||||||||||||||||||
InfoType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_PARAM_NB |
Retrieves the number of parameters associated with the MIL function called. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_SIZE + |
Retrieves the size, in bytes, of the specified parameter. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_INFO + |
Retrieves the data type of the specified parameter of the MIL function called. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_ARRAY_MIL_DOUBLE |
Specifies that the parameter is an array of type MIL_DOUBLE. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_ARRAY_MIL_FLOAT |
Specifies that the parameter is an array of type MIL_FLOAT. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_ARRAY_MIL_ID |
Specifies that the parameter is an array of type MIL_ID. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_ARRAY_MIL_INT |
Specifies that the parameter is an array of type MIL_INT. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_ARRAY_MIL_INT8 |
Specifies that the parameter is an array of type MIL_INT8. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_ARRAY_MIL_INT16 |
Specifies that the parameter is an array of type MIL_INT16. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_ARRAY_MIL_INT32 |
Specifies that the parameter is an array of type MIL_INT32. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_ARRAY_MIL_INT64 |
Specifies that the parameter is an array of type MIL_INT64. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_ARRAY_MIL_UINT |
Specifies that the parameter is an array of type MIL_UINT. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_ARRAY_MIL_UINT8 |
Specifies that the parameter is an array of type MIL_UINT8. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_ARRAY_MIL_UINT16 |
Specifies that the parameter is an array of type MIL_UINT16. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_ARRAY_MIL_UINT32 |
Specifies that the parameter is an array of type MIL_UINT32. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_ARRAY_MIL_UINT64 |
Specifies that the parameter is an array of type MIL_UINT64. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_CONST_ARRAY_MIL_DOUBLE |
Specifies that the parameter is a constant array of type MIL_DOUBLE. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_CONST_ARRAY_MIL_FLOAT |
Specifies that the parameter is a constant array of type MIL_FLOAT. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_CONST_ARRAY_MIL_ID |
Specifies that the parameter is a constant array of type MIL_ID. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_CONST_ARRAY_MIL_INT |
Specifies that the parameter is a constant array of type MIL_INT. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_CONST_ARRAY_MIL_INT8 |
Specifies that the parameter is a constant array of type MIL_INT8. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_CONST_ARRAY_MIL_INT16 |
Specifies that the parameter is a constant array of type MIL_INT16. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_CONST_ARRAY_MIL_INT32 |
Specifies that the parameter is a constant array of type MIL_INT32. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_CONST_ARRAY_MIL_INT64 |
Specifies that the parameter is a constant array of type MIL_INT64. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_CONST_ARRAY_MIL_UINT |
Specifies that the parameter is a constant array of type MIL_UINT. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_CONST_ARRAY_MIL_UINT8 |
Specifies that the parameter is a constant array of type MIL_UINT8. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_CONST_ARRAY_MIL_UINT16 |
Specifies that the parameter is a constant array of type MIL_UINT16. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_CONST_ARRAY_MIL_UINT32 |
Specifies that the parameter is a constant array of type MIL_UINT32. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_CONST_ARRAY_MIL_UINT64 |
Specifies that the parameter is a constant array of type MIL_UINT64. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_CONST_DATA_PTR |
Specifies that the parameter is a constant data pointer. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_CONST_MIL_TEXT |
Specifies that the parameter is a constant of type MIL_TEXT. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_CONST_MIL_TEXT_ASCII |
Specifies that the parameter is a constant of type MIL_TEXT_ASCII. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_CONST_MIL_TEXT_UNICODE |
Specifies that the parameter is a constant of type MIL_TEXT_UNICODE. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_DATA_PTR |
Specifies that the parameter is a data pointer. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_FILENAME |
Specifies that the parameter is of type FILENAME. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_FILENAME_ASCII |
Specifies that the parameter is of type FILENAME_ASCII. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_FILENAME_UNICODE |
Specifies that the parameter is of type FILENAME_UNICODE. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_MIL_DOUBLE |
Specifies that the parameter is of type MIL_DOUBLE. |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_MIL_FLOAT |
Specifies that the parameter is of type MIL_FLOAT. |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_MIL_ID |
Specifies that the parameter is of type MIL_ID. |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_MIL_INT |
Specifies that the parameter is of type MIL_INT. |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_MIL_INT8 |
Specifies that the parameter is of type MIL_INT8. |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_MIL_INT16 |
Specifies that the parameter is of type MIL_INT16. |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_MIL_INT32 |
Specifies that the parameter is of type MIL_INT32. |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_MIL_INT64 |
Specifies that the parameter is of type MIL_INT64. |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_MIL_TEXT |
Specifies that the parameter is of type MIL_TEXT. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_MIL_TEXT_ASCII |
Specifies that the parameter is of type MIL_TEXT_ASCII. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_MIL_TEXT_UNICODE |
Specifies that the parameter is of type MIL_TEXT_UNICODE. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_MIL_UINT |
Specifies that the parameter is of type MIL_UINT. |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_MIL_UINT8 |
Specifies that the parameter is of type MIL_UINT8. |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_MIL_UINT16 |
Specifies that the parameter is of type MIL_UINT16. |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_MIL_UINT32 |
Specifies that the parameter is of type MIL_UINT32. |
||||||||||||||||||||||||||||||||||||||
M_PARAM_TYPE_MIL_UINT64 |
Specifies that the parameter is of type MIL_UINT64. |
||||||||||||||||||||||||||||||||||||||
M_PARAM_VALUE + |
Retrieves the value of the specified parameter of the MIL function called. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
|
You must add the following value to the above-mentioned values to determine the number of the parameter for which to receive the information.
For specifying the parameter
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description
|
||||||||||||||||||||||||||||||||||||||
Value >= 1 |
Specifies the number of the parameter for which to retrieve the information. (more details...) |
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |