Est-ce que quelqu'un sait comment créer une structure dans Visual Basic?comment créer une structure en vb 2008
Par exemple:
Public SCARD_READERSTATE()
Dim szReader As String 'reader name
Dim pvUserData As Long 'user defined data
Dim dwCurrentState As Long 'current state of reader at time of call
Dim dwEventState As Long 'state of reader after state change
Dim cbAtr As Long 'Number of bytes in the returned ATR
Dim rgbAtr(0 To 35) As Byte 'Atr of inserted card, (extra alignment bytes)
Public Declare Function SCardGetStatusChange Lib "winscard.dll" Alias "SCardGetStatusChangeA" (_
ByVal hContext As Long, _
ByVal dwTimeout As Long, _
ByRef rgReaderStates() As SCARD_READERSTATE, _
ByVal cReaders As Long _
) As Long
J'utilise Microsoft Visual Basic 2008.