BOOL IsBadHugeWritePtr(lp, cb) | |||||
void _huge* lp; | /* pointer to test | */ | |||
DWORD cb; | /* number of allocated bytes | */ |
The IsBadHugeWritePtr function determines whether a huge pointer to writable memory is valid.
lp
Points to the beginning of a block of allocated memory. The data object may reside anywhere in memory and may exceed 64K in size.
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, IsBadReadPtr, IsBadStringPtr, IsBadWritePtr