PCSC-API function