BOOL IsBadHugeReadPtr(lp, cb) | |||||
const void _huge* lp; | /* pointer to test | */ | |||
DWORD cb; | /* number of allocated bytes | */ |
The IsBadHugeReadPtr function determines whether a huge pointer to readable 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 readable memory of the specified size). The return value is zero if the pointer is good.
IsBadCodePtr, IsBadHugeWritePtr, IsBadReadPtr, IsBadStringPtr, IsBadWritePtr