Hi,
Im trying to use the Belgian Eid Middleware on the compact framework,
My code works on framework 1.1 but in compact framework ik keep getting a
'System.NotSupportedException' error.
(This is only one function from the eidlib.dll, the one to intitialize)
Does anyone has an idea what that could be.
thnx & greetz
more info on the belgian Eid can be found here :
http://eid.belgium.be/en/navigation/12000/index.html
http://www.belgium.be/zip/eid_datacapture_nl.html
http://download.microsoft.com/download/4/f/d/4fd49a94-8772-4bd0-88ca-bf46e2d029fc/WHITEPAPERS/Accessing%20the%20eID%20Middleware%20from%20.NET%20(Version%201.0).doc
This is my eidlibdotnet class
<StructLayout(LayoutKind.Sequential)> _
Public Structure Status
Public General As UInt32
Public System As UInt32
Public PCSC As UInt32
Public CSW As UInt16
Public RFU1 As UInt16
Public RFU2 As UInt16
Public RFU3 As UInt16
End Structure
Public Declare Function BEID_InitEx Lib "Eidlib.dll" ( _
ByVal readerName As String, _
ByVal ocsp As OCSPPolicyOptions, _
ByVal crl As CRLPolicyOptions, _
ByRef cardHandle As IntPtr, _
ByVal interfaceVersion As Integer, _
ByVal interfaceCompVersion As Integer) As Status
and this is the code in my form :
Dim eid As New eidlibdotnet
Dim retstatus As eidlibdotnet.Status
Dim tmp As New IntPtr
retstatus = eid.BEID_InitEx("VIRTUAL", 0, 0, tmp, 1, 1)