IXtfConsoleControlClient::GenerateStackDump
Generates a stack dump.Syntax
Parameters
ProcessIdType: UINT32 The identifier of the process to create the stack dump for. DumpType
Type: UINT32 The type of stack dump to create. Valid dump types are:
ImageName
Type: LPCWSTR The name of the image. FilePath
Type: LPBSTR A pointer to a string that receives the file path to the created stack dump file.
Return value
Type: HRESULT ReturnsS_OK if successful; otherwise, returns an HRESULT error code. If the function times out while waiting for a stack dump to complete, this function returns E_MESSAGE_TIMED_OUT.
Remarks
This function generates a stack dump from a specified process for an executable image on the development console. The stack dump is saved as a file on the scratch drive of the console, at the file path returned inFilePath.
The information captured by the stack dump, and the time it takes to capture that information, depends on the dump type specified in DumpType. This function times out after 5 minutes; if a stack dump is not returned by the console before the function times out, this function returns E_MESSAGE_TIMED_OUT. The following table describes the information returned by each stack dump type.
For more information about available tool and automation APIs, such as XBOX Tools Framework (XTF), see Tool and automation APIs (NDA topic).
Handling LPBSTR pointers
For more information about handling LPBSTR pointers returned by this function, see to Allocating and Releasing Memory for a BSTR.Requirements
Header: xtfconsolecontrol.h Library: xtfconsolecontrol.lib Supported platforms: Windows (for XBOX console tools)See also
XtfConsoleControlXBOX Tools Framework
