Skip to main content

MfuncInquire

BoardSupported
Host SystemYes
V4L2Yes
Clarity UHDYes
Concord PoENo
GenTLYes
GevIQYes
GigE VisionYes
IndioNo
Iris GTXYes
Radient eV-CLYes
Rapixo CLYes
Rapixo CoFYes
Rapixo CXPYes
USB3 VisionYes

Retrieve information about an Aurora Imaging Library object.

Syntax

AIL_INT MfuncInquire(
AIL_ID AilObjectId, //in
AIL_INT64 InquireType, //in
void * UserVarPtr //out
)

Description

This function retrieves information about the specified Aurora Imaging Library object.

Parameters

AilObjectId (in, AIL_ID)

Specifies the identifier of the Aurora Imaging Library object. Depending on the inquire type, this object must have been allocated using a specific Aurora Imaging Library allocation function.

InquireType (in, AIL_INT64)

Specifies the Aurora Imaging Library object feature about which to inquire.

UserVarPtr *(out, void)

Specifies the address in which to write the requested information. Since the MfuncInquire function also returns the requested information, you can set this parameter to M_NULL.

Parameter Associations

For different Aurora Imaging Library object types

The following InquireType parameter settings can be specified for different Aurora Imaging Library object types.


M_BUFFER_INFO

Inquires the handle of the Aurora Imaging Library buffer. This buffer must have been allocated using one of the MbufAlloc... functions.


M_OBJECT_PTR

Inquires the address of the user-defined Aurora Imaging Library object allocated using MfuncAllocId.

For user-defined Aurora Imaging Library functions

The following InquireType parameter settings can be specified when the object passed to AilObjectId is a user-defined Aurora Imaging Library function context allocated using MfuncAlloc or MfuncAllocScript.


M_CALLER_BITNESS

Inquires the bitness of the operating system on which the function context was created.

ValueDescription
32Specifies a 32-bit platform.
64Specifies a 64-bit platform.

M_PARAM_NUMBER

Inquires the number of parameters associated with the specified user-defined Aurora Imaging Library function context.


M_PARAM_SIZE

Inquires the size, in bytes, of the specified parameter. For an array parameter, the size is: _Number of items in the array_ X _Size of the item._


M_PARAM_TYPE_INFO

Inquires the data type of the specified parameter.

ValueDescription
M_PARAM_TYPE_AIL_DOUBLESpecifies that the parameter is of type AIL_DOUBLE.
M_PARAM_TYPE_AIL_IDSpecifies that the parameter is of type AIL_ID.
M_PARAM_TYPE_AIL_INTSpecifies that the parameter is of type AIL_INT.
M_PARAM_TYPE_AIL_INT32Specifies that the parameter is of type AIL_INT32.
M_PARAM_TYPE_AIL_INT64Specifies that the parameter is of type AIL_INT64.
M_PARAM_TYPE_AIL_TEXTSpecifies that the parameter is of type AIL_TEXT. This implies that the character encoding scheme of the AIL_TEXT parameter is the scheme you are currently using.
M_PARAM_TYPE_AIL_TEXT_ASCIISpecifies that the parameter is of type AIL_TEXT_ASCII. This only appears when you are currently using a character encoding scheme other than ASCII, and the parameter you are inquiring is specifically in ASCII.
M_PARAM_TYPE_AIL_TEXT_UNICODESpecifies that the parameter is of type AIL_TEXT_UNICODE. This only appears when you are currently using a character encoding scheme other than unicode, and the parameter you are inquiring is specifically in unicode.
M_PARAM_TYPE_AIL_UINTSpecifies that the parameter is of type AIL_UINT.
M_PARAM_TYPE_AIL_UINT32Specifies that the parameter is of type AIL_UINT32.
M_PARAM_TYPE_AIL_UINT64Specifies that the parameter is of type AIL_UINT64.
M_PARAM_TYPE_ARRAY_AIL_DOUBLESpecifies that the parameter is an array of type AIL_DOUBLE. Note that the pointer to the data stored in the array is unavailable after exiting the user-defined function. For future use, copy and save the data.
M_PARAM_TYPE_ARRAY_AIL_IDSpecifies that the parameter is an array of type AIL_ID. Note that the pointer to the data stored in the array is unavailable after exiting the user-defined function. For future use, copy and save the data.
M_PARAM_TYPE_ARRAY_AIL_INTSpecifies that the parameter is an array of type AIL_INT. Note that the pointer to the data stored in the array is unavailable after exiting the user-defined function. For future use, copy and save the data.
M_PARAM_TYPE_ARRAY_AIL_INT32Specifies that the parameter is an array of type AIL_INT32. Note that the pointer to the data stored in the array is unavailable after exiting the user-defined function. For future use, copy and save the data.
M_PARAM_TYPE_ARRAY_AIL_INT64Specifies that the parameter is an array of type AIL_INT64. Note that the pointer to the data stored in the array is unavailable after exiting the user-defined function. For future use, copy and save the data.
M_PARAM_TYPE_ARRAY_AIL_UINTSpecifies that the parameter is an array of type AIL_UINT. Note that the pointer to the data stored in the array is unavailable after exiting the user-defined function. For future use, copy and save the data.
M_PARAM_TYPE_ARRAY_AIL_UINT32Specifies that the parameter is an array of type AIL_UINT32. Note that the pointer to the data stored in the array is unavailable after exiting the user-defined function. For future use, copy and save the data.
M_PARAM_TYPE_ARRAY_AIL_UINT64Specifies that the parameter is an array of type AIL_UINT64. Note that the pointer to the data stored in the array is unavailable after exiting the user-defined function. For future use, copy and save the data.
M_PARAM_TYPE_CONST_AIL_TEXTSpecifies that the parameter is a constant of type AIL_TEXT. This implies that the character encoding scheme of the AIL_TEXT parameter is the scheme you are currently using.
M_PARAM_TYPE_CONST_AIL_TEXT_ASCIISpecifies that the parameter is a constant of type AIL_TEXT_ASCII. This only appears when you are currently using a character encoding scheme other than ASCII, and the parameter you are inquiring is specifically in ASCII.
M_PARAM_TYPE_CONST_AIL_TEXT_UNICODESpecifies that the parameter is a constant of type AIL_TEXT_UNICODE. This only appears when you are currently using a character encoding scheme other than unicode, and the parameter you are inquiring is specifically in unicode.
M_PARAM_TYPE_CONST_ARRAY_AIL_DOUBLESpecifies that the parameter is a constant array of type AIL_DOUBLE. Note that the pointer to the data stored in the array is unavailable after exiting the user-defined function. For future use, copy and save the data.
M_PARAM_TYPE_CONST_ARRAY_AIL_IDSpecifies that the parameter is a constant array of type AIL_ID. Note that the pointer to the data stored in the array is unavailable after exiting the user-defined function. For future use, copy and save the data.
M_PARAM_TYPE_CONST_ARRAY_AIL_INTSpecifies that the parameter is a constant array of type AIL_INT. Note that the pointer to the data stored in the array is unavailable after exiting the user-defined function. For future use, copy and save the data.
M_PARAM_TYPE_CONST_ARRAY_AIL_INT32Specifies that the parameter is a constant array of type AIL_INT32. Note that the pointer to the data stored in the array is unavailable after exiting the user-defined function. For future use, copy and save the data.
M_PARAM_TYPE_CONST_ARRAY_AIL_INT64Specifies that the parameter is a constant array of type AIL_INT64. Note that the pointer to the data stored in the array is unavailable after exiting the user-defined function. For future use, copy and save the data.
M_PARAM_TYPE_CONST_ARRAY_AIL_UINTSpecifies that the parameter is a constant array of type AIL_UINT. Note that the pointer to the data stored in the array is unavailable after exiting the user-defined function. For future use, copy and save the data.
M_PARAM_TYPE_CONST_ARRAY_AIL_UINT32Specifies that the parameter is a constant array of type AIL_UINT32. Note that the pointer to the data stored in the array is unavailable after exiting the user-defined function. For future use, copy and save the data.
M_PARAM_TYPE_CONST_ARRAY_AIL_UINT64Specifies that the parameter is a constant array of type AIL_UINT64. Note that the pointer to the data stored in the array is unavailable after exiting the user-defined function. For future use, copy and save the data.
M_PARAM_TYPE_CONST_DATA_PTRSpecifies that the parameter is a constant data pointer. Note that the pointer to the data is invalid after exiting the user-defined function. For future use, copy and save the data.
M_PARAM_TYPE_DATA_PTRSpecifies that the parameter is a data pointer. Note that the pointer to the data is invalid after exiting the user-defined function. For future use, copy and save the data.
M_PARAM_TYPE_FILENAMESpecifies that the parameter is of type FILENAME. This implies that the character encoding scheme of the FILENAME parameter is the scheme you are currently using.
M_PARAM_TYPE_FILENAME_ASCIISpecifies that the parameter is of type FILENAME_ASCII. This only appears when you are currently using a character encoding scheme other than ASCII, and the parameter you are inquiring is specifically in ASCII.
M_PARAM_TYPE_FILENAME_UNICODESpecifies that the parameter is of type FILENAME_UNICODE. This only appears when you are currently using a character encoding scheme other than unicode, and the parameter you are inquiring is specifically in unicode.

Combination Constants — For specifying the number of the parameter for which to inquire the information

Essential.

Usage: You must add one of the following values to the above-mentioned values to determine the number of the parameter for which to receive the information.

ValueDescription
Value >= 1Specifies the number of the parameter for which to inquire the information. This value must be a positive integer, and should not exceed the number of parameters associated with the Aurora Imaging Library function context (M_PARAM_NUMBER).

For the script-based user-defined Aurora Imaging Library object feature

The following InquireType parameter settings can be specified when the object passed to AilObjectId is a script-based user-defined Aurora Imaging Library function context allocated using MfuncAllocScript.


M_COMPILE

Inquires whether the script must be reloaded from disk and recompiled.

ValueDescription
M_MODIFIED (default)Specifies that the script is recompiled only if the file on disk has changed.
M_ONCESpecifies that the script is only compiled once.

M_DEBUG_INFORMATION

Inquires whether the interpreter interface DLL generates debug information for the script.

ValueDescription
M_NO (default)Specifies that the script is compiled in release mode, using optimization flags.
M_YESSpecifies that the script is compiled in debug mode, and that the necessary debug information is generated.

M_DEBUG_INFORMATION_PATH

Inquires the path of the directory in which the compiled version of the script and other files are created, if they are relevant for the scripting language.


M_NUMBER_OF_SCRIPT_REFERENCES

Inquires the number of DLLs that are included in the list of DLLs referred to during runtime.

ValueDescription
ValueSpecifies the number of DLLs in the list.

M_SCRIPT_REFERENCE

Inquires the path of the specified DLL in the list of DLLs referred to during runtime.

Combination Constants — For specifying the index number of the script reference to be inquired.

Essential.

Usage: You must add one of the following values to the above-mentioned values to specify the index number of the script reference to be inquired.

ValueDescription
Value >= 1Specifies the index of the script reference about which to inquire. This value must be a positive integer.

Combination Constants — For inquiring the size of a string

Optional.

Usage: You can add one of the following values to the above-mentioned values to get the string's length.

M_STRING_SIZE

Inquires the number of characters in the string. This number accounts for every character, including the terminating null character.

Return Value

Type: AIL_INT

The returned value is the requested information, cast to an AIL_INT. If the requested information does not fit into an AIL_INT, this function will return M_NULLor truncate the information.

Copyright © 2026 Zebra Technologies.