1 /* kernel32.h - 95-09-14 Cameron Heide
3 * Win32 functions, structures, and types related to kernel functions
5 #ifndef __WINE_KERNEL32_H
6 #define __WINE_KERNEL32_H
10 int KERN32_Init(void);
11 void SetLastError(DWORD error
);
12 DWORD
ErrnoToLastError(int errno_num
);
14 /* Linux's wchar_t is unsigned long but Win32 wants unsigned short
16 typedef unsigned short WCHAR
;
17 typedef WCHAR
*LPTSTR
;
19 /* Code page information.
27 /* The 'overlapped' data structure used by async I/O functions.
35 } OVERLAPPED
, *LPOVERLAPPED
;
37 /* Process startup information.
50 DWORD dwFillAttribute
;
58 } STARTUPINFO
, *LPSTARTUPINFO
;
60 /* SYSTEMTIME, and LPSYSTEMTIME moved to include/windows.h (JBP) */
64 WCHAR StandardName
[32];
65 SYSTEMTIME StandardDate
;
67 WCHAR DaylightName
[32];
68 SYSTEMTIME DaylightDate
;
70 } TIME_ZONE_INFORMATION
, *LPTIME_ZONE_INFORMATION
;
72 #define TIME_ZONE_ID_UNKNOWN 0
73 #define TIME_ZONE_ID_STANDARD 1
74 #define TIME_ZONE_ID_DAYLIGHT 2
77 /* File object type definitions
79 #define FILE_TYPE_UNKNOWN 0
80 #define FILE_TYPE_DISK 1
81 #define FILE_TYPE_CHAR 2
82 #define FILE_TYPE_PIPE 3
83 #define FILE_TYPE_REMOTE 32768
85 /* File creation flags
87 #define GENERIC_READ 0x80000000L
88 #define GENERIC_WRITE 0x40000000L
90 #define CREATE_ALWAYS 2
91 #define OPEN_EXISTING 3
93 #define TRUNCATE_EXISTING 5
95 /* Standard handle identifiers
97 #define STD_INPUT_HANDLE ((DWORD) -10)
98 #define STD_OUTPUT_HANDLE ((DWORD) -11)
99 #define STD_ERROR_HANDLE ((DWORD) -12)
101 /* The security attributes structure
105 void *lpSecurityDescriptor
;
107 } SECURITY_ATTRIBUTES
, *LPSECURITY_ATTRIBUTES
;
117 int dwFileAttributes
;
118 FILETIME ftCreationTime
;
119 FILETIME ftLastAccessTime
;
120 FILETIME ftLastWriteTime
;
121 int dwVolumeSerialNumber
;
127 } BY_HANDLE_FILE_INFORMATION
;
129 /* File attribute flags
131 #define FILE_ATTRIBUTE_ARCHIVE 0x0020
132 #define FILE_ATTRIBUTE_COMPRESSED 0x0800
133 #define FILE_ATTRIBUTE_DIRECTORY 0x0010
134 #define FILE_ATTRIBUTE_HIDDEN 0x0002
135 #define FILE_ATTRIBUTE_NORMAL 0x0080
136 #define FILE_ATTRIBUTE_READONLY 0x0001
137 #define FILE_ATTRIBUTE_SYSTEM 0x0004
138 #define FILE_ATTRIBUTE_TEMPORARY 0x0100
139 #define FILE_ATTRIBUTE_ATOMIC_WRITE 0x0200
140 #define FILE_ATTRIBUTE_XACTION_WRITE 0x0400
142 #endif /* __WINE_KERNEL32_H */