- Main Page
- Classes
- Files
- Directories
- Related Pages

- File List
- File Members

# cpl_win32ce_api.h

    00001 /******************************************************************************
    00002  * $Id: cpl_win32ce_api.h,v 1.3 2006/03/21 20:11:54 fwarmerdam Exp $
    00003  *
    00004  * Name:     cpl_win32ce_api.h
    00005  * Project:  CPL - Common Portability Library
    00006  * Purpose:  ASCII wrappers around only Unicode Windows CE API.
    00007  * Author:   Mateusz Łoskot, mloskot@taxussi.com.pl
    00008  *
    00009  ******************************************************************************
    00010  * Copyright (c) 2006, Mateusz Łoskot
    00011  *
    00012  * Permission is hereby granted, free of charge, to any person obtaining a
    00013  * copy of this software and associated documentation files (the "Software"),
    00014  * to deal in the Software without restriction, including without limitation
    00015  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
    00016  * and/or sell copies of the Software, and to permit persons to whom the
    00017  * Software is furnished to do so, subject to the following conditions:
    00018  *
    00019  * The above copyright notice and this permission notice shall be included
    00020  * in all copies or substantial portions of the Software.
    00021  *
    00022  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
    00023  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    00024  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
    00025  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    00026  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    00027  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
    00028  * DEALINGS IN THE SOFTWARE.
    00029  ******************************************************************************
    00030  *
    00031  * $Log: cpl_win32ce_api.h,v $
    00032  * Revision 1.3  2006/03/21 20:11:54  fwarmerdam
    00033  * fixup headers a bit
    00034  *
    00035  * Revision 1.2  2006/02/21 19:48:43  mloskot
    00036  * [WCE] Added copyright note
    00037  *
    00038  * Revision 1.1  2006/02/19 21:50:56  mloskot
    00039  * [WCE] non-Unicode wrappers around Unicode-only Windows CE API
    00040  *
    00041  ******************************************************************************/
    00042 #ifndef _CPL_WINCEAPI_H_INCLUDED
    00043 #define _CPL_WINCEAPI_H_INCLUDED    1
    00044
    00045 #define WIN32CE
    00046 #if defined(WIN32CE)
    00047
    00048 #include <windows.h>
    00049
    00050 #ifdef __cplusplus
    00051 extern "C" {
    00052 #endif  /* __cplusplus */
    00053
    00054 /*
    00055  * Windows CE API non-Unicode Wrappers
    00056  */
    00057
    00058 HMODULE CE_LoadLibraryA(
    00059     LPCSTR lpLibFileName
    00060     );
    00061
    00062 FARPROC CE_GetProcAddressA(
    00063     HMODULE hModule,
    00064     LPCSTR lpProcName
    00065     );
    00066
    00067
    00068 DWORD CE_GetModuleFileNameA(
    00069     HMODULE hModule,
    00070     LPSTR lpFilename,
    00071     DWORD nSize
    00072     );
    00073
    00074 HANDLE CE_CreateFileA(
    00075     LPCSTR lpFileName,
    00076     DWORD dwDesiredAccess,
    00077     DWORD dwShareMode,
    00078     LPSECURITY_ATTRIBUTES lpSecurityAttributes,
    00079     DWORD dwCreationDisposition,
    00080     DWORD dwFlagsAndAttributes,
    00081     HANDLE hTemplateFile
    00082     );
    00083
    00084
    00085 /* Replace Windows CE API calls with our own non-Unicode equivalents. */
    00086
    00087
    00088 /* XXX - mloskot - those defines are quite confusing ! */
    00089 /*
    00090 #ifdef LoadLibrary
    00091 #  undef  LoadLibrary
    00092 #  define LoadLibrary CE_LoadLibraryA
    00093 #endif
    00094
    00095 #ifdef GetProcAddress
    00096 #  undef  GetProcAddress
    00097 #  define GetProcAddress CE_GetProcAddressA
    00098 #endif
    00099
    00100 #ifdef GetModuleFileName
    00101 #  undef  GetModuleFileName
    00102 #  define GetModuleFileName CE_GetModuleFileNameA
    00103 #endif
    00104
    00105 #ifdef CreateFile
    00106 #  undef  CreateFile
    00107 #  define CreateFile CE_CreateFileA
    00108 #endif
    00109 */
    00110
    00111 #ifdef __cplusplus
    00112 }
    00113 #endif  /* __cplusplus */
    00114
    00115 #endif /* #ifdef WIN32CE */
    00116
    00117 #endif /* #ifndef _CPL_WINCEAPI_H_INCLUDED */

Generated for GDAL by 1.4.5.