IsBadHugeWritePtr

  BOOL IsBadHugeWritePtr(lp, cb)    
  LPVOID lp; /* pointer to test */
  UINT cb; /* number of bytes to test */

The IsBadHugeWritePtr function verifies that the calling process has write access to the specified range of memory.

Parameters

lp

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 the calling process does not have write access to some portion of the specified range of memory.

The return value is FALSE if the calling process has write access to all bytes within the specified memory range.

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 IsBadWritePtr function.

See Also

IsBadHugeReadPtr, IsBadHugeWritePtr, IsBadReadPtr, IsBadStringPtr, IsBadWritePtr