Last change
on this file since 1063 was 1046, checked in by alloc, 8 years ago |
Daodan: Added Windows MinGW and build batch file
|
File size:
1.6 KB
|
Line | |
---|
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 | #if __GNUC__ >=3
|
---|
27 | #pragma GCC system_header
|
---|
28 | #endif
|
---|
29 |
|
---|
30 | #ifdef __cplusplus
|
---|
31 | extern "C" {
|
---|
32 | #endif
|
---|
33 |
|
---|
34 | /* UpdateDriverForPlugAndPlayDevices.InstallFlags constants */
|
---|
35 | #define INSTALLFLAG_FORCE 0x00000001
|
---|
36 | #define INSTALLFLAG_READONLY 0x00000002
|
---|
37 | #define INSTALLFLAG_NONINTERACTIVE 0x00000004
|
---|
38 | #define INSTALLFLAG_BITS 0x00000007
|
---|
39 |
|
---|
40 | BOOL WINAPI
|
---|
41 | UpdateDriverForPlugAndPlayDevicesA(
|
---|
42 | HWND hwndParent,
|
---|
43 | LPCSTR HardwareId,
|
---|
44 | LPCSTR FullInfPath,
|
---|
45 | DWORD InstallFlags,
|
---|
46 | PBOOL bRebootRequired /*OPTIONAL*/);
|
---|
47 |
|
---|
48 | BOOL WINAPI
|
---|
49 | UpdateDriverForPlugAndPlayDevicesW(
|
---|
50 | HWND hwndParent,
|
---|
51 | LPCWSTR HardwareId,
|
---|
52 | LPCWSTR FullInfPath,
|
---|
53 | DWORD InstallFlags,
|
---|
54 | PBOOL bRebootRequired /*OPTIONAL*/);
|
---|
55 |
|
---|
56 | #ifdef UNICODE
|
---|
57 | #define UpdateDriverForPlugAndPlayDevices UpdateDriverForPlugAndPlayDevicesW
|
---|
58 | #else
|
---|
59 | #define UpdateDriverForPlugAndPlayDevices UpdateDriverForPlugAndPlayDevicesA
|
---|
60 | #endif /* UNICODE */
|
---|
61 |
|
---|
62 | #ifdef __cplusplus
|
---|
63 | }
|
---|
64 | #endif
|
---|
65 |
|
---|
66 | #endif /* __NEWDEV_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.