mstxGetToolId

Function Description

Obtains the ID of the tool that hijacks the mstx API. The tool ID macro is defined as follows:

#define MSTX_TOOL_INVALID_ID 0x0         // Invalid value 0 indicates that no tool is used to start programs.
#define MSTX_TOOL_MSPROF_ID 0x1000       // 0x1000 indicates that programs are started by the msprof or MSPTI Tuning Tool.
#define MSTX_TOOL_MSOPPROF_ID 0x1001     // 0x1001 indicates that programs are started by the  tool.
#define MSTX_TOOL_MSSANITIZER_ID 0x1002  // 0x1002 indicates that programs are started by the  tool.
#define MSTX_TOOL_MSLEAKS_ID 0x1003 // 0x1003 indicates that programs are started by the msLeaks.

Function Prototype

void mstxGetToolId(uint64 *id)

Parameters

Table 1 Parameters

Parameter

Input/Output

Description

id

Output

(As an output parameter) Returns the ID of the tool that hijacks the mstx API.

Data type: uint64 *

Returns

None

Calling Example

uint64 id;
mstxGetToolId(&id);