]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/winapi.h
04Jul05
[bacula/bacula] / bacula / src / lib / winapi.h
index 2e8216d7697259838e35c9e80c6aed12a915be09..1b815d51d9fb8299570965ac1e020c40072e5390 100644 (file)
 
 #if defined(HAVE_CYGWIN) || defined(HAVE_WIN32)
 
+#ifndef POOLMEM
+typedef char POOLMEM;
+#endif
+
 // unicode enabling of win 32 needs some defines and functions
-#define MAX_PATH_UNICODE 32767
 #define MAX_PATH_UTF8    MAX_PATH*3
 
 int wchar_2_UTF8(char *pszUTF, const WCHAR *pszUCS, int cchChar = MAX_PATH_UTF8);
-int UTF8_2_wchar(WCHAR *pszUCS, const char *pszUTF, int cchWideChar = MAX_PATH);
+int UTF8_2_wchar(POOLMEM **pszUCS, const char *pszUTF);
 
 
 /* In ADVAPI32.DLL */
@@ -69,6 +72,7 @@ typedef int (__cdecl * t_wopen)  (const wchar_t *, int, ...);
 extern t_wunlink   p_wunlink;
 extern t_wmkdir    p_wmkdir;
 extern t_wopen     p_wopen;
+
 /* In KERNEL32.DLL */
 typedef BOOL (WINAPI * t_GetFileAttributesExA)(LPCSTR, GET_FILEEX_INFO_LEVELS,
        LPVOID);
@@ -135,6 +139,11 @@ extern t_SetCurrentDirectoryW p_SetCurrentDirectoryW;
 extern t_GetCurrentDirectoryA p_GetCurrentDirectoryA;
 extern t_GetCurrentDirectoryW p_GetCurrentDirectoryW;
 
+#ifdef WIN32_VSS
+class  VSSClient;
+extern VSSClient* g_pVSSClient;
+#endif
+
 void InitWinAPIWrapper();
 #endif