SetupApiSetupDiLoadClassIcon Method
Loads both the large and mini-icon for the specified class.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("SetupApi.dll", CharSet := CharSet.Unicode, SetLastError := true>]
Public Shared Function SetupDiLoadClassIcon (
ByRef refClassGuid As Guid,
ByRef refLargeIcon As IntPtr,
ByRef refMiniIconIndex As Integer
) As Boolean
Dim refClassGuid As Guid
Dim refLargeIcon As IntPtr
Dim refMiniIconIndex As Integer
Dim returnValue As Boolean
returnValue = SetupApi.SetupDiLoadClassIcon(refClassGuid,
refLargeIcon, refMiniIconIndex)
public:
[DllImportAttribute(L"SetupApi.dll", CharSet = CharSet::Unicode, SetLastError = true)]
static bool SetupDiLoadClassIcon(
Guid% refClassGuid,
IntPtr% refLargeIcon,
int% refMiniIconIndex
)
[<DllImportAttribute("SetupApi.dll", CharSet = CharSet.Unicode, SetLastError = true)>]
static member SetupDiLoadClassIcon :
refClassGuid : Guid byref *
refLargeIcon : IntPtr byref *
refMiniIconIndex : int byref -> bool
No code example is currently available or this language may not be supported.
- 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.
Boolean
Returns
if it is successful, or
otherwise.
To get extended error information, call
GetLastWin32Error.