From bdfa506e405af759fccceb8a262f8df955af41fb Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Thu, 1 Dec 2005 11:36:37 +0100 Subject: [PATCH] Add a stub for AdvInstallFile. --- dlls/advpack/advpack.c | 34 ++++++++++++++++++++++++++++++++++ dlls/advpack/advpack.spec | 2 +- include/advpub.h | 14 ++++++++++++++ 3 files changed, 49 insertions(+), 1 deletion(-) diff --git a/dlls/advpack/advpack.c b/dlls/advpack/advpack.c index febababae9c..45bdbe65d93 100644 --- a/dlls/advpack/advpack.c +++ b/dlls/advpack/advpack.c @@ -36,6 +36,40 @@ WINE_DEFAULT_DEBUG_CHANNEL(advpack); typedef HRESULT (WINAPI *DLLREGISTER) (void); +/*********************************************************************** + * AdvInstallFile (ADVPACK.@) + * + * Copies a file from the source to a destination. + * + * PARAMS + * hwnd [I] Handle to the window used for messages. + * lpszSourceDir [I] Source directory. + * lpszSourceFile [I] Source filename. + * lpszDestDir [I] Destination directory. + * lpszDestFile [I] Optional destination filename. + * dwFlags [I] See advpub.h. + * dwReserved [I] Reserved. Must be 0. + * + * RETURNS + * Success: S_OK. + * Failure: E_FAIL. + * + * NOTES + * If lpszDestFile is NULL, the destination filename is the same as + * lpszSourceFIle. + * + * BUGS + * Unimplemented. + */ +HRESULT WINAPI AdvInstallFile(HWND hwnd, LPCSTR lpszSourceDir, LPCSTR lpszSourceFile, + LPCSTR lpszDestDir, LPCSTR lpszDestFile, + DWORD dwFlags, DWORD dwReserved) +{ + FIXME("(%p,%p,%p,%p,%p,%ld,%ld) stub\n", hwnd, debugstr_a(lpszSourceDir), + debugstr_a(lpszSourceFile), debugstr_a(lpszDestDir), + debugstr_a(lpszDestFile), dwFlags, dwReserved); + return E_FAIL; +} /*********************************************************************** * DllMain (ADVPACK.@) diff --git a/dlls/advpack/advpack.spec b/dlls/advpack/advpack.spec index 0c792b2b81e..0d238ba1df6 100644 --- a/dlls/advpack/advpack.spec +++ b/dlls/advpack/advpack.spec @@ -1,5 +1,5 @@ @ stub AddDelBackupEntry -@ stub AdvInstallFile +@ stdcall AdvInstallFile(long str str str str long long) @ stub CloseINFEngine @ stdcall DelNode(str long) @ stdcall DelNodeRunDLL32(ptr ptr str long) diff --git a/include/advpub.h b/include/advpub.h index 15819693a39..2d0139fe86d 100644 --- a/include/advpub.h +++ b/include/advpub.h @@ -46,6 +46,17 @@ typedef struct _StrTable { typedef const STRTABLE CSTRTABLE; typedef CSTRTABLE *LPCSTRTABLE; +/* Flags for AdvInstallFile */ +#define AIF_WARNIFSKIP 0x00000001 +#define AIF_NOSKIP 0x00000002 +#define AIF_NOVERSIONCHECK 0x00000004 +#define AIF_FORCE_FILE_IN_USE 0x00000008 +#define AIF_NOOVERWRITE 0x00000010 +#define AIF_NO_VERSION_DIALOG 0x00000020 +#define AIF_REPLACEONLY 0x00000400 +#define AIF_NOLANGUAGECHECK 0x10000000 +#define AIF_QUIET 0x20000000 + /* Flags for RunSetupCommand */ #define RSC_FLAG_INF 0x00000001 #define RSC_FLAG_SKIPDISKSPACECHECK 0x00000002 @@ -61,6 +72,9 @@ typedef CSTRTABLE *LPCSTRTABLE; #define ADN_DONT_DEL_DIR 0x00000004 #define ADN_DEL_UNC_PATHS 0x00000008 +HRESULT WINAPI AdvInstallFile(HWND hwnd, LPCSTR lpszSourceDir, + LPCSTR lpszSourceFile, LPCSTR lpszDestDir, LPCSTR lpszDestFile, + DWORD dwFlags, DWORD dwReserved); HRESULT WINAPI DelNode(LPCSTR pszFileOrDirName, DWORD dwFlags); HRESULT WINAPI DelNodeRunDLL32(HWND,HINSTANCE,LPSTR,INT); HRESULT WINAPI ExecuteCab( HWND hwnd, PCABINFO pCab, LPVOID pReserved );