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
;
18 /* Code page information.
26 /* The 'overlapped' data structure used by async I/O functions.
34 } OVERLAPPED
, *LPOVERLAPPED
;
36 /* Process startup information.
49 DWORD dwFillAttribute
;
57 } STARTUPINFO
, *LPSTARTUPINFO
;
68 } SYSTEMTIME
, *LPSYSTEMTIME
;
72 WCHAR StandardName
[32];
73 SYSTEMTIME StandardDate
;
75 WCHAR DaylightName
[32];
76 SYSTEMTIME DaylightDate
;
78 } TIME_ZONE_INFORMATION
, *LPTIME_ZONE_INFORMATION
;
80 #define TIME_ZONE_ID_UNKNOWN 0
81 #define TIME_ZONE_ID_STANDARD 1
82 #define TIME_ZONE_ID_DAYLIGHT 2
85 /* File object type definitions
87 #define FILE_TYPE_UNKNOWN 0
88 #define FILE_TYPE_DISK 1
89 #define FILE_TYPE_CHAR 2
90 #define FILE_TYPE_PIPE 3
91 #define FILE_TYPE_REMOTE 32768
93 /* File creation flags
95 #define GENERIC_READ 0x80000000L
96 #define GENERIC_WRITE 0x40000000L
98 #define CREATE_ALWAYS 2
99 #define OPEN_EXISTING 3
100 #define OPEN_ALWAYS 4
101 #define TRUNCATE_EXISTING 5
103 /* Standard handle identifiers
105 #define STD_INPUT_HANDLE ((DWORD) -10)
106 #define STD_OUTPUT_HANDLE ((DWORD) -11)
107 #define STD_ERROR_HANDLE ((DWORD) -12)
109 /* The security attributes structure
113 void *lpSecurityDescriptor
;
115 } SECURITY_ATTRIBUTES
, *LPSECURITY_ATTRIBUTES
;
125 int dwFileAttributes
;
126 FILETIME ftCreationTime
;
127 FILETIME ftLastAccessTime
;
128 FILETIME ftLastWriteTime
;
129 int dwVolumeSerialNumber
;
135 } BY_HANDLE_FILE_INFORMATION
;
137 /* File attribute flags
139 #define FILE_ATTRIBUTE_ARCHIVE 0x0020
140 #define FILE_ATTRIBUTE_COMPRESSED 0x0800
141 #define FILE_ATTRIBUTE_DIRECTORY 0x0010
142 #define FILE_ATTRIBUTE_HIDDEN 0x0002
143 #define FILE_ATTRIBUTE_NORMAL 0x0080
144 #define FILE_ATTRIBUTE_READONLY 0x0001
145 #define FILE_ATTRIBUTE_SYSTEM 0x0004
146 #define FILE_ATTRIBUTE_TEMPORARY 0x0100
147 #define FILE_ATTRIBUTE_ATOMIC_WRITE 0x0200
148 #define FILE_ATTRIBUTE_XACTION_WRITE 0x0400
150 #endif /* __WINE_KERNEL32_H */