BOOL IsBadStringPtr(lpsz, cchMax) | |||||
const void FAR* lpsz; | /* pointer to test | */ | |||
UINT cchMax; | /* maximum size of string | */ |
The IsBadStringPtr function determines whether a pointer to a string is valid.
lpsz
Points to a null-terminated string.
cchMax
Specifies the maximum size of the string, in bytes.
The return value is nonzero if the pointer is bad (that is, if it does not point to a string of the specified size). The return value is zero if the pointer is good.
IsBadCodePtr, IsBadHugeReadPtr, IsBadHugeWritePtr, IsBadReadPtr, IsBadWritePtr