IShellImageData::GetPageCount method

Gets the number of pages in a multipage image.

Syntax


HRESULT GetPageCount(
  [out] ULONG *pcPages
);

Parameters

pcPages [out]

Type: ULONG*

A pointer to the page count. This value is valid only when the method returns S_OK.

Return value

Type: HRESULT

Returns S_OK if successful or an error value otherwise, including the following:

Return codeDescription
E_FAIL

The image has not been decoded or the decoding process failed.

 

Remarks

If the image is not a multipage image, such as a .jpg file, the method returns S_OK with a page count of 1.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Shimgdata.h

IDL

Shimgdata.idl

DLL

Shell32.dll

 

 

Show: