2 Copyright (C) 2010 g10 Code GmbH
4 This file is part of GPGME.
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.
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.
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
21 #ifndef GPGME_W32_CE_H
22 #define GPGME_W32_CE_H
32 #include <ws2tcpip.h> /* For getaddrinfo. */
36 #define getenv _gpgme_wince_getenv
37 char *getenv (const char *name);
43 /* Windows CE is missing some Windows functions that we want. */
45 #define GetSystemTimeAsFileTime _gpgme_wince_GetSystemTimeAsFileTime
46 void GetSystemTimeAsFileTime (LPFILETIME ftp);
48 #define DeleteFileA _gpgme_wince_DeleteFileA
49 BOOL DeleteFileA(LPCSTR);
51 #define CreateFileA _gpgme_wince_CreateFileA
52 HANDLE CreateFileA (LPCSTR, DWORD, DWORD, LPSECURITY_ATTRIBUTES,
53 DWORD, DWORD, HANDLE);
55 #define CreateProcessA _gpgme_wince_CreateProcessA
56 BOOL CreateProcessA(LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,LPSECURITY_ATTRIBUTES,BOOL,DWORD,PVOID,LPCSTR,LPSTARTUPINFOA,LPPROCESS_INFORMATION);
58 #define RegOpenKeyExA _gpgme_wince_RegOpenKeyExA
59 LONG RegOpenKeyExA(HKEY,LPCSTR,DWORD,REGSAM,PHKEY);
61 #define RegQueryValueExA _gpgme_wince_RegQueryValueExA
62 LONG WINAPI RegQueryValueExA(HKEY,LPCSTR,LPDWORD,LPDWORD,LPBYTE,LPDWORD);
64 #define GetTempPathA _gpgme_wince_GetTempPathA
65 DWORD GetTempPathA(DWORD,LPSTR);
67 #define SHGetSpecialFolderPathA _gpgme_wince_SHGetSpecialFolderPathA
68 BOOL SHGetSpecialFolderPathA(HWND,LPSTR,int,BOOL);
70 int _gpgme_wince_access (const char *fname, int mode);
71 #define access(a,b) _gpgme_wince_access ((a), (b))
73 void *_gpgme_wince_bsearch (const void *key, const void *base,
74 size_t nmemb, size_t size,
75 int (*compar) (const void *, const void *));
76 #define bsearch(a,b,c,d,e) _gpgme_wince_bsearch ((a),(b),(c),(d),(e))
78 /* Remove the redefined __leave keyword. It is defined by MSC for W32
79 in excpt.h and not in sehmap.h as for the plain windows
81 #if defined(_MSC_VER) && defined(HAVE_W32CE_SYSTEM)
85 #endif /* GPGME_W32_CE_H */