Shell32UpdateRecycleBinIcon Method
Updates the Recycle Bin icon on the desktop to reflect the state of the systemwide Recycle Bin,
for example if an error occurs during an
EmptyRecycleBin(IntPtr, String, SHEmptyRecycleBinFlags) call.
But since the other Recycle Bin management functions will update this icon on their own,
there's almost no reason why your applications would need to call this function explicitly.
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", EntryPoint = "SHUpdateRecycleBinIcon")]
public static bool UpdateRecycleBinIcon()
<DllImportAttribute("Shell32.dll", EntryPoint := "SHUpdateRecycleBinIcon">]
Public Shared Function UpdateRecycleBinIcon As Boolean
Dim returnValue As Boolean
returnValue = Shell32.UpdateRecycleBinIcon()
public:
[DllImportAttribute(L"Shell32.dll", EntryPoint = L"SHUpdateRecycleBinIcon")]
static bool UpdateRecycleBinIcon()
[<DllImportAttribute("Shell32.dll", EntryPoint = "SHUpdateRecycleBinIcon")>]
static member UpdateRecycleBinIcon : unit -> bool
No code example is currently available or this language may not be supported.
Return Value
Boolean if operation succeeds,
otherwise.