IsBadHugeReadPtr

  BOOL IsBadHugeReadPtr(lpv, cb)    
  CONST VOID *lpv; /* pointer to test */
  UINT cb; /* number of bytes to test */

The IsBadHugeReadPtr function verifies that the specified range of memory can be read by the calling process.

Parameters

lpv

Points to the beginning of a block of allocated memory.

cb

Specifies the number of bytes of memory to be checked.

Return Value

The return value is TRUE if some portion of the specified range of memory is not accessible for read access.

The return value is FALSE if all pages within the specified range can be read.

Comments

Because Win32 is a pre-emptive multi-tasking environment, the results of this test are only meaningful if no other thread in the process manipulates the range of memory being tested. Even after a pointer validation, an application should use structured exception handling to guard access through pointers that it does not control.

In Win32, this function is equivalent to the IsBadReadPtr function.

See Also

IsBadHugeReadPtr, IsBadHugeWritePtr, IsBadReadPtr, IsBadStringPtr, IsBadWritePtr