diff --git a/src/pcsc.hxx b/src/pcsc.hxx index 1c2c4ae..b6ebf58 100644 --- a/src/pcsc.hxx +++ b/src/pcsc.hxx @@ -325,6 +325,24 @@ namespace pcsc { return std::string((char*)buff, len); } + //! Transmit control command and data to the reader. + /*! + * @note Take care: Strings may contain embedded @c 0. + */ + std::string control(unsigned long controlCode, + std::string in) { + DWORD len(256); // arbitrary + UCHAR dataBuffer[256]; + PCSC_LOG("SCardControl: "<<"Command: "< "< "<