difxapi.h revision 3194da424708abdd288b28d96892b3a5f3f7df0b
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna/*
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna * Copyright (c) 2013 André Hentschel
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna *
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna * This library is free software; you can redistribute it and/or
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna * modify it under the terms of the GNU Lesser General Public
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna * License as published by the Free Software Foundation; either
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna * version 2.1 of the License, or (at your option) any later version.
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna *
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna * This library is distributed in the hope that it will be useful,
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna * but WITHOUT ANY WARRANTY; without even the implied warranty of
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna * Lesser General Public License for more details.
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna *
f2fd1e141349fb083bda610ac06557010f0395e4Phill Cunnington * You should have received a copy of the GNU Lesser General Public
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna * License along with this library; if not, write to the Free Software
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna */
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna#ifndef __WINE_DIFXAPI_H
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna#define __WINE_DIFXAPI_H
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna#ifdef __cplusplus
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Lunaextern "C" {
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna#endif
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Lunatypedef struct _INSTALLERINFO_A
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna{
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna PSTR pApplicationId;
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna PSTR pDisplayName;
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna PSTR pProductName;
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna PSTR pMfgName;
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna} INSTALLERINFO_A, *PINSTALLERINFO_A;
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Lunatypedef const PINSTALLERINFO_A PCINSTALLERINFO_A;
f2fd1e141349fb083bda610ac06557010f0395e4Phill Cunnington
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Lunatypedef struct _INSTALLERINFO_W
f2fd1e141349fb083bda610ac06557010f0395e4Phill Cunnington{
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna PWSTR pApplicationId;
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna PWSTR pDisplayName;
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna PWSTR pProductName;
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna PWSTR pMfgName;
f2fd1e141349fb083bda610ac06557010f0395e4Phill Cunnington} INSTALLERINFO_W, *PINSTALLERINFO_W;
f2fd1e141349fb083bda610ac06557010f0395e4Phill Cunningtontypedef const PINSTALLERINFO_W PCINSTALLERINFO_W;
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna
f2fd1e141349fb083bda610ac06557010f0395e4Phill Cunningtontypedef enum _DIFXAPI_LOG
c375ffd945a63cb2de20fda03e2ef0cdf96e64d9David Luna{
DIFXAPI_SUCCESS,
DIFXAPI_INFO,
DIFXAPI_WARNING,
DIFXAPI_ERROR,
} DIFXAPI_LOG;
typedef VOID (CALLBACK *DIFXAPILOGCALLBACK_A)(DIFXAPI_LOG,DWORD,PCSTR,PVOID);
typedef VOID (CALLBACK *DIFXAPILOGCALLBACK_W)(DIFXAPI_LOG,DWORD,PCWSTR,PVOID);
VOID WINAPI DIFXAPISetLogCallbackA(DIFXAPILOGCALLBACK_A,VOID*);
VOID WINAPI DIFXAPISetLogCallbackW(DIFXAPILOGCALLBACK_W,VOID*);
DWORD WINAPI DriverPackageGetPathA(PCSTR,PSTR,DWORD*);
DWORD WINAPI DriverPackageGetPathW(PCWSTR,PWSTR,DWORD*);
DWORD WINAPI DriverPackageInstallA(PCSTR,DWORD,PCINSTALLERINFO_A,BOOL*);
DWORD WINAPI DriverPackageInstallW(PCWSTR,DWORD,PCINSTALLERINFO_W,BOOL*);
DWORD WINAPI DriverPackagePreinstallA(PCSTR,DWORD);
DWORD WINAPI DriverPackagePreinstallW(PCWSTR,DWORD);
DWORD WINAPI DriverPackageUninstallA(PCSTR,DWORD,PCINSTALLERINFO_A,BOOL*);
DWORD WINAPI DriverPackageUninstallW(PCWSTR,DWORD,PCINSTALLERINFO_W,BOOL*);
#ifdef __cplusplus
}
#endif
#endif /* __WINE_DIFXAPI_H */