Επεξεργασία

Κοινή χρήση μέσω


IShellImageData::GetDelay method (shimgdata.h)

Gets the delay value for the current frame of an animation.

Syntax

HRESULT GetDelay(
  [out] DWORD *pdwDelay
);

Parameters

[out] pdwDelay

Type: DWORD*

A pointer to the delay value, in milliseconds. 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 code Description
E_FAIL
The image has not been decoded or the decoding process failed.

Remarks

Delay can vary from frame to frame in an animated image.

This method retrieves a minimum value of 100 milliseconds. Values less than that duration are also reported as 100 milliseconds.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shimgdata.h
DLL Shell32.dll