27#ifndef DBUS_SYSDEPS_WINCE_GLUE_H
28#define DBUS_SYSDEPS_WINCE_GLUE_H
41#define SHGetSpecialFolderPathW SHGetSpecialFolderPath
42BOOL WINAPI SHGetSpecialFolderPathA(HWND,LPSTR,
int,BOOL);
43BOOL WINAPI SHGetSpecialFolderPathW(HWND,LPWSTR,
int,BOOL);
45#ifndef TLS_OUT_OF_INDEXES
46#define TLS_OUT_OF_INDEXES 0xffffffff
52#define errno ((int)GetLastError ())
54#define ENOENT ERROR_FILE_NOT_FOUND
55#define EMFILE ERROR_TOO_MANY_OPEN_FILES
56#define EACCES ERROR_ACCESS_DENIED
57#define EBADF ERROR_INVALID_HANDLE
58#define ENOMEM ERROR_NOT_ENOUGH_MEMORY
59#define EXDEV ERROR_NOT_SAME_DEVICE
60#define ENFILE ERROR_NO_MORE_FILES
61#define EROFS ERROR_WRITE_PROTECT
62#define ENOLCK ERROR_SHARING_BUFFER_EXCEEDED
63#define ENOSYS ERROR_NOT_SUPPORTED
64#define EEXIST ERROR_FILE_EXISTS
65#define EPERM ERROR_CANNOT_MAKE
66#define EINVAL ERROR_INVALID_PARAMETER
67#define EINTR ERROR_INVALID_AT_INTERRUPT_TIME
68#define EPIPE ERROR_BROKEN_PIPE
69#define ENOSPC ERROR_DISK_FULL
70#define ENOTEMPTY ERROR_DIR_NOT_EMPTY
71#define EBUSY ERROR_BUSY
72#define ENAMETOOLONG ERROR_FILENAME_EXCED_RANGE
73#define EAGAIN ERROR_MORE_DATA
74#define ENOTDIR ERROR_DIRECTORY
75#define ERANGE ERROR_ARITHMETIC_OVERFLOW
76#define ENXIO ERROR_FILE_INVALID
77#define EFAULT ERROR_PROCESS_ABORTED
78#define EIO ERROR_IO_DEVICE
79#define EDEADLOCK ERROR_POSSIBLE_DEADLOCK
80#define ENODEV ERROR_BAD_DEVICE
85#define stricmp _stricmp
86#define strnicmp _strnicmp
88#define environ _dbus_wince_environ
89extern char *environ[];
91#define getenv _dbus_wince_getenv
92char *getenv (
const char *name);
94#define putenv _dbus_wince_putenv
95int putenv (
char *str);
97#define clock _dbus_wince_clock
100#define abort _dbus_wince_abort
103#define _S_IFMT 0170000
104#define _S_IFDIR 0040000
105#define _S_IFCHR 0020000
106#define _S_IFIFO 0010000
107#define _S_IFREG 0100000
108#define _S_IREAD 0000400
109#define _S_IWRITE 0000200
110#define _S_IEXEC 0000100
112#ifndef __OFF_T_DEFINED
114#define __OFF_T_DEFINED
116#ifndef _INTPTR_T_DEFINED
118#define _INTPTR_T_DEFINED
120#ifndef _UINTPTR_T_DEFINED
121typedef unsigned int uintptr_t;
122#define _UINTPTR_T_DEFINED
126#define _MAX_FNAME 256
142#define GetSystemTimeAsFileTime _dbus_wince_GetSystemTimeAsFileTime
143void GetSystemTimeAsFileTime (LPFILETIME ftp);
145#define _mbsrchr _dbus_wince_mbsrchr
146unsigned char* _mbsrchr (
const unsigned char*,
unsigned int);
148#define OpenFileMappingA _dbus_wince_OpenFileMappingA
149HANDLE OpenFileMappingA(DWORD,BOOL,LPCSTR);
151#define MoveFileExA _dbus_wince_MoveFileExA
152BOOL MoveFileExA(LPCSTR,LPCSTR,DWORD);
153#ifndef MOVEFILE_REPLACE_EXISTING
154#define MOVEFILE_REPLACE_EXISTING 0x00000001
157#define SetHandleInformation _dbus_wince_SetHandleInformation
158BOOL SetHandleInformation(HANDLE,DWORD,DWORD);
159#ifndef HANDLE_FLAG_INHERIT
160#define HANDLE_FLAG_INHERIT 0x01
162#ifndef HANDLE_FLAG_PROTECT
163#define HANDLE_FLAG_PROTECT_FROM_CLOSE 0x02
166#define SearchPathA _dbus_wince_SearchPathA
167DWORD SearchPathA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR*);
171dbus_bool_t _dbus_getsid(
char **sid);
174#define LookupAccountNameW _dbus_wince_LookupAccountNameW
175BOOL LookupAccountNameW(LPCWSTR,LPCWSTR,PSID,PDWORD,LPWSTR,PDWORD,PSID_NAME_USE);
177#define IsValidSid _dbus_wince_IsValidSid
178BOOL IsValidSid(PSID);
185#define CreateFileA _dbus_wince_CreateFileA
186HANDLE CreateFileA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,DWORD,DWORD,HANDLE);
188#define DeleteFileA _dbus_wince_DeleteFileA
189BOOL DeleteFileA(LPCSTR);
191#define GetFileAttributesA _dbus_wince_GetFileAttributesA
192DWORD GetFileAttributesA(LPCSTR);
194#define GetFileAttributesExA _dbus_wince_GetFileAttributesExA
195BOOL GetFileAttributesExA(LPCSTR,GET_FILEEX_INFO_LEVELS,PVOID);
197#define CreateFileMappingA _dbus_wince_CreateFileMappingA
198HANDLE CreateFileMappingA(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,DWORD,DWORD,LPCSTR);
200#define CreateDirectoryA _dbus_wince_CreateDirectoryA
201BOOL CreateDirectoryA(LPCSTR,LPSECURITY_ATTRIBUTES);
203#define RemoveDirectoryA _dbus_wince_RemoveDirectoryA
204BOOL RemoveDirectoryA(LPCSTR);
206#define FindFirstFileA _dbus_wince_FindFirstFileA
207HANDLE FindFirstFileA(LPCSTR,LPWIN32_FIND_DATAA);
209#define FindNextFileA _dbus_wince_FindNextFileA
210BOOL FindNextFileA(HANDLE,LPWIN32_FIND_DATAA);
212#define CreateMutexA _dbus_wince_CreateMutexA
213HANDLE CreateMutexA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR);
215#define CreateProcessA _dbus_wince_CreateProcessA
216BOOL CreateProcessA(LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,LPSECURITY_ATTRIBUTES,BOOL,DWORD,PVOID,LPCSTR,LPSTARTUPINFOA,LPPROCESS_INFORMATION);
217#ifndef CREATE_NO_WINDOW
218#define CREATE_NO_WINDOW 0x08000000
222#define RegOpenKeyExA _dbus_wince_RegOpenKeyExA
223LONG RegOpenKeyExA(HKEY,LPCSTR,DWORD,REGSAM,PHKEY);
225#define RegQueryValueExA _dbus_wince_RegQueryValueExA
226LONG WINAPI RegQueryValueExA(HKEY,LPCSTR,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
229#define FormatMessageA _dbus_wince_FormatMessageA
230DWORD FormatMessageA(DWORD,PCVOID,DWORD,DWORD,LPSTR,DWORD,va_list*);
232#define GetModuleFileNameA _dbus_wince_GetModuleFileNameA
233DWORD GetModuleFileNameA(HINSTANCE,LPSTR,DWORD);
235#define GetTempPathA _dbus_wince_GetTempPathA
236DWORD GetTempPathA(DWORD,LPSTR);
238#define SHGetSpecialFolderPathA _dbus_wince_SHGetSpecialFolderPathA
239BOOL SHGetSpecialFolderPathA(HWND,LPSTR,
int,BOOL);
242#define OutputDebugStringA _dbus_wince_OutputDebugStringA
243void OutputDebugStringA(LPCSTR);
#define DBUS_BEGIN_DECLS
Macro used prior to declaring functions in the D-Bus header files.
#define DBUS_END_DECLS
Macro used after declaring functions in the D-Bus header files.