Francois Gouget : quartz: Make errors.
h more complete and better match the PSDK types.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Sep 10 10:17:48 CDT 2007
Module: wine
Branch: master
Commit: c0716ef18ca02e46c1fc3b552a8004ff1c647176
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c0716ef18ca02e46c1fc3b552a8004ff1c647176
Author: Francois Gouget <fgouget at free.fr>
Date: Sat Sep 1 02:45:13 2007 +0200
quartz: Make errors.h more complete and better match the PSDK types.
---
include/errors.h | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/include/errors.h b/include/errors.h
index eed221f..c8c3067 100644
--- a/include/errors.h
+++ b/include/errors.h
@@ -23,14 +23,19 @@
extern "C" {
#endif
+#define AMOVIEAPI
+
#define VFW_FIRST_CODE 0x200
#define MAX_ERROR_TEXT_LEN 160
#include <vfwmsgs.h>
-DWORD WINAPI AMGetErrorTextA(HRESULT hr, char *buffer, DWORD maxlen);
-DWORD WINAPI AMGetErrorTextW(HRESULT hr, WCHAR *buffer, DWORD maxlen);
+typedef BOOL (WINAPI* AMGETERRORTEXTPROCA)(HRESULT,char*,DWORD);
+typedef BOOL (WINAPI* AMGETERRORTEXTPROCW)(HRESULT,WCHAR*,DWORD);
+DECL_WINELIB_TYPE_AW(AMGETERRORTEXTPROC)
+DWORD WINAPI AMGetErrorTextA(HRESULT,LPSTR,DWORD);
+DWORD WINAPI AMGetErrorTextW(HRESULT,LPWSTR,DWORD);
#define AMGetErrorText WINELIB_NAME_AW(AMGetErrorText)
#ifdef __cplusplus
More information about the wine-cvs
mailing list