- Main Page
- Classes
- Files
- Related Pages

- File List
- File Members

# cpl_win32ce_api.h

    00001 /******************************************************************************
    00002  * $Id: cpl_win32ce_api.h 10646 2007-01-18 02:38:10Z warmerdam $
    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 #ifndef _CPL_WINCEAPI_H_INCLUDED
    00031 #define _CPL_WINCEAPI_H_INCLUDED    1
    00032
    00033 #define WIN32CE
    00034 #if defined(WIN32CE)
    00035
    00036 #include <windows.h>
    00037
    00038 #ifdef __cplusplus
    00039 extern "C" {
    00040 #endif  /* __cplusplus */
    00041
    00042 /*
    00043  * Windows CE API non-Unicode Wrappers
    00044  */
    00045
    00046 HMODULE CE_LoadLibraryA(
    00047     LPCSTR lpLibFileName
    00048     );
    00049
    00050 FARPROC CE_GetProcAddressA(
    00051     HMODULE hModule,
    00052     LPCSTR lpProcName
    00053     );
    00054
    00055
    00056 DWORD CE_GetModuleFileNameA(
    00057     HMODULE hModule,
    00058     LPSTR lpFilename,
    00059     DWORD nSize
    00060     );
    00061
    00062 HANDLE CE_CreateFileA(
    00063     LPCSTR lpFileName,
    00064     DWORD dwDesiredAccess,
    00065     DWORD dwShareMode,
    00066     LPSECURITY_ATTRIBUTES lpSecurityAttributes,
    00067     DWORD dwCreationDisposition,
    00068     DWORD dwFlagsAndAttributes,
    00069     HANDLE hTemplateFile
    00070     );
    00071
    00072
    00073 /* Replace Windows CE API calls with our own non-Unicode equivalents. */
    00074
    00075
    00076 /* XXX - mloskot - those defines are quite confusing ! */
    00077 /*
    00078 #ifdef LoadLibrary
    00079 #  undef  LoadLibrary
    00080 #  define LoadLibrary CE_LoadLibraryA
    00081 #endif
    00082
    00083 #ifdef GetProcAddress
    00084 #  undef  GetProcAddress
    00085 #  define GetProcAddress CE_GetProcAddressA
    00086 #endif
    00087
    00088 #ifdef GetModuleFileName
    00089 #  undef  GetModuleFileName
    00090 #  define GetModuleFileName CE_GetModuleFileNameA
    00091 #endif
    00092
    00093 #ifdef CreateFile
    00094 #  undef  CreateFile
    00095 #  define CreateFile CE_CreateFileA
    00096 #endif
    00097 */
    00098
    00099 #ifdef __cplusplus
    00100 }
    00101 #endif  /* __cplusplus */
    00102
    00103 #endif /* #ifdef WIN32CE */
    00104
    00105 #endif /* #ifndef _CPL_WINCEAPI_H_INCLUDED */

Generated for GDAL by 1.5.1.