IsBadWritePtr

3.1

  BOOL IsBadWritePtr(lp, cb)    
  void FAR* lp; /* pointer to test, */  
  UINT cb; /* number of allocated bytes */

The IsBadWritePtr function determines whether a pointer to writable memory is valid.

Parameters

lp

Points to the beginning of a block of allocated memory.

cb

Specifies the number of bytes of memory that were allocated.

Return Value

The return value is nonzero if the pointer is bad (that is, if it does not point to writable memory of the specified size). The return value is zero if the pointer is good.

See Also

IsBadCodePtr, IsBadHugeReadPtr, IsBadHugeWritePtr, IsBadReadPtr, IsBadStringPtr