Might now build for CE using MSC.
[gpgme.git] / src / w32-ce.h
1 /* w32-ce.h 
2    Copyright (C) 2010 g10 Code GmbH
3
4    This file is part of GPGME.
5  
6    GPGME is free software; you can redistribute it and/or modify it
7    under the terms of the GNU Lesser General Public License as
8    published by the Free Software Foundation; either version 2.1 of
9    the License, or (at your option) any later version.
10    
11    GPGME is distributed in the hope that it will be useful, but
12    WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14    Lesser General Public License for more details.
15    
16    You should have received a copy of the GNU Lesser General Public
17    License along with this program; if not, write to the Free Software
18    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19    02111-1307, USA.  */
20
21 #ifndef GPGME_W32_CE_H
22 #define GPGME_W32_CE_H
23
24 #include <time.h>
25 #include <stdarg.h>
26
27 #ifdef _MSC_VER
28 typedef int pid_t;
29 #endif
30
31 #include <winsock2.h>
32 #include <ws2tcpip.h> /* For getaddrinfo.  */
33 #include <windows.h>
34
35
36 #define getenv _gpgme_wince_getenv
37 char *getenv (const char *name);
38
39 #include <io.h>
40 #define isatty(fd) 0
41
42
43 /* Windows CE is missing some Windows functions that we want.  */
44
45 #define GetSystemTimeAsFileTime _gpgme_wince_GetSystemTimeAsFileTime
46 void GetSystemTimeAsFileTime (LPFILETIME ftp);
47
48 #define DeleteFileA _gpgme_wince_DeleteFileA
49 BOOL DeleteFileA(LPCSTR);
50
51 #define CreateFileA _gpgme_wince_CreateFileA
52 HANDLE CreateFileA (LPCSTR, DWORD, DWORD, LPSECURITY_ATTRIBUTES,
53                     DWORD, DWORD, HANDLE);
54
55 #define CreateProcessA _gpgme_wince_CreateProcessA
56 BOOL CreateProcessA(LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,LPSECURITY_ATTRIBUTES,BOOL,DWORD,PVOID,LPCSTR,LPSTARTUPINFOA,LPPROCESS_INFORMATION);
57
58 #define RegOpenKeyExA _gpgme_wince_RegOpenKeyExA
59 LONG RegOpenKeyExA(HKEY,LPCSTR,DWORD,REGSAM,PHKEY);
60
61 #define RegQueryValueExA _gpgme_wince_RegQueryValueExA
62 LONG WINAPI RegQueryValueExA(HKEY,LPCSTR,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
63
64 #define GetTempPathA _gpgme_wince_GetTempPathA
65 DWORD GetTempPathA(DWORD,LPSTR);
66
67 #define SHGetSpecialFolderPathA _gpgme_wince_SHGetSpecialFolderPathA
68 BOOL SHGetSpecialFolderPathA(HWND,LPSTR,int,BOOL);
69
70
71 #endif /* GPGME_W32_CE_H */