the problem to get smart card reader name by winscard.dll
hi everyone,
I want to get the all smart card reader in my pc by calling winscard.dll,
but the reader name was truncated. its length just has 20 char, but my
reader name is about 40 char when it is displayed in device manager.
who can help me to solve it? below is my source code:
[DllImport("WinScard.dll")]
public static extern uint SCardListReaders(int hContext, string
cGroups,
ref string cReaderLists, ref int nReaderCount);
public IEnumerable<string> ListReaders(string group)
{
int stringSize = -1;
string cReaders = "\0";
uint retVal = NativeMethods.SCardListReaders(nContext, group,
ref cReaders, ref stringSize);
CheckReturnValue(retVal);
if (cReaders == null)
cReaders = "";
return cReaders.Split('\0');
}
the reader is GemPC410, and it is a stardard PC/SC smartcard
thanks
Levi Fan
.
Relevant Pages
- Re: the problem to get smart card reader name by winscard.dll
... "Levi Fan" wrote: ... I want to get the all smart card reader in my pc by calling winscard.dll, ... public static extern uint SCardListReaders(int hContext, string ... ref string cReaderLists, ref int nReaderCount); ... (microsoft.public.windowsxp.hardware) - Re: Invariant with DIGIT-CHAR-P and the reader.
... How else would the producer of such a string mean it to be ... CL reader parses as numbers things that "look like a number". ... > treated in ways that a naive Lisp program might be trying to mimic ... if your data contains Unicode characters, ... (comp.lang.lisp) - Re: SqlDataReader Function From a VB6 refugee
... Also the Reader is for connected operations i.e. the underlying connection ... Shared Function Create_SQL_DataReader(ByVal sDate As String) As ... Dim SQLConn As New SqlConnection ... (microsoft.public.dotnet.framework.adonet) - Re: inputstream -> string
... den aus dem Reader gelesenen char-Buffer ... StringWriter sw = new StringWriter; ... Kein Encoding anzugeben, ... private String readStream ... (de.comp.lang.java) - DataContractJsonSerializer Serializes item, then cannot deserializ
... then fails to deserialize properly from that value. ... reader, String res, String arg1, String arg2, String arg3) ... System.Runtime.Serialization.XmlReaderDelegator.IsStartElement(XmlDictionaryString localname, XmlDictionaryString ns) ... (microsoft.public.dotnet.framework) |
|