📄 sc_detect_card_presence.3
字号:
.TH sc_detect_card_presence 3 "April 2003" "OpenSC Programmer's Manual.SH NAMEsc_detect_card_presence \- detect whether a card is present in a reader.SH SYNOPSIS.nf.B #include <opensc.h>.sp.BI "int sc_detect_card_presence(sc_reader_t *" reader ",.BI " int " slot ");.fi.SH DESCRIPTIONThis function is used to detect the presence of a smart card ina card reader device. The \fIslot\fP parameter identifies thecard reader's slot. Slots are numbered consecutively, starting at\fB0\fP..SH RETURN VALUEIf a card is present, a positive value is returned that is a combinationof the following flags:.TP.B SC_SLOT_CARD_PRESENTA card was detected..TP.B SC_SLOT_CARD_CHANGEDThe card was inserted and/or removed since the last call. Note thatthis flag is not entirely reliable depending on the OS platform andmiddleware. CTAPI doesn't support it at all, for instance, while PCSCon Windows occasionally returns false CHANGE events..PPIf an error occurred, a negative error code is returned, as describedin \fbsc_error\fP(3)..SH SEE ALSO.BR sc_establish_context (3),.BR sc_wait_for_event (3),.BR sc_connect_card (3)..SH AUTHORThis manual page was written by Olaf Kirch <okir@suse.de>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -