xref: /reactos/dll/win32/newdev/newdev_private.h (revision 40462c92)
1 #ifndef __NEWDEV_PRIVATE_H
2 #define __NEWDEV_PRIVATE_H
3 
4 #include <stdarg.h>
5 
6 #define WIN32_NO_STATUS
7 #define _INC_WINDOWS
8 #define COM_NO_WINDOWS_H
9 
10 #define COBJMACROS
11 
12 #include <windef.h>
13 #include <winbase.h>
14 #include <winreg.h>
15 #include <wingdi.h>
16 #include <winuser.h>
17 #include <windowsx.h>
18 #include <newdev.h>
19 #include <regstr.h>
20 #include <dll/newdevp.h>
21 
22 #include <wine/debug.h>
23 WINE_DEFAULT_DEBUG_CHANNEL(newdev);
24 
25 #include "resource.h"
26 
27 extern HINSTANCE hDllInstance;
28 
29 typedef struct _DEVINSTDATA
30 {
31 	HFONT hTitleFont;
32 	BOOL bUpdate;
33 	PBYTE buffer;
34 	DWORD requiredSize;
35 	DWORD regDataType;
36 	HWND hDialog;
37 	HDEVINFO hDevInfo;
38 	SP_DEVINFO_DATA devInfoData;
39 	SP_DRVINFO_DATA_W drvInfoData;
40 
41 	LPWSTR CustomSearchPath; /* MULTI_SZ string */
42 } DEVINSTDATA, *PDEVINSTDATA;
43 
44 #define WM_SEARCH_FINISHED  (WM_USER + 10)
45 #define WM_INSTALL_FINISHED (WM_USER + 11)
46 
47 /* newdev.c */
48 
49 BOOL
50 ScanFoldersForDriver(
51 	IN PDEVINSTDATA DevInstData);
52 
53 BOOL
54 PrepareFoldersToScan(
55 	IN PDEVINSTDATA DevInstData,
56 	IN BOOL IncludeRemovableDevices,
57 	IN BOOL IncludeCustomPath,
58 	IN HWND hwndCombo OPTIONAL);
59 
60 BOOL
61 InstallCurrentDriver(
62 	IN PDEVINSTDATA DevInstData);
63 
64 /* wizard.c */
65 BOOL
66 DisplayWizard(
67 	IN PDEVINSTDATA DevInstData,
68 	IN HWND hwndParent,
69 	IN UINT startPage);
70 
71 #endif /* __NEWDEV_PRIVATE_H */
72