Aşağıdaki c# kodu ile masaüstü simgelerini kolayca gizleyebilirsiniz.

[DllImport("user32.dll")]
static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
[DllImport("user32.dll", SetLastError = true)]
static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow);
void ShowDesktopIcons(bool show)
{
IntPtr hWnd = FindWindowEx(IntPtr.Zero, IntPtr.Zero, “Progman”, null);
if (show)
ShowWindow(hWnd, 5);
else
ShowWindow(hWnd, 0);
}