1 /* 2 ** 2004 May 22 3 ** 4 ** The author disclaims copyright to this source code. In place of 5 ** a legal notice, here is a blessing: 6 ** 7 ** May you do good and not evil. 8 ** May you find forgiveness for yourself and forgive others. 9 ** May you share freely, never taking more than you give. 10 ** 11 ****************************************************************************** 12 ** 13 ** This header file defines OS-specific features for Win32 14 */ 15 #ifndef _SQLITE_OS_WIN_H_ 16 #define _SQLITE_OS_WIN_H_ 17 18 #include <windows.h> 19 #include <winbase.h> 20 21 /* 22 ** The OsFile structure is a operating-system independing representation 23 ** of an open file handle. It is defined differently for each architecture. 24 ** 25 ** This is the definition for Win32. 26 */ 27 typedef struct OsFile OsFile; 28 struct OsFile { 29 HANDLE h; /* Handle for accessing the file */ 30 unsigned char locktype; /* Type of lock currently held on this file */ 31 unsigned char isOpen; /* True if needs to be closed */ 32 short sharedLockByte; /* Randomly chosen byte used as a shared lock */ 33 }; 34 35 36 #define SQLITE_TEMPNAME_SIZE (MAX_PATH+50) 37 #define SQLITE_MIN_SLEEP_MS 1 38 39 40 #endif /* _SQLITE_OS_WIN_H_ */ 41