6decf10ef4f70722815ebc5b0867ca624190190d
[reactos.git] / include / psdk / newdev.h
1 /*
2 * newdev.h
3 *
4 * Driver installation DLL interface
5 *
6 * This file is part of the w32api package.
7 *
8 * Contributors:
9 * Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
10 *
11 * THIS SOFTWARE IS NOT COPYRIGHTED
12 *
13 * This source code is offered for use in the public domain. You may
14 * use, modify or distribute it freely.
15 *
16 * This code is distributed in the hope that it will be useful but
17 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
18 * DISCLAIMED. This includes but is not limited to warranties of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20 *
21 */
22
23 #ifndef __NEWDEV_H
24 #define __NEWDEV_H
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 #pragma pack(push,4)
31
32 /* UpdateDriverForPlugAndPlayDevices.InstallFlags constants */
33 #define INSTALLFLAG_FORCE 0x00000001
34 #define INSTALLFLAG_READONLY 0x00000002
35 #define INSTALLFLAG_NONINTERACTIVE 0x00000004
36 #define INSTALLFLAG_BITS 0x00000007
37
38 BOOL WINAPI
39 UpdateDriverForPlugAndPlayDevicesA(
40 HWND hwndParent,
41 LPCSTR HardwareId,
42 LPCSTR FullInfPath,
43 DWORD InstallFlags,
44 PBOOL bRebootRequired OPTIONAL);
45
46 BOOL WINAPI
47 UpdateDriverForPlugAndPlayDevicesW(
48 HWND hwndParent,
49 LPCWSTR HardwareId,
50 LPCWSTR FullInfPath,
51 DWORD InstallFlags,
52 PBOOL bRebootRequired OPTIONAL);
53
54 #ifdef UNICODE
55 #define UpdateDriverForPlugAndPlayDevices UpdateDriverForPlugAndPlayDevicesW
56 #else
57 #define UpdateDriverForPlugAndPlayDevices UpdateDriverForPlugAndPlayDevicesA
58 #endif /* UNICODE */
59
60 #pragma pack(pop)
61
62 #ifdef __cplusplus
63 }
64 #endif
65
66 #endif /* __NEWDEV_H */