IUrlAccessor2::GetCodePage method (searchapi.h)

Gets the code page for properties of the URL item.

Syntax

HRESULT GetCodePage(
  [out] WCHAR [] wszCodePage,
  [in]  DWORD    dwSize,
  [out] DWORD    *pdwLength
);

Parameters

[out] wszCodePage

Type: WCHAR[]

Receives the code page as a null-terminated Unicode string.

[in] dwSize

Type: DWORD

Size of wszCodePage in TCHARs.

[out] pdwLength

Type: DWORD*

Receives a pointer to the number of TCHARs written to wszCodePage, not including the terminating NULL character.

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 [desktop apps only]
Target Platform Windows
Header searchapi.h
Redistributable Windows Desktop Search (WDS) 3.0