Back to index

lightning-sunbird  0.9+nobinonly
os_win.h
Go to the documentation of this file.
00001 /*
00002 ** 2004 May 22
00003 **
00004 ** The author disclaims copyright to this source code.  In place of
00005 ** a legal notice, here is a blessing:
00006 **
00007 **    May you do good and not evil.
00008 **    May you find forgiveness for yourself and forgive others.
00009 **    May you share freely, never taking more than you give.
00010 **
00011 ******************************************************************************
00012 **
00013 ** This header file defines OS-specific features for Win32
00014 */
00015 #ifndef _SQLITE_OS_WIN_H_
00016 #define _SQLITE_OS_WIN_H_
00017 
00018 #include <windows.h>
00019 #include <winbase.h>
00020 
00021 /*
00022 ** The OsFile structure is a operating-system independing representation
00023 ** of an open file handle.  It is defined differently for each architecture.
00024 **
00025 ** This is the definition for Win32.
00026 */
00027 typedef struct OsFile OsFile;
00028 struct OsFile {
00029   HANDLE h;               /* Handle for accessing the file */
00030   unsigned char locktype; /* Type of lock currently held on this file */
00031   unsigned char isOpen;   /* True if needs to be closed */
00032   short sharedLockByte;   /* Randomly chosen byte used as a shared lock */
00033 };
00034 
00035 
00036 #define SQLITE_TEMPNAME_SIZE (MAX_PATH+50)
00037 #define SQLITE_MIN_SLEEP_MS 1
00038 
00039 
00040 #endif /* _SQLITE_OS_WIN_H_ */