Debugging Tools for Windows |
The SearchVirtual method searches the target's virtual memory for a specified pattern of bytes.
HRESULT
IDebugDataSpaces::SearchVirtual(
IN ULONG64 Offset
IN ULONG64 Length
IN PVOID Pattern
IN ULONG PatternSize
IN ULONG PatternGranularity
OUT PULONG64 MatchOffset
);
This method can also return error values. See Return Values for more details.
SearchVirtual is available in all versions of IDebugDataSpaces.
This method searches the target's virtual memory for the first occurrence, subject to granularity, of the pattern entirely contained in the Length bytes of the target's memory starting at the location Offset.
PatternGranularity can be used to ensure the alignment of the match relative to Offset. For example, a value of 0x4 can be used to require alignment to a DWORD. A value of 0x1 can be used to allow the pattern to start anywhere.
For additional options, including the ability to restrict the search to writable memory, see SearchVirtual2.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.