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.
lp
Points to the beginning of a block of allocated memory.
cb
Specifies the number of bytes of memory that were allocated.
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.
IsBadCodePtr, IsBadHugeReadPtr, IsBadHugeWritePtr, IsBadReadPtr, IsBadStringPtr