Skip to main content

MappInquire

BoardSupported
Host SystemPartial
V4L2Yes
Clarity UHDPartial
Concord PoEPartial
GenTLYes
GevIQPartial
GigE VisionPartial
IndioPartial
Iris GTXPartial
Radient eV-CLPartial
Rapixo CLPartial
Rapixo CoFPartial
Rapixo CXPPartial
USB3 VisionPartial

Inquire about an application setting.

Syntax

AIL_INT MappInquire(
AIL_ID ContextAppId, //in
AIL_INT64 InquireType, //in
void * UserVarPtr //out
)

Description

This function inquires about the specified application setting.

Parameters

ContextAppId (in, AIL_ID)

Specifies the identifier of the application context to use.

For specifying the application context

ValueDescription
M_DEFAULTSpecifies the application context of the current process.
Application context identifierSpecifies the application context of the current process.

Typically specifying an application context identifier is used to specify a remote application on a remote computer. However, it can be used for a remote application on the local computer, or the current process. When you explicitly specify the identifier of the current process, it is equivalent to specifying M_DEFAULT. |

InquireType (in, AIL_INT64)

Specifies the type of application setting about which to inquire. This parameter can be set to one of the values below.

UserVarPtr *(out, void)

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

Parameter Associations

For inquiring about general types of application settings

The following inquire types allow you to inquire about general types of application settings.


M_AIL_DIRECTORY_CONTEXTS

Inquires the path to the local contexts directory. The returned value is equivalent to the string constant M_CONTEXT_PATH. By default on a Windows platform, this path is C:\Program Files\Aurora Imaging Library&lt;version number>\Library\Contexts. By default on a Linux platform, this path is /opt/aurora_imaging_library/<version>/contexts.


M_AIL_DIRECTORY_EXAMPLES

Inquires the path to the local examples directory. By default on a Windows platform, this path is C:\Program Files\Aurora Imaging Library&lt;version number>\Library\Examples. By default on a Linux platform, this path is /opt/aurora_imaging_library/<version>/examples.


M_AIL_DIRECTORY_IMAGES

Inquires the path to the local images directory. The returned value is equivalent to the string constant M_IMAGE_PATH. By default on a Windows platform, this path is C:\Program Files\Aurora Imaging Library&lt;version number>\Library\Images. By default on a Linux platform, this path is /opt/aurora_imaging_library/<version>/images.


M_AIL_DIRECTORY_INSTALL

Inquires the path to the root directory of the local Aurora Imaging Library installation. The returned value is equivalent to the string constant M_INSTALL_DIR. By default on a Windows platform, this path is C:\Program Files\Aurora Imaging Library&lt;version number>\Library. By default on a Linux platform, this path is /opt/aurora_imaging_library/<version>/library.


M_COMPONENT_AUTO_RESELECT

Inquires whether image buffer components are automatically reselected to 2D displays when they are reallocated. > Note: This setting does not affect containers shown in 3D displays. > Note: If M_THREAD_CURRENT was specified, this inquires the setting for the current thread. Otherwise, it inquires the setting of the application environment.

ValueDescription
M_COMPONENT_AUTO_RESELECT_DISABLESpecifies not to automatically reselect image buffer components to 2D displays.
M_COMPONENT_AUTO_RESELECT_ENABLE (default)Specifies to automatically reselect image buffer components to 2D displays when they are reallocated.
M_DEFAULTSpecifies that the global application setting is used for the current thread. Note that this value is only returned if M_THREAD_CURRENT was specified.

M_COMPONENT_AUTO_RESELECT_ENABLED

Inquires whetherM_COMPONENT_AUTO_RESELECT is enabled for the current thread. This always returns whether M_COMPONENT_AUTO_RESELECT is enabled for the current thread (regardless of whether it is enabled because it was set for the application environment, or because you enabled it explicitly for the thread using MappControl with M_COMPONENT_AUTO_RESELECT + M_THREAD_CURRENT). > Note: To inquire the setting for the application environment (instead of the current thread), use M_COMPONENT_AUTO_RESELECT instead.

ValueDescription
M_NOSpecifies that M_COMPONENT_AUTO_RESELECT is not enabled in the current thread.
M_YESSpecifies that M_COMPONENT_AUTO_RESELECT is enabled in the current thread.

M_CURRENT_APPLICATION

Inquires the identifier of the current Aurora Imaging Library application, if any.

ValueDescription
0Specifies that no application is allocated. Note that no error is generated.
Application identifierSpecifies the identifier of the current application.

M_DAIL_CONNECTION

Inquires the Distributed Aurora Imaging Library monitoring configuration permission level.

ValueDescription
M_DAIL_CONTROLSpecifies that objects in the current application can be accessed with either read only or read/write permission, depending on how that object was specified with MobjControl.
M_DAIL_MONITORSpecifies that objects in the current application can be accessed only with read only permission, regardless of how that object was specified with MobjControl.
M_DISABLESpecifies that Distributed Aurora Imaging Library monitoring configuration is disabled in the current application.

M_DAIL_CONNECTION_PORT

Inquires the listening port of a publishing application in the Distributed Aurora Imaging Library monitoring configuration.

ValueDescription
Listening portSpecifies the listening port (an integer between 0 and 65535) that the current application will use to listen for connections from a monitoring application.

M_ERROR

Inquires the error printing mode in effect for the current thread.

ValueDescription
M_DEFAULTSame as M_PRINT_ENABLE, unless M_THREAD_CURRENT is specified, in which case this setting specifies that the current thread uses the setting of the application environment.
M_PRINT_DISABLESpecifies not to print error messages.
M_PRINT_ENABLESpecifies to print error messages.
M_THROW_EXCEPTIONSpecifies that when an error occurs, a .NET or Python exception will be thrown instead of a message box being displayed.
M_THROW_EXCEPTIONSpecifies that when an error occurs, a .NET exception will be thrown instead of a message box being displayed. > Note: M_THROW_EXCEPTION is only valid when working in a .NET environment.

M_ERROR_HOOKS

Inquires whether errors generated in the current thread will trigger the user-defined function that you specified using MappHookFunction (withM_ERROR_CURRENT or M_ERROR_FATAL).

ValueDescription
M_DISABLESpecifies to not trigger the user-defined function (hooked using MappHookFunction) when an error event occurs.
M_ENABLE (default)Specifies to trigger the user-defined function when an error event occurs, as specified in MappHookFunction.

M_GENTL_PRODUCER_COUNT

Board availability: GenTL, V4L2

Inquires the number of different GenTL producers installed during Aurora Imaging Library installation.

ValueDescription
Value >= 0Specifies the number of different GenTL producers installed.

M_GENTL_PRODUCER_DESCRIPTOR + n

Board availability: GenTL, V4L2

Inquires the path and file name of the_n_ th GenTL producer, where n is a number between 0 and the value returned by M_GENTL_PRODUCER_COUNT.

ValueDescription
"PathAndFilename"Specifies the path and file name of the specified GenTL producer.

M_INSTALLED_SYSTEM_COUNT

Inquires the number of different system types (drivers) installed during Aurora Imaging Library installation and the number of Distributed Aurora Imaging Library systems that are registered.

ValueDescription
ValueSpecifies the number of different system types installed.

M_INSTALLED_SYSTEM_DESCRIPTOR + n

Inquires the descriptor of system type n, where n is a number between 0 and the value returned by M_INSTALLED_SYSTEM_COUNT. The descriptor can be passed to MsysAlloc to allocate the system.


M_INSTALLED_SYSTEM_DEVICE_COUNT + n

Inquires the number of installed devices of the same type as system type n, where n is a number between 0 and the value returned by M_INSTALLED_SYSTEM_COUNT.

ValueDescription
M_UNKNOWNSpecifies that the number of devices is unknown.
Value >= 0Specifies the number of devices of the specified type. Note that although the driver for a system type is installed, this inquire type returns 0 if a corresponding physical device is not installed. In addition, for a GigE system type and USB3 system type, this inquire type will return 1.

M_INSTALLED_SYSTEM_PRINT_NAME + n

Inquires the printable name of system type n (for example, Zebra Radient), where n is a number between 0 and the value returned by M_INSTALLED_SYSTEM_COUNT.

ValueDescription
StringSpecifies the printable name of system type n.

M_INSTALLED_SYSTEM_TYPE + n

Inquires the type of system type n, where n is a number between 0 and the value returned by M_INSTALLED_SYSTEM_COUNT. If a Distributed Aurora Imaging Library remote system has been registered, you can use the following macros to further inquire about the system: - To determine whether the system is a Distributed Aurora Imaging Library remote system, use the M_IS_SYSTEM_DISTRIBUTED macro. This macro returns a non-zero value if the system is a remote system and zero if the system is local. - To remove the bit flag for Distributed Aurora Imaging Library remote systems, use theM_REAL_SYSTEM_TYPE macro. This macro returns only the system type and not the system type and remote system bit flag.

ValueDescription
M_SYSTEM_CLARITY_UHD_TYPESpecifies an Aurora Imaging Library Clarity UHD system.
M_SYSTEM_CONCORD_POE_TYPESpecifies an Aurora Imaging Library Concord POE system.
M_SYSTEM_GENTL_TYPESpecifies an Aurora Imaging Library GenTL system.
M_SYSTEM_GEVIQ_TYPESpecifies an Aurora Imaging Library GevIQ system.
M_SYSTEM_GIGE_VISION_TYPESpecifies an Aurora Imaging Library GigE Vision system.
M_SYSTEM_HOST_TYPESpecifies the Host.
M_SYSTEM_INDIO_TYPESpecifies an Aurora Imaging Library Indio system.
M_SYSTEM_IRIS_GTX_TYPESpecifies an Aurora Imaging Library Iris GTX system.
M_SYSTEM_RADIENTEVCL_TYPESpecifies an Aurora Imaging Library Radient eV-CL system.
M_SYSTEM_RAPIXOCL_TYPESpecifies an Aurora Imaging Library Rapixo Pro CL system.
M_SYSTEM_RAPIXOCOF_TYPESpecifies an Aurora Imaging Library Rapixo CoF system.
M_SYSTEM_RAPIXOCXP_TYPESpecifies an Aurora Imaging Library Rapixo CXP system.
M_SYSTEM_USB3_VISION_TYPESpecifies an Aurora Imaging Library USB3 Vision system.
M_SYSTEM_V4L2_TYPESpecifies an Aurora Imaging Library Video4Linux2 system.

M_KEY_SERIAL_NUMBER + n

Inquires the serial number of the_n_ thWibu-Systems dongle, where_n_ is a number between 0 and the value returned by M_NUMBER_OF_KEYS.

ValueDescription
StringSpecifies the inquired Wibu-Systems dongle serial number.

M_LICENSE_MODULES

Inquires the modules for which there is a valid license. The value returned will be a bitwise combination of the following.

ValueDescription
M_LICENSE_3DCASpecifies a Camera Calibration module license that supports 3D-based camera calibration modes.
M_LICENSE_3DSUPSpecifies a 3D Supplement module license.
M_LICENSE_BEADSpecifies a Bead module license.
M_LICENSE_BLOBSpecifies a Blob analysis module license.
M_LICENSE_CALSpecifies a Camera Calibration module license that supports 2D-based camera calibration modes.
M_LICENSE_CLASSSpecifies a Classification module license.
M_LICENSE_CODESpecifies a Code read/write module license.
M_LICENSE_COLSpecifies a Color Analysis module license.
M_LICENSE_COMSpecifies an industrial communication license.
M_LICENSE_DAILSpecifies a Distributed Aurora Imaging Library license.
M_LICENSE_DEBUGSpecifies a development license.
M_LICENSE_DMRSpecifies a SureDotOCR module license.
M_LICENSE_EDGESpecifies an Edge Finder module license.
M_LICENSE_IMSpecifies an Image Processing module license.
M_LICENSE_INTERFACESpecifies a Zebra GigE Vision driver license.
M_LICENSE_JPEG2000Specifies a JPEG2000 compression license.
M_LICENSE_JPEGSTDSpecifies a JPEG compression license.
M_LICENSE_LITESpecifies an Aurora Imaging Library Lite module license.
M_LICENSE_MEASSpecifies a Measurement module license.
M_LICENSE_METSpecifies a Metrology module license.
M_LICENSE_MODSpecifies a Geometric Model Finder module license.
M_LICENSE_OCRSpecifies an OCR module license.
M_LICENSE_PATSpecifies a Pattern Matching module license.
M_LICENSE_REGSpecifies a Registration module license.
M_LICENSE_STRSpecifies a String Reader module license.

M_MEMORY

Inquires the memory compensation mode in effect for the current thread.

ValueDescription
M_DEFAULTSame as M_COMPENSATION_ENABLE, unless M_THREAD_CURRENT is specified, in which case this setting specifies that the current thread uses the setting of the application environment.
M_COMPENSATION_DISABLESpecifies that on-board memory compensation is disabled.
M_COMPENSATION_ENABLESpecifies that on-board memory compensation is enabled.

M_NON_PAGED_MEMORY_FREE

Inquires the amount of free non-paged memory reserved for Aurora Imaging Library (at installation time or using the Aurora Imaging Configurator utility).

ValueDescription
ValueSpecifies the amount of free non-paged memory, in bytes.

M_NON_PAGED_MEMORY_LARGEST_FREE

Inquires the size of the largest contiguous block of free non-paged memory reserved for Aurora Imaging Library (at installation time or using the Aurora Imaging Configurator utility). You cannot allocate a buffer larger than this size using an MbufAlloc...function, even if the total amount of free non-paged memory is sufficient. For more information, see Large non-paged Aurora Imaging Library buffers.

ValueDescription
ValueSpecifies the size of the largest contiguous block of free non-paged memory reserved for Aurora Imaging Library.

M_NON_PAGED_MEMORY_SIZE

Inquires the amount of the non-paged memory (DMA) reserved for Aurora Imaging Library.

ValueDescription
ValueSpecifies the amount of the non-paged memory (DMA) reserved for Aurora Imaging Library, in bytes.

M_NON_PAGED_MEMORY_USED

Inquires the amount of non-paged memory being used.

ValueDescription
ValueSpecifies the amount of non-paged memory being used, in bytes.

M_NUMBER_OF_KEYS

Inquires the number of Wibu-Systems dongles detected.

ValueDescription
ValueSpecifies the number of Wibu-Systems dongles detected.

M_PARAMETER

Inquires the parameter checking mode in effect for the current thread.

ValueDescription
M_DEFAULTSame as M_CHECK_ENABLE, unless M_THREAD_CURRENT is specified, in which case this setting specifies that the current thread uses the setting of the application environment.
M_CHECK_DISABLESpecifies that checking of parameters is disabled.
M_CHECK_ENABLESpecifies that checking of parameters is enabled.

M_PLATFORM_BITNESS

Inquires the bitness for which the application has been compiled.

ValueDescription
32Specifies that the specified application is 32-bit.
64Specifies that the specified application is 64-bit.

M_PLATFORM_OS_TYPE

Inquires the operating system under which the specified application is running.

ValueDescription
M_OS_LINUXSpecifies that the specified application is running under a Linux operating system.
M_OS_WINDOWSSpecifies that the specified application is running under a Microsoft Windows operating system.

M_PROCESSING

Inquires the processing compensation mode in effect for the current thread.

ValueDescription
M_DEFAULTSame as M_COMPENSATION_ENABLE, unless M_THREAD_CURRENT is specified, in which case this setting specifies that the current thread uses the setting of the application environment.
M_COMPENSATION_DISABLESpecifies that on-board processing compensation is disabled.
M_COMPENSATION_ENABLESpecifies that on-board processing compensation is enabled.

M_SELECTED_VERSION

Inquires the selected version of Aurora Imaging Library.

ValueDescription
ValueSpecifies the version number of Aurora Imaging Library.

M_TRACE

Inquires the trace setting, which is used to start or stop generating a trace log. > Note: Note that this inquire type can return M_DEFAULT, a trace setting which can signify either to start or to stop generating a trace log. Use M_TRACE_ACTIVE to determine if a trace log is currently being generated.

ValueDescription
M_DEFAULTSpecifies the default trace setting, which either enables or disables generating a trace log, based on whether Aurora Imaging Profiler (or the Interactive log) was used to start generating the log.
M_LOG_DISABLESpecifies the log disable setting, which stops generating the trace log.
M_LOG_ENABLESpecifies the log enable setting, which starts generating the trace log.

M_TRACE_ACTIVE

Inquires whether a trace log is currently being generated in the current thread. > Note: Note that adding the combination constant M_THREAD_CURRENT to this inquire will result in an error.

ValueDescription
M_NOSpecifies that a trace log is not currently being generated in the current thread.
M_YESSpecifies that a trace log is currently being generated in the current thread.

M_VERSION

Inquires the version of Aurora Imaging Library.

ValueDescription
ValueSpecifies the version of Aurora Imaging Library.

M_VERSION_STRING

Inquires the version of Aurora Imaging Library, as a string.

ValueDescription
"nn.nn.nnnn"Specifies the version of Aurora Imaging Library, as a string.

M_WEB_CONNECTION

Inquires whether Aurora Imaging Web Library server functionality is enabled.

ValueDescription
M_DISABLESpecifies that Aurora Imaging Web Library server functionality is disabled in the current application.
M_ENABLESpecifies that Aurora Imaging Web Library server functionality is enabled in the current application.

M_WEB_CONNECTION_PORT

Inquires the listening port used for Aurora Imaging Web Library server functionality.

ValueDescription
0 <= Value <=65535 (default)Specifies the port number.

M_XORG_ACCELERATION

Inquires whether Aurora Imaging Library can use X11 (Xorg) acceleration for display under Linux. This determines the hardware acceleration display mode.

ValueDescription
(see M_X11_ACCELERATION Status)

Combination Constants — For inquiring if a system is remote

Optional.

Usage: You can add one of the following values to the above-mentioned values to determine if the inquired system type is remote.

By default, an installed systems that is remote will have a distributed flag appended to the returned system type.

ValueDescription
M_SYSTEM_DISTRIBUTED_FLAGSpecifies that the system is remote.

Combination Constants — For

Optional.

Usage: You can add one of the following values to the above-mentioned values to specify that the inquire should be limited to the current thread.

In multi-thread environments, by default, you can inquire about an application setting from any thread.

ValueDescription
M_THREAD_CURRENTSpecifies that data to be returned should relate to the current thread.

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.

For inquiring system fingerprints

When inquired and present, the requested system fingerprint is returned. If that specific fingerprint is not present, 0 is returned. For more information about system fingerprints, see Protecting your own Aurora Imaging Library software application using a Zebra hardware fingerprint.


M_ANY_FINGERPRINT

Inquires any hardware fingerprint.

ValueDescription
0Specifies that no hardware that has been correctly installed has a fingerprint.
ValueSpecifies the hardware fingerprint.

M_CONCORD_GIGE_FINGERPRINT

Inquires the hardware fingerprint of a Zebra Concord GigE Vision board.

ValueDescription
0
ValueSpecifies the hardware fingerprint.

M_CONCORDPOE_FINGERPRINT

Inquires the hardware fingerprint of a Zebra Concord PoE board.

ValueDescription
0
ValueSpecifies the hardware fingerprint.

M_ID_KEY_FINGERPRINT

Inquires the hardware fingerprint of a hardware identification key. The hardware identification key is the device, which when connected to your USB or parallel port, you can use as a hardware fingerprint to generate a software license.

ValueDescription
0Specifies that the hardware identification key is not connected to the computer, or that it is not correctly installed.
ValueSpecifies the hardware fingerprint.

M_INDIO_FINGERPRINT

Inquires the hardware fingerprint of a Zebra Indio board.

ValueDescription
0
ValueSpecifies the hardware fingerprint.

M_IRISGTX_FINGERPRINT

Inquires the hardware fingerprint of a Zebra Iris GTX smart camera.

ValueDescription
0Specifies that the current computer is not a Zebra Iris GTX smart camera.
ValueSpecifies the hardware fingerprint.

M_MSERIES_FINGERPRINT

Inquires the hardware fingerprint of a Zebra M-Series graphics board.

ValueDescription
0
ValueSpecifies the hardware fingerprint.

M_RADIENT_FINGERPRINT

Inquires the hardware fingerprint of a Zebra Radient board.

ValueDescription
0
ValueSpecifies the hardware fingerprint.

M_RAPIXOCXP_FINGERPRINT

Inquires the hardware fingerprint of a Zebra Rapixo CXP board.

ValueDescription
0
ValueSpecifies the hardware fingerprint.

Combination Constants — For specifying which Zebra product to take a fingerprint from

Optional.

Usage: You can add one of the following values to the above-mentioned values to specify which Zebra product to take the fingerprint from when there are more than one available.

When multiple fingerprints of the same type are present, all similar fingerprints can be inquired using the following.

ValueDescription
0 <= Value < 16Specifies the number of fingerprints of the same type that can be inquired about.

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.

Specifies that the board is not present in the computer, or that the board is incorrectly installed.

Typically, you should not use this setting if ContextAppIdspecifies an application context allocated on a remote computer, accessed using Distributed Aurora Imaging Library. The result will return information about a thread on the remote computer, rather than the current thread.

Copyright © 2026 Zebra Technologies.