summaryrefslogtreecommitdiffstats
path: root/winsup/w32api/include/errors.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/w32api/include/errors.h')
-rw-r--r--winsup/w32api/include/errors.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/winsup/w32api/include/errors.h b/winsup/w32api/include/errors.h
new file mode 100644
index 000000000..ee2092932
--- /dev/null
+++ b/winsup/w32api/include/errors.h
@@ -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