SetupApiSetupDiLoadClassIcon Method

Loads both the large and mini-icon for the specified class.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("SetupApi.dll", CharSet = CharSet.Unicode, SetLastError = true)]
public static bool SetupDiLoadClassIcon(
	ref Guid refClassGuid,
	ref IntPtr refLargeIcon,
	ref int refMiniIconIndex
)

Parameters

refClassGuid  Guid
A pointer to the GUID of the class for which the icon(s) should be loaded.
refLargeIcon  IntPtr
A pointer to an icon handle that receives the handle value for the loaded large icon for the specified class.

This pointer is optional and can be NULL. If the pointer is NULL, the large icon is not loaded.

refMiniIconIndex  Int32
A pointer to an INT-typed variable that receives the index of the mini-icon for the specified class.

The mini-icon is stored in the device installer's mini-icon cache.

The pointer is optional and can be NULL.

Return Value

Boolean
Returns if it is successful, or otherwise.

To get extended error information, call GetLastWin32Error.

Remarks

See Also