- Display install page when installing the device, instead of search page
[reactos.git] / reactos / dll / win32 / newdev / newdev.h
1 #include <windows.h>
2 #include <windowsx.h>
3 #include <commctrl.h>
4 #include <regstr.h>
5 #include <setupapi.h>
6 #include <cfgmgr32.h>
7 #include <tchar.h>
8 #include <wine/debug.h>
9
10 #include <stdio.h>
11
12 #include "resource.h"
13
14 extern HINSTANCE hDllInstance;
15
16 typedef struct _DEVINSTDATA
17 {
18 HFONT hTitleFont;
19 PBYTE buffer;
20 DWORD requiredSize;
21 DWORD regDataType;
22 HWND hDialog;
23 HDEVINFO hDevInfo;
24 SP_DEVINFO_DATA devInfoData;
25 SP_DRVINFO_DATA drvInfoData;
26
27 LPTSTR CustomSearchPath; /* MULTI_SZ string */
28 } DEVINSTDATA, *PDEVINSTDATA;
29
30 #define WM_SEARCH_FINISHED (WM_USER + 10)
31 #define WM_INSTALL_FINISHED (WM_USER + 11)
32
33 /* newdev.c */
34 BOOL
35 SearchDriver(
36 IN PDEVINSTDATA DevInstData,
37 IN LPCTSTR Directory OPTIONAL,
38 IN LPCTSTR InfFile OPTIONAL);
39
40 BOOL
41 SearchDriverRecursive(
42 IN PDEVINSTDATA DevInstData,
43 IN LPCTSTR Path);
44
45 BOOL
46 InstallCurrentDriver(
47 IN PDEVINSTDATA DevInstData);
48
49 /* wizard.c */
50 BOOL
51 DisplayWizard(
52 IN PDEVINSTDATA DevInstData,
53 IN HWND hwndParent,
54 IN UINT startPage);