IExtractIconAGetIconLocation Method

Gets the location and index of an icon.

Definition

Namespace: DevCase.Win32.Interfaces
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[PreserveSigAttribute]
HResult GetIconLocation(
	GetIconLocationFlags flags,
	StringBuilder iconFile,
	int iconFileBuffer,
	ref int refIndex,
	ref GetIconLocationResultFlags refFlags
)

Parameters

flags  GetIconLocationFlags
GetIconLocationFlags flags.

This value can be Null.

iconFile  StringBuilder
A pointer to a buffer that receives the icon location.

The icon location is a null-terminated string that identifies the file that contains the icon.

iconFileBuffer  Int32
The size of the buffer, in characters, pointed to by iconFile param.
refIndex  Int32
Receives the index of the icon in the file pointed to by iconFile param.
refFlags  GetIconLocationResultFlags
Receives Null or a combination of GetIconLocationResultFlags flags.

Return Value

HResult
Returns S_OK if the function returned a valid location, or S_FALSE if the Shell should use a default icon.

If the Async flag is set in flags param, the method can return E_PENDING to indicate that icon extraction will be time-consuming.

See Also