⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 moddll.bas

📁 Mifare SDK - VB Sample Program
💻 BAS
字号:
Attribute VB_Name = "modDLL"
Option Explicit

Public Type udfTransKey
    udfbyteKey(0 To 5) As Byte
End Type

Public Type udfBlockData
    udfbyteData(0 To 15) As Byte
End Type

Public Declare Function MifUSB_OpenDevice Lib "UsbMiCard.dll" () As Long
Public Declare Function MifUSB_CloseDevice Lib "UsbMiCard.dll" () As Long
Public Declare Function MifUSB_SetBeep Lib "UsbMiCard.dll" (ByVal nFlag As Long) As Long
Public Declare Function MifUSB_SetRedLed Lib "UsbMiCard.dll" (ByVal nFlag As Long) As Long
Public Declare Function MifUSB_SetGreenLed Lib "UsbMiCard.dll" (ByVal nFlag As Long) As Long
Public Declare Function MifUSB_SetGreenLed_ON Lib "UsbMiCard.dll" () As Long
Public Declare Function MifUSB_SetGreenLed_OFF Lib "UsbMiCard.dll" () As Long
Public Declare Function MifUSB_GetCardType Lib "UsbMiCard.dll" (ByRef lngCardType As Long) As Long
Public Declare Function MifUSB_GetCardSN Lib "UsbMiCard.dll" (ByRef lngCardSN As Long) As String
' Public Declare Function MifUSB_GetCardSN Lib "UsbMiCard.dll" (ByRef lngCardSN As udfCardSN) As Long
Public Declare Function MifUSB_TransKey Lib "UsbMiCard.dll" (ByVal intSector As Integer, ByRef byteData As udfTransKey) As Long
Public Declare Function MifUSB_ReadBlock Lib "UsbMiCard.dll" (ByVal intBlock As Integer, ByVal lngCardSN As Long, ByVal intMode As Integer) As String
Public Declare Function MifUSB_ReadBlockEx Lib "UsbMiCard.dll" (ByVal intSector As Integer, ByVal intBlock As Integer, ByVal lngCardSN As Long, ByVal intMode As Integer, ByRef byteData As udfTransKey) As String
Public Declare Function MifUSB_WriteBlock Lib "UsbMiCard.dll" (ByVal intBlock As Integer, ByVal lngCardSN As Long, ByVal intMode As Integer, ByRef byteData As udfBlockData) As Long
Public Declare Function MifUSB_WriteBlockEx Lib "UsbMiCard.dll" (ByVal intSector As Integer, ByVal intBlock As Integer, ByVal lngCardSN As Long, ByVal intMode As Integer, ByRef byteData As udfTransKey, ByRef byteData As udfBlockData) As Long

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -