'declarations
Private Declare Function FindWindow Lib "User32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function ShowWindow& Lib "User32" (ByVal hWnd&, ByVal nCmdShow&)
'code
Public Function HideDesktopIcons()
Dim hHandle As Long
hHandle = FindWindow("progman", vbNullString)
ShowWindow hHandle, 0
End Function