/*
* Windows APIs that are different for each system.
- * We use pointers to the entry points so that a
+ * We use pointers to the entry points so that a
* single binary will run on all Windows systems.
*
* Kern Sibbald MMIII
#ifndef __WINAPI_H
#define __WINAPI_H
#if defined(HAVE_WIN32)
+/* Commented out native.h include statement, which is not distributed with the
+ * free version of VC++, and which is not used in bacula. */
+/*#if !defined(HAVE_MINGW) // native.h not present on mingw
#include <native.h>
+#endif*/
#include <windef.h>
#endif
#if defined(HAVE_CYGWIN) || defined(HAVE_WIN32)
typedef BOOL (WINAPI * t_OpenProcessToken)(HANDLE, DWORD, PHANDLE);
typedef BOOL (WINAPI * t_AdjustTokenPrivileges)(HANDLE, BOOL,
- PTOKEN_PRIVILEGES, DWORD, PTOKEN_PRIVILEGES, PDWORD);
+ PTOKEN_PRIVILEGES, DWORD, PTOKEN_PRIVILEGES, PDWORD);
typedef BOOL (WINAPI * t_LookupPrivilegeValue)(LPCTSTR, LPCTSTR, PLUID);
extern t_OpenProcessToken p_OpenProcessToken;
/* In KERNEL32.DLL */
typedef BOOL (WINAPI * t_GetFileAttributesEx)(LPCTSTR, GET_FILEEX_INFO_LEVELS,
- LPVOID);
+ LPVOID);
typedef BOOL (WINAPI * t_SetProcessShutdownParameters)(DWORD, DWORD);
typedef BOOL (WINAPI * t_BackupRead)(HANDLE,LPBYTE,DWORD,LPDWORD,BOOL,BOOL,LPVOID*);
typedef BOOL (WINAPI * t_BackupWrite)(HANDLE,LPBYTE,DWORD,LPDWORD,BOOL,BOOL,LPVOID*);
extern t_GetFileAttributesEx p_GetFileAttributesEx;
extern t_SetProcessShutdownParameters p_SetProcessShutdownParameters;
-extern t_BackupRead p_BackupRead;
-extern t_BackupWrite p_BackupWrite;
+extern t_BackupRead p_BackupRead;
+extern t_BackupWrite p_BackupWrite;
#endif