Work around MinGW mangling of "host:/path"
[msysgit/historical-msysgit.git] / mingw / include / ddk / newdev.h
blob9b4b6d1bb327c14eaad3966df963852e5a017041
1 /*
2 * newdev.h
4 * Driver installation DLL interface
6 * This file is part of the w32api package.
8 * Contributors:
9 * Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
11 * THIS SOFTWARE IS NOT COPYRIGHTED
13 * This source code is offered for use in the public domain. You may
14 * use, modify or distribute it freely.
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.
23 #ifndef __NEWDEV_H
24 #define __NEWDEV_H
26 #if __GNUC__ >=3
27 #pragma GCC system_header
28 #endif
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
34 /* UpdateDriverForPlugAndPlayDevices.InstallFlags constants */
35 #define INSTALLFLAG_FORCE 0x00000001
36 #define INSTALLFLAG_READONLY 0x00000002
37 #define INSTALLFLAG_NONINTERACTIVE 0x00000004
38 #define INSTALLFLAG_BITS 0x00000007
40 BOOL WINAPI
41 UpdateDriverForPlugAndPlayDevicesA(
42 HWND hwndParent,
43 LPCSTR HardwareId,
44 LPCSTR FullInfPath,
45 DWORD InstallFlags,
46 PBOOL bRebootRequired /*OPTIONAL*/);
48 BOOL WINAPI
49 UpdateDriverForPlugAndPlayDevicesW(
50 HWND hwndParent,
51 LPCWSTR HardwareId,
52 LPCWSTR FullInfPath,
53 DWORD InstallFlags,
54 PBOOL bRebootRequired /*OPTIONAL*/);
56 #ifdef UNICODE
57 #define UpdateDriverForPlugAndPlayDevices UpdateDriverForPlugAndPlayDevicesW
58 #else
59 #define UpdateDriverForPlugAndPlayDevices UpdateDriverForPlugAndPlayDevicesA
60 #endif /* UNICODE */
62 #ifdef __cplusplus
64 #endif
66 #endif /* __NEWDEV_H */