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.
Gets the host name for the content source, if applicable.
Syntax
HRESULT GetHost(
[out] WCHAR [] wszHost,
[in] DWORD dwSize,
[out] DWORD *pdwLength
);
Parameters
[out] wszHost
Type: WCHAR[]
Receives the name of the host that the content source file resides on, as a null-terminated Unicode string.
[in] dwSize
Type: DWORD
Size in TCHARs of wszHost, not including the terminating NULL.
[out] pdwLength
Type: DWORD*
Receives a pointer to the number of TCHARs written to wszHost, not including the terminating NULL.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
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 |