1 | /*
|
---|
2 | * Copyright (c) 2013 André Hentschel
|
---|
3 | *
|
---|
4 | * This library is free software; you can redistribute it and/or
|
---|
5 | * modify it under the terms of the GNU Lesser General Public
|
---|
6 | * License as published by the Free Software Foundation; either
|
---|
7 | * version 2.1 of the License, or (at your option) any later version.
|
---|
8 | *
|
---|
9 | * This library is distributed in the hope that it will be useful,
|
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
12 | * Lesser General Public License for more details.
|
---|
13 | *
|
---|
14 | * You should have received a copy of the GNU Lesser General Public
|
---|
15 | * License along with this library; if not, write to the Free Software
|
---|
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef __WINE_DIFXAPI_H
|
---|
29 | #define __WINE_DIFXAPI_H
|
---|
30 |
|
---|
31 | #ifdef __cplusplus
|
---|
32 | extern "C" {
|
---|
33 | #endif
|
---|
34 |
|
---|
35 | typedef struct _INSTALLERINFO_A
|
---|
36 | {
|
---|
37 | PSTR pApplicationId;
|
---|
38 | PSTR pDisplayName;
|
---|
39 | PSTR pProductName;
|
---|
40 | PSTR pMfgName;
|
---|
41 | } INSTALLERINFO_A, *PINSTALLERINFO_A;
|
---|
42 | typedef const PINSTALLERINFO_A PCINSTALLERINFO_A;
|
---|
43 |
|
---|
44 | typedef struct _INSTALLERINFO_W
|
---|
45 | {
|
---|
46 | PWSTR pApplicationId;
|
---|
47 | PWSTR pDisplayName;
|
---|
48 | PWSTR pProductName;
|
---|
49 | PWSTR pMfgName;
|
---|
50 | } INSTALLERINFO_W, *PINSTALLERINFO_W;
|
---|
51 | typedef const PINSTALLERINFO_W PCINSTALLERINFO_W;
|
---|
52 |
|
---|
53 | typedef enum _DIFXAPI_LOG
|
---|
54 | {
|
---|
55 | DIFXAPI_SUCCESS,
|
---|
56 | DIFXAPI_INFO,
|
---|
57 | DIFXAPI_WARNING,
|
---|
58 | DIFXAPI_ERROR,
|
---|
59 | } DIFXAPI_LOG;
|
---|
60 |
|
---|
61 | typedef VOID (CALLBACK *DIFXAPILOGCALLBACK_A)(DIFXAPI_LOG,DWORD,PCSTR,PVOID);
|
---|
62 | typedef VOID (CALLBACK *DIFXAPILOGCALLBACK_W)(DIFXAPI_LOG,DWORD,PCWSTR,PVOID);
|
---|
63 |
|
---|
64 | VOID WINAPI DIFXAPISetLogCallbackA(DIFXAPILOGCALLBACK_A,VOID*);
|
---|
65 | VOID WINAPI DIFXAPISetLogCallbackW(DIFXAPILOGCALLBACK_W,VOID*);
|
---|
66 | DWORD WINAPI DriverPackageGetPathA(PCSTR,PSTR,DWORD*);
|
---|
67 | DWORD WINAPI DriverPackageGetPathW(PCWSTR,PWSTR,DWORD*);
|
---|
68 | DWORD WINAPI DriverPackageInstallA(PCSTR,DWORD,PCINSTALLERINFO_A,BOOL*);
|
---|
69 | DWORD WINAPI DriverPackageInstallW(PCWSTR,DWORD,PCINSTALLERINFO_W,BOOL*);
|
---|
70 | DWORD WINAPI DriverPackagePreinstallA(PCSTR,DWORD);
|
---|
71 | DWORD WINAPI DriverPackagePreinstallW(PCWSTR,DWORD);
|
---|
72 | DWORD WINAPI DriverPackageUninstallA(PCSTR,DWORD,PCINSTALLERINFO_A,BOOL*);
|
---|
73 | DWORD WINAPI DriverPackageUninstallW(PCWSTR,DWORD,PCINSTALLERINFO_W,BOOL*);
|
---|
74 |
|
---|
75 | #ifdef __cplusplus
|
---|
76 | }
|
---|
77 | #endif
|
---|
78 |
|
---|
79 | #endif /* __WINE_DIFXAPI_H */
|
---|