globalplatform/types.h

Go to the documentation of this file.
00001 /*  Copyright (c) 2008, Karsten Ohme
00002  *  This file is part of GlobalPlatform.
00003  *
00004  *  GlobalPlatform is free software: you can redistribute it and/or modify
00005  *  it under the terms of the GNU Lesser General Public License as published by
00006  *  the Free Software Foundation, either version 3 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  GlobalPlatform is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU Lesser General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU Lesser General Public License
00015  *  along with GlobalPlatform.  If not, see <http://www.gnu.org/licenses/>.
00016  */
00017 
00022 #ifndef OPGP_TYPES_H
00023 #define OPGP_TYPES_H
00024 
00025 #ifndef _WIN32
00026 #include <PCSC/wintypes.h>
00027 #endif
00028 
00029 typedef void *PVOID; 
00030 #ifdef _WIN32
00031 typedef LPTSTR OPGP_STRING; 
00032 typedef LPCTSTR OPGP_CSTRING; 
00033 typedef LPBYTE PBYTE; 
00034 typedef LPDWORD PDWORD; 
00035 #else
00036 #ifndef NULL
00037 #define NULL 0
00038 #endif
00039 typedef char *OPGP_STRING; 
00040 typedef const char *OPGP_CSTRING; 
00041 typedef unsigned char *PBYTE; 
00042 #if !defined(__wintypes_h__)
00043 typedef unsigned long *PDWORD; 
00044 typedef unsigned char BYTE; 
00045 typedef unsigned long DWORD; 
00046 typedef long LONG; 
00047 #endif
00048 
00049 #endif
00050 
00051 #endif
00052 
Generated on Wed Aug 11 00:24:28 2010 for GlobalPlatformLibrary by  doxygen 1.6.3