Debugging Tools for Windows

GetValidRegionVirtual

The GetValidRegionVirtual method locates the first valid region of memory in a specified memory range.

HRESULT
  IDebugDataSpaces4::GetValidRegionVirtual(
    IN ULONG64  Base,
    IN ULONG  Size,
    OUT PULONG64  ValidBase,
    OUT PULONG  ValidSize
    );

Parameters

Base
Specifies the address of the beginning of the memory range to search for valid memory.
Size
Specifies the size, in bytes, of the memory range to search.
ValidBase
Receives the address of the beginning of the found valid memory.
ValidSize
Receives the size, in bytes, of the valid memory.

Return Value

S_OK
The method was successful.

This method can also return error values. See Return Values for more details.

Interface Version

GetValidRegionVirtual is available in IDebugDataSpaces4 and later versions.

Requirements

Headers: Defined in Dbgeng.h. Include Dbgeng.h.

See Also

GetNextDifferentlyValidOffsetVirtual

Build machine: CAPEBUILD