#define WIN32_LEAN_AND_MEAN
#define _WIN32_WINNT 0x0400
#i nclude <windows.h>
#i nclude <commctrl.h>
#i nclude <stdlib.h>
#i nclude <stdio.h>
#i nclude "inject.h"
#i nclude "HideWindows.h"
#define PROGRAM_MANAGER "Program Manager" // Program manager window name
#define TASKBAR "Shell_TrayWnd" // Taskbar class name
#define ID_STARTBUTTON 0x130 // Start button ID
#define ID_TRAY 0x12F // System tray ID
#define ID_CLOCK 0x12F // System clock ID
HINSTANCE hInst; // Instance handle
HHOOK hHook; // Mouse hook
/*************************
* Hide/Show Desktop. *
* TRUE=Show, FALSE=Hide *
* (Win9x/NT/2K/XP) *
*************************/
int Desktop_Show_Hide(BOOL bShowHide)
{
OSVERSIONINFO osvi;
BOOL bIsWindowsNT4SP3orLater;
int iServicePack;
char *p;
// Determine the current windows version
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
GetVersionEx(&osvi);
for (p = osvi.szCSDVersion; *p && !isdigit(*p); *p++);
iServicePack = atoi(p);
bIsWindowsNT4SP3orLater = (osvi.dwPlatformId == VER_PLATFORM_WIN32_NT) &&
(((osvi.dwMajorVersion == 4) && (iServicePack >= 3)) ||
(osvi.dwMajorVersion > 4));
if (!bShowHide)
{
if (!hHook)
{
hHook = SetWindowsHookEx(bIsWindowsNT4SP3orLater ? WH_MOUSE_LL : WH_MOUSE,
bIsWindowsNT4SP3orLater ? (HOOKPROC)LowLevelMouseHookProc : (HOOKPROC)MouseHookProc,
hInst,
0);
if (!hHook)
return 0;
}
}
&