Exemple #1
0
        /// <summary>
        /// 关闭设备
        /// </summary>
        /// <returns></returns>
        public void CloseDevice()
        {
            if (hCard != 0)
            {
                runResult = PCSC.SCardDisconnect(hCard, 2);
            }

            if (hContext != 0)
            {
                runResult = PCSC.SCardReleaseContext(hContext);
            }
        }