[WLAN-BRINGUP]
[reactos.git] / base / applications / mscutils / devmgmt / precomp.h
1 #ifndef __DEVMGMT_PRECOMP_H
2 #define __DEVMGMT_PRECOMP_H
3
4 #define WIN32_LEAN_AND_MEAN
5 #include <windows.h>
6 #include <windowsx.h>
7 #include <stdio.h>
8 #include <tchar.h>
9 #include <setupapi.h>
10 #include <cfgmgr32.h>
11 #include <commctrl.h>
12 #include <dll/devmgr/devmgr.h>
13 #include "resource.h"
14
15 #ifdef _MSC_VER
16 #pragma warning(disable : 4100)
17 #endif
18
19 #define MAX_DEV_LEN 256
20
21 typedef struct _MAIN_WND_INFO
22 {
23 HWND hMainWnd;
24 HWND hTreeView;
25 HWND hStatus;
26 HWND hTool;
27 HWND hProgDlg;
28 HMENU hShortcutMenu;
29 int nCmdShow;
30
31 /* status flags */
32 UINT InMenuLoop : 1;
33
34 } MAIN_WND_INFO, *PMAIN_WND_INFO;
35
36
37 INT_PTR CALLBACK AboutDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
38
39
40 /* devmgmt.c */
41 extern HINSTANCE hInstance;
42 extern HANDLE ProcessHeap;
43
44 /* mainwnd.c */
45 typedef struct _MENU_HINT
46 {
47 WORD CmdId;
48 UINT HintId;
49 } MENU_HINT, *PMENU_HINT;
50
51 BOOL InitMainWindowImpl(VOID);
52 VOID UninitMainWindowImpl(VOID);
53 HWND CreateMainWindow(LPCTSTR lpCaption, int nCmdShow);
54
55
56 /* enumdevices.c */
57
58 VOID FreeDeviceStrings(HWND hTreeView);
59 VOID OpenPropSheet(HWND hTreeView, HTREEITEM hItem);
60 HTREEITEM InitTreeView(HWND hTreeView);
61 VOID ListDevicesByType(HWND hTreeView, HTREEITEM hRoot);
62
63
64 /* misc.c */
65 INT AllocAndLoadString(OUT LPTSTR *lpTarget,
66 IN HINSTANCE hInst,
67 IN UINT uID);
68
69 DWORD LoadAndFormatString(IN HINSTANCE hInstance,
70 IN UINT uID,
71 OUT LPTSTR *lpTarget,
72 ...);
73
74 BOOL StatusBarLoadAndFormatString(IN HWND hStatusBar,
75 IN INT PartId,
76 IN HINSTANCE hInstance,
77 IN UINT uID,
78 ...);
79
80 BOOL StatusBarLoadString(IN HWND hStatusBar,
81 IN INT PartId,
82 IN HINSTANCE hInstance,
83 IN UINT uID);
84
85 INT GetTextFromEdit(OUT LPTSTR lpString,
86 IN HWND hDlg,
87 IN UINT Res);
88
89 HIMAGELIST InitImageList(UINT NumButtons,
90 UINT StartResource,
91 UINT Width,
92 UINT Height);
93
94 VOID GetError(VOID);
95 VOID DisplayString(LPTSTR);
96
97 #endif /* __DEVMGMT_PRECOMP_H */