Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Determines whether the query token is a prefix of the document token, disregarding case, width, and (optionally) diacritics.
Syntax
HRESULT IsPrefixNormalized(
[in] LPCWSTR pwcsQueryToken,
[in] ULONG cwcQueryToken,
[in] LPCWSTR pwcsDocumentToken,
[in] ULONG cwcDocumentToken,
[out] ULONG *pulPrefixLength
);
Parameters
[in] pwcsQueryToken
Type: LPCWSTR
Pointer to the prefix to search for.
[in] cwcQueryToken
Type: ULONG
The size of pwcsQueryToken.
[in] pwcsDocumentToken
Type: LPCWSTR
Pointer to the document to be searched.
[in] cwcDocumentToken
Type: ULONG
The size of pwcsDocumentToken.
[out] pulPrefixLength
Type: ULONG*
Returns a pointer to the number of characters matched in pwcsDocumentToken. Typically, but not necessarily, the number of characters in pwcsQueryToken.
Return value
Type: HRESULT
If pwcsQueryToken is a prefix of pwcsDocumentToken, returns S_OK; otherwise returns S_FALSE, and pulPrefixLength is set to zero.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows XP with SP2, Windows Vista [desktop apps only] |
| Minimum supported server | Windows Server 2003 with SP1 [desktop apps only] |
| Target Platform | Windows |
| Header | searchapi.h |
| Redistributable | Windows Desktop Search (WDS) 3.0 |