[Pcsclite-cvs-commit] PCSC/doc pcsc-lite.tex,1.8,1.9
sauveron-guest@haydn.debian.org
sauveron-guest@haydn.debian.org
- Previous message: [Pcsclite-cvs-commit] PCSC/src wintypes.h,1.7,1.8 winscard_clnt.c,1.35,1.36 winscard_scf.c,1.9,1.10 winscard.h,1.10,1.11 winscard.c,1.25,1.26 readerfactory.h,1.13,1.14 readerfactory.c,1.45,1.46 ifdwrapper.c,1.16,1.17 ifdhandler.h,1.9,1.10 eventhandler.c,1.17,1.18
- Next message: [Pcsclite-cvs-commit] PCSC/src winscard_scf.c,1.10,1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/pcsclite/PCSC/doc
In directory haydn:/tmp/cvs-serv8648/doc
Modified Files:
pcsc-lite.tex
Log Message:
Change the names of the types LPCSTR to LPCTSTR and LPSTR to LPTSTR to be compliant with the Microsoft SCard API
Index: pcsc-lite.tex
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/doc/pcsc-lite.tex,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- pcsc-lite.tex 26 May 2004 07:46:39 -0000 1.8
+++ pcsc-lite.tex 5 Jun 2004 15:43:11 -0000 1.9
@@ -127,13 +127,13 @@
LONG & long \\
LPBYTE & unsigned char * \\
LPCBYTE & const unsigned char * \\
-LPCSTR & const char * \\
+LPCTSTR & const char * \\
LPCVOID & const void * \\
LPCWSTR & char * \\
LPDWORD & unsigned long * \\
LPSCARDCONTEXT & unsigned long * \\
LPSCARDHANDLE & unsigned long * \\
-LPSTR & char * \\
+LPTSTR & char * \\
LPVOID & void * \\
PSCARDCONTEXT & unsigned long * \\
PSCARDHANDLE & unsigned long * \\
@@ -331,8 +331,8 @@
#include <winscard.h>
LONG SCardListReaders(SCARDCONTEXT hContext,
- LPCSTR mszGroups,
- LPSTR mszReaders,
+ LPCTSTR mszGroups,
+ LPTSTR mszReaders,
LPDWORD pcchReaders);
\end{verbatim}
@@ -361,13 +361,13 @@
\example
\begin{verbatim}
SCARDCONTEXT hContext;
-LPSTR mszReaders;
+LPTSTR mszReaders;
DWORD dwReaders;
LONG rv;
rv = SCardEstablishContext(SCARD_SCOPE_SYSTEM, NULL, NULL, &hContext);
rv = SCardListReaders(hContext, NULL, NULL, &dwReaders);
-mszReaders = (LPSTR)malloc(sizeof(char)*dwReaders);
+mszReaders = (LPTSTR)malloc(sizeof(char)*dwReaders);
rv = SCardListReaders(hContext, NULL, mszReaders, &dwReaders);
\end{verbatim}
@@ -388,7 +388,7 @@
#include <winscard.h>
LONG SCardListReaderGroups(SCARDCONTEXT hContext,
- LPSTR mszGroups,
+ LPTSTR mszGroups,
LPDWORD pcchGroups);
\end{verbatim}
@@ -415,13 +415,13 @@
\example
\begin{verbatim}
SCARDCONTEXT hContext;
-LPSTR mszGroups;
+LPTSTR mszGroups;
DWORD dwGroups;
LONG rv;
rv = SCardEstablishContext(SCARD_SCOPE_SYSTEM, NULL, NULL, &hContext);
rv = SCardListReaderGroups(hContext, NULL, &dwGroups);
-mszGroups = (LPSTR)malloc(sizeof(char)*dwGroups);
+mszGroups = (LPTSTR)malloc(sizeof(char)*dwGroups);
rv = SCardListReaderGroups(hContext, mszGroups, &dwGroups);
\end{verbatim}
@@ -442,7 +442,7 @@
#include <winscard.h>
LONG SCardConnect(SCARDCONTEXT hContext,
- LPCSTR szReader,
+ LPCTSTR szReader,
DWORD dwShareMode,
DWORD dwPreferredProtocols,
LPSCARDHANDLE phCard,
@@ -998,7 +998,7 @@
#include <winscard.h>
LONG SCardStatus(SCARDHANDLE hCard,
- LPSTR szReaderName,
+ LPTSTR szReaderName,
LPDWORD pcchReaderLen,
LPDWORD pdwState,
LPDWORD pdwProtocol,
- Previous message: [Pcsclite-cvs-commit] PCSC/src wintypes.h,1.7,1.8 winscard_clnt.c,1.35,1.36 winscard_scf.c,1.9,1.10 winscard.h,1.10,1.11 winscard.c,1.25,1.26 readerfactory.h,1.13,1.14 readerfactory.c,1.45,1.46 ifdwrapper.c,1.16,1.17 ifdhandler.h,1.9,1.10 eventhandler.c,1.17,1.18
- Next message: [Pcsclite-cvs-commit] PCSC/src winscard_scf.c,1.10,1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]