xref: /reactos/base/applications/mmc/precomp.h (revision ccef43f3)
1 #ifndef _MMC_PCH_
2 #define _MMC_PCH_
3 
4 #include <stdarg.h>
5 
6 #include <windef.h>
7 #include <winbase.h>
8 #include <wingdi.h>
9 #include <winuser.h>
10 #include <commctrl.h>
11 #include <commdlg.h>
12 #include <tchar.h>
13 
14 #define WM_USER_CLOSE_CHILD (WM_USER + 1)
15 
16 
17 /* console.c */
18 
19 BOOL
20 RegisterMMCWndClasses(VOID);
21 
22 VOID
23 UnregisterMMCWndClasses(VOID);
24 
25 HWND
26 CreateConsoleWindow(IN LPCTSTR lpFileName OPTIONAL,
27                     int nCmdShow);
28 
29 /* misc.c */
30 
31 INT
32 LengthOfStrResource(IN HINSTANCE hInst,
33                     IN UINT uID);
34 
35 INT
36 AllocAndLoadString(OUT LPTSTR *lpTarget,
37                    IN HINSTANCE hInst,
38                    IN UINT uID);
39 
40 DWORD
41 LoadAndFormatString(IN HINSTANCE hInstance,
42                     IN UINT uID,
43                     OUT LPTSTR *lpTarget,
44                     ...);
45 
46 /* mmc.c */
47 
48 extern HINSTANCE hAppInstance;
49 extern HANDLE hAppHeap;
50 extern HWND hwndMainConsole;
51 extern HWND hwndMDIClient;
52 
53 #endif /* _MMC_PCH_ */
54