QUOTE(xenon @ Aug 10 2009, 05:21 PM)
baby-doom, refer to http://msdn.microsoft.com/en-us/library/aa380151(VS.85).aspx SCardGetStatusChange and SCardCancel. You might know what to do next. Call SCardGetStatusChange in a separate thread because it blocks.
Hi Xenon,I am so surprised to download your codes, where I find the SDK which I bought somewhere resembles them a lot. Yet, after comparison, yours is noticeably faster and easier as you gave the original codes. The SDK, offers only wrapped DLL.
Thank you so much... if there is anyway I can thank you and this forum, please mention.
Well, there are a few new discoveries you've mentioned, such as the fingerprint image, JPJ apps which are not yet included. If you can share how to get them, it would be much appreciated. And... mykids... are they using different methods.
I am thinking to apply the full command sets from JPN. I am arranging the necessary documents and such. It might take sometimes. If I ever get them, maybe there is something I can share here too.
Thank you.
Added on August 18, 2009, 12:13 pmSorry... I found them somewhere in another thread. Just one more thing, since I am using .Net. Let's say, I want to use other MyKad apps, such as JPJ, what are the changes needed here:
CODE
Public Function SelectApp(ByVal App As String) As Boolean
Dim retval As Int32
If App = "JPN" Then
dLength = 256
retval = SCardTransmit(hCard, pciT0, Cmd1, 15, pciT0, Buffer, dLength)
If retval <> 0 Or Buffer(0) <> &H61 Or Buffer(1) <> &H5 Then 'Maybe not MyKad
currentApp = ""
Return False
End If
dLength = 256
retval = SCardTransmit(hCard, pciT0, Cmd2, 5, pciT0, Buffer, dLength)
currentApp = "JPN"
Return True
End If
Return False
End Function
This post has been edited by ayozzhero: Aug 18 2009, 12:13 PM
Aug 18 2009, 10:40 AM

Quote
0.0183sec
0.87
7 queries
GZIP Disabled