Skip to Main Content

Java Card

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SCardConnect error . return code: 80100004

843851Mar 16 2006
I am developing am application for GxpPro R3 using PC/SC on VB .NET.

Though SCardEstablishContext, SCardListReaderGroups and SCardListReaders works fine, i get a return code of 80100004 for SCardConnect.

Dim dwShareMode As Long = 1
Dim dwPrefProtocol As Long = 3


ReturnValue = SCardConnect(Me.nContext, cReaders(0), dwShareMode, dwPrefProtocol, phCard, ActiveProtocol)

I have tried with all the combinations of dwShareMode and dwPrefProtocol with the same return code.


snippet of my code below

...
...
Me.nContext = 0

ReturnValue = SCardEstablishContext(0, 0, 0, Me.nContext)


Dim delimiter(1) As Char
delimiter(0) = Convert.ToChar(0)
Dim cGroupList As String = "" + Convert.ToChar(0)
Dim nStringSize As Integer = -1

ReturnValue = SCardListReaderGroups(Me.nContext, cGroupList, nStringSize)

Dim cGroups() As String = cGroupList.Split(delimiter)
Dim cReaderList = "" + Convert.ToChar(0)
Dim nReaderCount As Integer = -1

ReturnValue = SCardListReaders(Me.nContext, cGroups(0), cReaderList, nReaderCount)

Dim cReaders() As String = cReaderList.Split(delimiter)

Dim dwShareMode As Long = 1
Dim dwPrefProtocol As Long = 3
Dim phCard As Long = 0
Dim ActiveProtocol As Long = 0

ReturnValue = SCardConnect(Me.nContext, cReaders(0), dwShareMode, dwPrefProtocol, _
phCard, ActiveProtocol)


~SUDHA
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 13 2006
Added on Mar 16 2006
0 comments
678 views