OSDN Git Service

* include/errors.h: New file.
authorpapadopo <papadopo>
Wed, 3 May 2006 07:06:26 +0000 (07:06 +0000)
committerpapadopo <papadopo>
Wed, 3 May 2006 07:06:26 +0000 (07:06 +0000)
* include/dshow.h: Include <errors.h>.

winsup/w32api/ChangeLog
winsup/w32api/include/dshow.h
winsup/w32api/include/errors.h [new file with mode: 0644]

index 6f51895..8728c99 100644 (file)
@@ -1,5 +1,10 @@
 2006-05-02  Dimitri Papadopoulos  <papadopo@users.sourceforge.net>
 
+       * include/errors.h: New file.
+       * include/dshow.h: Include <errors.h>.
+
+2006-05-02  Dimitri Papadopoulos  <papadopo@users.sourceforge.net>
+
        * include/dshow.h: New file.
        * include/evcode.h: New file.
        * include/audevcod.h: New file.
@@ -17,7 +22,7 @@
        * include/mprapi.h (RAS_FLAGS_*,PPP_LCP_*,RASCCPCA_* ,PPP_CCP_*,MAX_*,
        RASPRIV_*,*ADDRESSLEN,MPR_ENABLE_*): Define.
        * include/mprapi.h (RAS_*_CONDITION): Add enums.
-       * include/mprapi.h <lmcons.h>: For NETBIOS_NAME_LEN, UNLEN, DLEN.
+       * include/mprapi.h: <lmcons.h> for NETBIOS_NAME_LEN, UNLEN, DLEN.
 
 2006-05-02  Dimitri Papadopoulos  <papadopo@users.sourceforge.net>
 
index b8754ba..fce9a61 100644 (file)
@@ -7,5 +7,6 @@
 #include <evcode.h>
 #include <audevcod.h>
 #include <dvdevcod.h>
+#include <errors.h>
 
 #endif
diff --git a/winsup/w32api/include/errors.h b/winsup/w32api/include/errors.h
new file mode 100644 (file)
index 0000000..ee20929
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef _ERRORS_H
+#define _ERRORS_H
+#if __GNUC__ >=3
+#pragma GCC system_header
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define MAX_ERROR_TEXT_LEN 160
+DWORD WINAPI AMGetErrorTextA(HRESULT,CHAR*,DWORD);
+DWORD WINAPI AMGetErrorTextW(HRESULT,WCHAR*,DWORD);
+#ifdef UNICODE
+#define AMGetErrorText AMGetErrorTextW
+#else
+#define AMGetErrorText AMGetErrorTextA
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+#endif