]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/findlib/winapi.h
Update doc
[bacula/bacula] / bacula / src / findlib / winapi.h
index 4672fdd49fbb44f0df53d3db71c0c9070b7b3d16..e7f9ec4330feebc9b6c5e1c903e6ad84c3ec55b8 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * 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)
@@ -36,7 +40,7 @@
 
 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;
@@ -45,15 +49,15 @@ extern t_LookupPrivilegeValue  p_LookupPrivilegeValue;
 
 /* 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