Completely revamped "control.exe":
[reactos.git] / reactos / base / applications / control / control.h
1 /*
2 * PROJECT: ReactOS System Control Panel
3 * FILE: base/applications/control/control.h
4 * PURPOSE: ReactOS System Control Panel
5 * PROGRAMMERS: Gero Kuehn (reactos.filter@gkware.com)
6 * Colin Finck (mail@colinfinck.de)
7 */
8
9 #include <windows.h>
10 #include <commctrl.h>
11 #include <cpl.h>
12 #include <tchar.h>
13
14 #include "resource.h"
15
16 #define MYWNDCLASS _T("CTLPANELCLASS")
17 typedef LONG (CALLBACK *CPLAPPLETFUNC)(HWND hwndCPL, UINT uMsg, LPARAM lParam1, LPARAM lParam2);
18
19 #define CCH_UINT_MAX 11
20 #define MAX_VALUE_NAME 16383
21
22 /* Macro for calling "rundll32.exe"
23 According to MSDN, ShellExecute returns a value greater than 32 if the operation was successful. */
24 #define RUNDLL(param) ((int)ShellExecute(NULL, _T("open"), _T("rundll32.exe"), (param), NULL, SW_SHOWDEFAULT) > 32)