ntdll: Catch MEM_EXTENDED_PARAMETER duplicates for all types.
[wine.git] / include / difxapi.h
blob3e0284509e256926ec7d27aa008f866c2f3cc664
1 /*
2 * Copyright (c) 2013 André Hentschel
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.
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.
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
19 #ifndef __WINE_DIFXAPI_H
20 #define __WINE_DIFXAPI_H
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
26 #define ERROR_DEPENDENT_APPLICATIONS_EXIST 0xe0000300
27 #define ERROR_NO_DEVICE_ID 0xe0000301
28 #define ERROR_DRIVER_PACKAGE_NOT_IN_STORE 0xe0000302
29 #define ERROR_MISSING_FILE 0xe0000303
30 #define ERROR_INVALID_CATALOG_DATA 0xe0000304
32 #define DRIVER_PACKAGE_REPAIR 0x00000001
33 #define DRIVER_PACKAGE_SILENT 0x00000002
34 #define DRIVER_PACKAGE_FORCE 0x00000004
35 #define DRIVER_PACKAGE_ONLY_IF_DEVICE_PRESENT 0x00000008
36 #define DRIVER_PACKAGE_LEGACY_MODE 0x00000010
37 #define DRIVER_PACKAGE_DELETE_FILES 0x00000020
39 typedef struct _INSTALLERINFO_A
41 PSTR pApplicationId;
42 PSTR pDisplayName;
43 PSTR pProductName;
44 PSTR pMfgName;
45 } INSTALLERINFO_A, *PINSTALLERINFO_A;
46 typedef const PINSTALLERINFO_A PCINSTALLERINFO_A;
48 typedef struct _INSTALLERINFO_W
50 PWSTR pApplicationId;
51 PWSTR pDisplayName;
52 PWSTR pProductName;
53 PWSTR pMfgName;
54 } INSTALLERINFO_W, *PINSTALLERINFO_W;
55 typedef const PINSTALLERINFO_W PCINSTALLERINFO_W;
57 typedef enum _DIFXAPI_LOG
59 DIFXAPI_SUCCESS,
60 DIFXAPI_INFO,
61 DIFXAPI_WARNING,
62 DIFXAPI_ERROR,
63 } DIFXAPI_LOG;
65 typedef void (__cdecl *DIFXAPILOGCALLBACK_A)(DIFXAPI_LOG, DWORD, const char *, void *);
66 typedef void (__cdecl *DIFXAPILOGCALLBACK_W)(DIFXAPI_LOG, DWORD, const WCHAR *, void *);
67 typedef VOID (CALLBACK *DIFXLOGCALLBACK_A)(DIFXAPI_LOG,DWORD,PCSTR,PVOID);
68 typedef VOID (CALLBACK *DIFXLOGCALLBACK_W)(DIFXAPI_LOG,DWORD,PCWSTR,PVOID);
70 VOID WINAPI DIFXAPISetLogCallbackA(DIFXAPILOGCALLBACK_A,VOID*);
71 VOID WINAPI DIFXAPISetLogCallbackW(DIFXAPILOGCALLBACK_W,VOID*);
72 DWORD WINAPI DriverPackageGetPathA(PCSTR,PSTR,DWORD*);
73 DWORD WINAPI DriverPackageGetPathW(PCWSTR,PWSTR,DWORD*);
74 DWORD WINAPI DriverPackageInstallA(PCSTR,DWORD,PCINSTALLERINFO_A,BOOL*);
75 DWORD WINAPI DriverPackageInstallW(PCWSTR,DWORD,PCINSTALLERINFO_W,BOOL*);
76 DWORD WINAPI DriverPackagePreinstallA(PCSTR,DWORD);
77 DWORD WINAPI DriverPackagePreinstallW(PCWSTR,DWORD);
78 DWORD WINAPI DriverPackageUninstallA(PCSTR,DWORD,PCINSTALLERINFO_A,BOOL*);
79 DWORD WINAPI DriverPackageUninstallW(PCWSTR,DWORD,PCINSTALLERINFO_W,BOOL*);
80 VOID WINAPI SetDifxLogCallbackA(DIFXLOGCALLBACK_A,VOID*);
81 VOID WINAPI SetDifxLogCallbackW(DIFXLOGCALLBACK_W,VOID*);
83 #ifdef __cplusplus
85 #endif
87 #endif /* __WINE_DIFXAPI_H */