dcb8cebd94cb4518319553526e884fa8475766ea
[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
32 /* newdev.c */
33 BOOL
34 SearchDriver(
35 IN PDEVINSTDATA DevInstData,
36 IN LPCTSTR Directory OPTIONAL,
37 IN LPCTSTR InfFile OPTIONAL);
38
39 BOOL
40 SearchDriverRecursive(
41 IN PDEVINSTDATA DevInstData,
42 IN LPCTSTR Path);
43
44 BOOL
45 InstallCurrentDriver(
46 IN PDEVINSTDATA DevInstData);
47
48 /* wizard.c */
49 BOOL
50 DisplayWizard(
51 IN PDEVINSTDATA DevInstData,
52 IN HWND hwndParent,
53 IN UINT startPage);