Export (0) Print
Expand All

IUrlAccessor::GetHost method

Gets the host name for the content source, if applicable.

Syntax


HRESULT GetHost(
  [out]  WCHAR wszHost[],
  [in]   DWORD dwSize,
  [out]  DWORD *pdwLength
);

Parameters

wszHost [out]

Type: WCHAR[]

Receives the name of the host that the content source file resides on, as a null-terminated Unicode string.

dwSize [in]

Type: DWORD

Size in TCHARs of wszHost, not including the terminating NULL.

pdwLength [out]

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

Minimum supported client

Windows XP with SP2, Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 with SP1 [desktop apps only]

Redistributable

Windows Desktop Search (WDS) 3.0

Header

Searchapi.h

IDL

Urlaccsdk.idl

 

 

Community Additions

ADD
Show:
© 2014 Microsoft