2006-05-28 21:24:28 +00:00
|
|
|
#ifndef __NEWDEV_PRIVATE_H
|
|
|
|
#define __NEWDEV_PRIVATE_H
|
|
|
|
|
2014-01-25 11:32:30 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
#define WIN32_NO_STATUS
|
|
|
|
#define _INC_WINDOWS
|
|
|
|
#define COM_NO_WINDOWS_H
|
|
|
|
|
2006-07-21 22:15:21 +00:00
|
|
|
#define COBJMACROS
|
2013-01-24 23:00:42 +00:00
|
|
|
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <winreg.h>
|
|
|
|
#include <wingdi.h>
|
|
|
|
#include <winuser.h>
|
2006-05-26 10:16:27 +00:00
|
|
|
#include <windowsx.h>
|
2006-05-28 21:24:28 +00:00
|
|
|
#include <newdev.h>
|
2006-02-17 00:04:10 +00:00
|
|
|
#include <regstr.h>
|
2014-10-06 14:23:36 +00:00
|
|
|
#include <dll/newdevp.h>
|
2013-12-26 13:30:44 +00:00
|
|
|
|
2006-02-17 00:04:10 +00:00
|
|
|
#include <wine/debug.h>
|
2013-12-26 13:30:44 +00:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(newdev);
|
2006-02-17 00:04:10 +00:00
|
|
|
|
|
|
|
#include "resource.h"
|
|
|
|
|
2006-05-25 22:55:13 +00:00
|
|
|
extern HINSTANCE hDllInstance;
|
|
|
|
|
2006-02-17 00:04:10 +00:00
|
|
|
typedef struct _DEVINSTDATA
|
|
|
|
{
|
|
|
|
HFONT hTitleFont;
|
2014-10-06 14:23:36 +00:00
|
|
|
BOOL bUpdate;
|
2006-02-17 00:04:10 +00:00
|
|
|
PBYTE buffer;
|
|
|
|
DWORD requiredSize;
|
|
|
|
DWORD regDataType;
|
|
|
|
HWND hDialog;
|
|
|
|
HDEVINFO hDevInfo;
|
|
|
|
SP_DEVINFO_DATA devInfoData;
|
2007-07-06 22:47:39 +00:00
|
|
|
SP_DRVINFO_DATA_W drvInfoData;
|
2006-05-25 22:55:13 +00:00
|
|
|
|
2006-07-21 22:15:21 +00:00
|
|
|
LPWSTR CustomSearchPath; /* MULTI_SZ string */
|
2006-02-17 00:04:10 +00:00
|
|
|
} DEVINSTDATA, *PDEVINSTDATA;
|
|
|
|
|
2006-05-28 20:21:43 +00:00
|
|
|
#define WM_SEARCH_FINISHED (WM_USER + 10)
|
|
|
|
#define WM_INSTALL_FINISHED (WM_USER + 11)
|
2006-05-25 22:55:13 +00:00
|
|
|
|
|
|
|
/* newdev.c */
|
2006-06-01 16:25:15 +00:00
|
|
|
|
2006-05-25 22:55:13 +00:00
|
|
|
BOOL
|
2006-06-01 16:25:15 +00:00
|
|
|
ScanFoldersForDriver(
|
|
|
|
IN PDEVINSTDATA DevInstData);
|
2006-05-25 22:55:13 +00:00
|
|
|
|
|
|
|
BOOL
|
2006-06-01 16:25:15 +00:00
|
|
|
PrepareFoldersToScan(
|
2006-05-25 22:55:13 +00:00
|
|
|
IN PDEVINSTDATA DevInstData,
|
2006-06-01 16:25:15 +00:00
|
|
|
IN BOOL IncludeRemovableDevices,
|
|
|
|
IN BOOL IncludeCustomPath,
|
|
|
|
IN HWND hwndCombo OPTIONAL);
|
2006-05-25 22:55:13 +00:00
|
|
|
|
|
|
|
BOOL
|
|
|
|
InstallCurrentDriver(
|
|
|
|
IN PDEVINSTDATA DevInstData);
|
|
|
|
|
|
|
|
/* wizard.c */
|
|
|
|
BOOL
|
|
|
|
DisplayWizard(
|
|
|
|
IN PDEVINSTDATA DevInstData,
|
|
|
|
IN HWND hwndParent,
|
|
|
|
IN UINT startPage);
|
2006-05-28 21:24:28 +00:00
|
|
|
|
|
|
|
#endif /* __NEWDEV_PRIVATE_H */
|