Shell32SHUpdateImage Method
Notifies the Shell that an image in the system image list has changed.
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("Shell32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
public static void SHUpdateImage(
string filepath,
int iconIndex,
SHUpdateImageFlags flags,
int imageIndex
)
<DllImportAttribute("Shell32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Sub SHUpdateImage (
filepath As String,
iconIndex As Integer,
flags As SHUpdateImageFlags,
imageIndex As Integer
)
Dim filepath As String
Dim iconIndex As Integer
Dim flags As SHUpdateImageFlags
Dim imageIndex As Integer
Shell32.SHUpdateImage(filepath, iconIndex,
flags, imageIndex)
public:
[DllImportAttribute(L"Shell32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
static void SHUpdateImage(
String^ filepath,
int iconIndex,
SHUpdateImageFlags flags,
int imageIndex
)
[<DllImportAttribute("Shell32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)>]
static member SHUpdateImage :
filepath : string *
iconIndex : int *
flags : SHUpdateImageFlags *
imageIndex : int -> unit
No code example is currently available or this language may not be supported.
Parameters
- filepath String
-
A pointer to a string value that specifies the fully qualified path of the file that contains the icon.
- iconIndex Int32
-
An integer that specifies the zero-based index of the icon in the file specified by filepath.
- flags SHUpdateImageFlags
-
The flags that determine the icon attributes.
- imageIndex Int32
-
An integer that specifies the index in the system image list of the icon that is being updated.