Pastaba.
Prieigai prie šio puslapio reikalingas įgaliojimas. Galite bandyti prisijungti arba pakeisti katalogus.
Prieigai prie šio puslapio reikalingas įgaliojimas. Galite bandyti pakeisti katalogus.
Gets the current context of this stack walk.
Note
This API was originally designed for internal use in the runtime. Although it is now supported for 3rd party use, we recommend working with ICorDebug and ICorProfiler APIs when possible.
Syntax
HRESULT GetContext(
[in] ULONG32 contextFlags,
[in] ULONG32 contextBufSize,
[out] ULONG32* contextSize,
[out, size_is(contextBufSize)] BYTE contextBuf[]
);
Parameters
contextFlags
[in] The flags that control which parts of the context to return.
contextBufSize
[in] The size of the contextBuf buffer.
contextSize
[out] A pointer to the number of bytes actually written into the contextBuf buffer.
contextBuf
[out, size_is(contextBufSize)] A buffer that stores the context.
Remarks
The provided method is part of the IXCLRDataStackWalk interface and corresponds to the 4th slot of the virtual method table.
The context is the original context with any unwinding applied to it. As unwinding may restore only a subset of the registers, such as only non-volatile registers, the context may not exactly match the register state at the time of the actual call.
Requirements
Platforms: See System Requirements.
Header: None
Library: None
.NET Framework Versions: Available since 4.7