Option Explicit
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Private Sub ActualizarEscritorio()
Dim ProgMan As Long, Desktop As Long
ProgMan = FindWindow("Progman", "Program Manager")
Desktop = FindWindowEx(ProgMan, 0, "SHELLDLL_DefView", vbNullString)
PostMessage Desktop, &H111, &H7103, 0
End Sub