Platforms to show: All Mac Windows Linux Cross-Platform

SmartCardMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class SmartCard MBS Tools Plugin 16.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The class for a smartcard.

This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

  • 3 properties
  • 13 methods
    • method BeginTransaction
    • method CancelTransaction
    • method Constructor   Private
    • method Control(ControlCode as Integer, input as ptr, inputLength as UInt32, output as ptr, byref outputLength as UInt32)
    • method Disconnect(Disposition as Integer = 0)
    • method EndTransaction(Disposition as Integer = 0)
    • method GetAttrib(AttrId as UInt32) as Memoryblock
    • method ReadFile(FileID as MemoryBlock) as MemoryBlock
    • method Reconnect(ShareMode as UInt32, PreferredProtocols as UInt32, Initialization as UInt32)
    • method SetAttrib(AttrId as UInt32, mem as Memoryblock)
    • method Status(byref Reader as string, byref State as Integer, byref Protocol as Integer, byref CardID as string)
    • method Status(byref State as Integer, byref Protocol as Integer, byref CardID as string)
    • method Transmit(ioSendPci as Ptr, SendBuffer as ptr, SendLength as UInt32, ioRecvPci as ptr, RecvBuffer as Ptr, byref RecvLength as UInt32)
  • shared method SplitValues(Data as MemoryBlock) as Dictionary
  • 64 constants

This class has no sub classes.

Blog Entries

Release notes

  • Version 20.2
    • Fixed problem in ReadFile with MacOS Catalina in SmartCardMBS class.
  • Version 20.0
    • Changed SmartCardMBS.SplitValues method to mark valid UTF-8 strings to have UTF-8 encoding.
    • Improved code for ReadFile in SmartCardMBS to read in chunks of 256 bytes instead of 255 bytes.
  • Version 19.5
  • Version 18.5
    • Added ReadFile method to SmartCardMBS class to read data from various smartcards (e.g. Swiss Health Insurance Card or Belgian Identity Card).

Some methods using this class:

Some examples using this class:

Some related classes:


The items on this page are in the following plugins: MBS Tools Plugin.


SmartCardContextMBS   -   SoftDeclareMBS


The biggest plugin in space...