IsBadStringPtr

3.1

  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.

Parameters

lpsz

Points to a null-terminated string.

cchMax

Specifies the maximum size of the string, in bytes.

Return Value

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.

See Also

IsBadCodePtr, IsBadHugeReadPtr, IsBadHugeWritePtr, IsBadReadPtr, IsBadWritePtr