IUrlAccessor2::GetHost Method
Gets the host name for the content source, if applicable.
Syntax
HRESULT GetHost( WCHAR wszHost[], DWORD dwSize, DWORD *pdwLength );
Parameters
- wszHost
[out] Returns the name of the host that the content source file resides on as a null-terminated Unicode string.- dwSize
[in] Size in TCHARs of wszHost.- pdwLength
[out] Returns a pointer to the number of TCHARs written to wszHost not including NULL.
Return Value
Returns S_OK if successful, or an error value otherwise.