Redigera

Dela via


IsBadBoundedStringPtr

Applies to: Outlook 2013 | Outlook 2016

Verifies that the calling process has read access to the specified range of memory.

Property Value
Header file:
mapiwin.h
Implemented by:
MAPI
Called by:
Client applications and service providers.
BOOL IsBadBoundedStringPtr(
  const void FAR* lpsz,
  UINT cchMax
);

Parameters

lpsz

[in] Pointer to a null-terminated ASCII string.

cchMax

[in] The maximum size of the string, in CHARs. The function checks for read access in all characters up to the terminating null character of the string, or up to the number of characters specified by this parameter, whichever is smaller. If this parameter is zero, the return value is zero.

Return value

The return value is zero when the calling process has read access to all characters up to the terminating null character of the string, or read access up to the number of characters specified by cchMax.

The return value is non-zero when the calling process does not have read access to all characters up to the terminating null character of the string, or read access up to the number of characters specified by cchMax.

Remarks

The IsBadBoundedStringPtr function is equivalent to using IsBadStringPtr.

See also

IsBadStringPtr