* Kern Sibbald MMIII
*/
/*
- Copyright (C) 2003-2005 Kern Sibbald
+ Copyright (C) 2003-2006 Kern Sibbald
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
*/
+#ifdef __APCUPSD__
+#include "apc.h"
+#else
#include "bacula.h"
+#endif
#if defined(HAVE_CYGWIN) || defined(HAVE_WIN32)
#include "winapi.h"
+int win32_client = 1;
+
#ifdef WIN32_VSS
#include "vss.h"
#endif
t_CreateFileA p_CreateFileA = NULL;
t_CreateFileW p_CreateFileW = NULL;
+t_CreateDirectoryA p_CreateDirectoryA;
+t_CreateDirectoryW p_CreateDirectoryW;
t_wunlink p_wunlink = NULL;
t_wmkdir p_wmkdir = NULL;
p_CreateFileW = (t_CreateFileW)
GetProcAddress(hLib, "CreateFileW");
+ p_CreateDirectoryA = (t_CreateDirectoryA)
+ GetProcAddress(hLib, "CreateDirectoryA");
+ p_CreateDirectoryW = (t_CreateDirectoryW)
+ GetProcAddress(hLib, "CreateDirectoryW");
+
/* attribute calls */
p_GetFileAttributesA = (t_GetFileAttributesA)
GetProcAddress(hLib, "GetFileAttributesA");
break;
}
#endif /* WIN32_VSS */
+ atexit(Win32ConvCleanupCache);
}
+#else
+
+/* Not Windows */
+int win32_client = 0;
+
#endif