The SzFindSz function searches for the first occurrence of a null-terminated substring in a null-terminated string.
Note This function may not be supported in future versions of MAPI.
Header file: | MAPIUTIL.H |
Implemented by: | MAPI |
Called by: | Client applications and service providers |
LPTSTR SzFindCh(
LPCTSTR lpsz,
LPCTSTR lpszKey
);
SzFindSz returns a pointer to the first character of the first occurrence of the substring in the string. If the substring does not occur anywhere in the string, if lpszKey is larger than lpsz, or if either parameter is NULL, a value of NULL is returned.
The SzFindSz function searches for an exact match only; it is sensitive to case and diacritical differences. Searches in the Unicode and DBCS formats are supported. The length limit on both parameters is in characters, not necessarily bytes.