| Customize Help
| Save Settings

MfuncInquire



Function Map
Synopsis
Retrieve information about a MIL object.
Syntax
MIL_INT MfuncInquire(
MIL_ID MilObjectId, //in
MIL_INT64 InquireType, //in
void *UserVarPtr //out
)
Description

This function retrieves information about the specified MIL object.

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 which MIL system’s documentation you should use in its place and any possible differences.
Parameters
This function is not supported on the selected boards.
This function reference has not been updated for the selected MIL system. To show the content of this page, choose a second MIL system; refer to the MIL system's release note to see which MIL system’s documentation to choose and any possible differences.
Parameters
MilObjectId

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

InquireType

Specifies the MIL object feature 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):
  • array of type MIL_TEXT_CHAR [optionally, in C++: a reference to a MIL_STRING]
  • address_to_a_pointer
  • MIL_BUFFER_INFO
  • MIL_INT

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.

See the Parameter associations section for possible values that can be returned.

The tables below list possible values for the InquireType parameter and possible values returned to the UserVarPtr parameter.

The following InquireType parameter settings can be specified for different MIL object types.

function map For different MIL object types
Click to summarizeInquireType Description
UserVarPtr
- Possible values returned
Click to summarize M_BUFFER_INFO

Inquires the handle of the MIL buffer. This buffer must have been allocated using one of the MbufAlloc...() functions.

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_BUFFER_INFO
Click to summarize M_OBJECT_PTR

Inquires the address of the user-defined MIL object allocated using MfuncAllocId().

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a address_to_a_pointer

The following InquireType parameter settings can be specified when the object passed to MilObjectId is a user-defined MIL function context allocated using MfuncAlloc() or MfuncAllocScript().

function map For user-defined MIL functions
Click to summarizeInquireType Description
UserVarPtr
- Possible values returned
Click to summarize M_CALLER_BITNESS

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

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize 32

Specifies a 32-bit platform.

Click to summarize 64

Specifies a 64-bit platform.

Click to summarize M_PARAM_NUMBER

Inquires the number of parameters associated with the specified user-defined MIL function context.

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize 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.


You must specify a combination value from the following table:
(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_PARAM_TYPE_INFO +

Inquires the data type of the specified parameter.


You must specify a combination value from the following table:
(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_PARAM_TYPE_ARRAY_MIL_DOUBLE

Specifies that the parameter is an array of type MIL_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.

(summarize)
Click to summarize M_PARAM_TYPE_ARRAY_MIL_ID

Specifies that the parameter is an array of type MIL_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.

(summarize)
Click to summarize M_PARAM_TYPE_ARRAY_MIL_INT

Specifies that the parameter is an array of type MIL_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.

(summarize)
Click to summarize M_PARAM_TYPE_ARRAY_MIL_INT32

Specifies that the parameter is an array of type MIL_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.

(summarize)
Click to summarize M_PARAM_TYPE_ARRAY_MIL_INT64

Specifies that the parameter is an array of type MIL_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.

(summarize)
Click to summarize M_PARAM_TYPE_ARRAY_MIL_UINT

Specifies that the parameter is an array of type MIL_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.

(summarize)
Click to summarize M_PARAM_TYPE_ARRAY_MIL_UINT32

Specifies that the parameter is an array of type MIL_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.

(summarize)
Click to summarize M_PARAM_TYPE_ARRAY_MIL_UINT64

Specifies that the parameter is an array of type MIL_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.

(summarize)
Click to summarize M_PARAM_TYPE_CONST_ARRAY_MIL_DOUBLE

Specifies that the parameter is a constant array of type MIL_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.

(summarize)
Click to summarize M_PARAM_TYPE_CONST_ARRAY_MIL_ID

Specifies that the parameter is a constant array of type MIL_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.

(summarize)
Click to summarize M_PARAM_TYPE_CONST_ARRAY_MIL_INT

Specifies that the parameter is a constant array of type MIL_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.

(summarize)
Click to summarize M_PARAM_TYPE_CONST_ARRAY_MIL_INT32

Specifies that the parameter is a constant array of type MIL_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.

(summarize)
Click to summarize M_PARAM_TYPE_CONST_ARRAY_MIL_INT64

Specifies that the parameter is a constant array of type MIL_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.

(summarize)
Click to summarize M_PARAM_TYPE_CONST_ARRAY_MIL_UINT

Specifies that the parameter is a constant array of type MIL_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.

(summarize)
Click to summarize M_PARAM_TYPE_CONST_ARRAY_MIL_UINT32

Specifies that the parameter is a constant array of type MIL_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.

(summarize)
Click to summarize M_PARAM_TYPE_CONST_ARRAY_MIL_UINT64

Specifies that the parameter is a constant array of type MIL_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.

(summarize)
Click to summarize M_PARAM_TYPE_CONST_DATA_PTR

Specifies 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.

(summarize)
Click to summarize M_PARAM_TYPE_CONST_MIL_TEXT

Specifies that the parameter is a constant of type MIL_TEXT. This implies that the character encoding scheme of the MIL_TEXT parameter is the scheme you are currently using.

(summarize)
Click to summarize M_PARAM_TYPE_CONST_MIL_TEXT_ASCII

Specifies that the parameter is a constant of type MIL_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.

(summarize)
Click to summarize M_PARAM_TYPE_CONST_MIL_TEXT_UNICODE

Specifies that the parameter is a constant of type MIL_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.

(summarize)
Click to summarize M_PARAM_TYPE_DATA_PTR

Specifies 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.

(summarize)
Click to summarize M_PARAM_TYPE_FILENAME

Specifies 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.

(summarize)
Click to summarize M_PARAM_TYPE_FILENAME_ASCII

Specifies 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.

(summarize)
Click to summarize M_PARAM_TYPE_FILENAME_UNICODE

Specifies 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.

(summarize)
Click to summarize M_PARAM_TYPE_MIL_DOUBLE

Specifies that the parameter is of type MIL_DOUBLE.

Click to summarize M_PARAM_TYPE_MIL_ID

Specifies that the parameter is of type MIL_ID.

Click to summarize M_PARAM_TYPE_MIL_INT

Specifies that the parameter is of type MIL_INT.

Click to summarize M_PARAM_TYPE_MIL_INT32

Specifies that the parameter is of type MIL_INT32.

Click to summarize M_PARAM_TYPE_MIL_INT64

Specifies that the parameter is of type MIL_INT64.

Click to summarize M_PARAM_TYPE_MIL_TEXT

Specifies that the parameter is of type MIL_TEXT. This implies that the character encoding scheme of the MIL_TEXT parameter is the scheme you are currently using.

(summarize)
Click to summarize M_PARAM_TYPE_MIL_TEXT_ASCII

Specifies that the parameter is of type MIL_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.

(summarize)
Click to summarize M_PARAM_TYPE_MIL_TEXT_UNICODE

Specifies that the parameter is of type MIL_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.

(summarize)
Click to summarize M_PARAM_TYPE_MIL_UINT

Specifies that the parameter is of type MIL_UINT.

Click to summarize M_PARAM_TYPE_MIL_UINT32

Specifies that the parameter is of type MIL_UINT32.

Click to summarize M_PARAM_TYPE_MIL_UINT64

Specifies that the parameter is of type MIL_UINT64.

Combination value for M_PARAM_SIZE; M_PARAM_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.

function map For specifying the number of the parameter for which to inquire the information
Click to summarizeCombination value Description
Click to summarize Value >= 1

Specifies 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 MIL function context (M_PARAM_NUMBER).

(summarize)

The following InquireType parameter settings can be specified when the object passed to MilObjectId is a script-based user-defined MIL function context allocated using MfuncAllocScript().

function map For the script-based user-defined MIL object feature
Click to summarizeInquireType Description
UserVarPtr
- Possible values returned
Click to summarize M_COMPILE

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

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_MODIFIED

Specifies that the script is recompiled only if the file on disk has changed.

Click to summarize M_ONCE

Specifies that the script is only compiled once.

Click to summarize M_DEBUG_INFORMATION

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

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_NO

Specifies that the script is compiled in release mode, using optimization flags.

Click to summarize M_YES

Specifies that the script is compiled in debug mode, and that the necessary debug information is generated. INFO

Click to summarize 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. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: array of type MIL_TEXT_CHAR [optionally, in C++: MIL_STRING ] MORE
Click to summarize M_NUMBER_OF_SCRIPT_REFERENCES

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

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize Value

Specifies the number of DLLs in the list.

Click to summarize M_SCRIPT_REFERENCE +

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


You must specify a combination value from the following table:
(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: array of type MIL_TEXT_CHAR [optionally, in C++: MIL_STRING ] MORE
Combination value for M_SCRIPT_REFERENCE.

You must add the following value to the above-mentioned value to specify the index number of the script reference to be inquired.

function map For specifying the index number of the script reference to be inquired.
Click to summarizeCombination value Description
Click to summarize Value >= 1

Specifies the index of the script reference about which to inquire. This value must be a positive integer.

(summarize)

You can add the following value to the above-mentioned values to get the string's length.

function map For inquiring the size of a string
Click to summarizeInquireType Description
UserVarPtr
- Possible values returned
Click to summarize M_STRING_SIZE

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

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Return value
The returned value is the requested information, cast to a MIL_INT. If the requested information does not fit into a MIL_INT, this function will return M_NULL or truncate the information.
Compilation information
Header Include mil.h.
Library Use mil.lib.
DLL Requires mil.dll.
BUFFER INFO OBJECT PTR CALLER BITNESS PARAM NUMBER PARAM SIZE PARAM TYPE INFO PARAM TYPE ARRAY MIL DOUBLE PARAM TYPE ARRAY MIL ID PARAM TYPE ARRAY MIL INT PARAM TYPE ARRAY MIL INT32 PARAM TYPE ARRAY MIL INT64 PARAM TYPE ARRAY MIL UINT PARAM TYPE ARRAY MIL UINT32 PARAM TYPE ARRAY MIL UINT64 PARAM TYPE CONST ARRAY MIL DOUBLE PARAM TYPE CONST ARRAY MIL ID PARAM TYPE CONST ARRAY MIL INT PARAM TYPE CONST ARRAY MIL INT32 PARAM TYPE CONST ARRAY MIL INT64 PARAM TYPE CONST ARRAY MIL UINT PARAM TYPE CONST ARRAY MIL UINT32 PARAM TYPE CONST ARRAY MIL UINT64 PARAM TYPE CONST DATA PTR PARAM TYPE CONST MIL TEXT PARAM TYPE CONST MIL TEXT ASCII PARAM TYPE CONST MIL TEXT UNICODE PARAM TYPE DATA PTR PARAM TYPE FILENAME PARAM TYPE FILENAME ASCII PARAM TYPE FILENAME UNICODE PARAM TYPE MIL DOUBLE PARAM TYPE MIL ID PARAM TYPE MIL INT PARAM TYPE MIL INT32 PARAM TYPE MIL INT64 PARAM TYPE MIL TEXT PARAM TYPE MIL TEXT ASCII PARAM TYPE MIL TEXT UNICODE PARAM TYPE MIL UINT PARAM TYPE MIL UINT32 PARAM TYPE MIL UINT64 COMPILE MODIFIED ONCE DEBUG INFORMATION NO YES DEBUG INFORMATION PATH NUMBER OF SCRIPT REFERENCES SCRIPT REFERENCE STRING SIZE