Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than winscard, prefix the name with the module name and a period.
SCardDisconnect (winscard)
.
C# Signature:
[DllImport("winscard.dll")]
static extern int SCardDisconnect(int hCard, int dwDisposition);
VB/NET Signature:
Enum SCardDisposition As UInt32
Enum SCardDisposition As UInt32
SCARD_LEAVE_CARD = 0
SCARD_RESET_CARD = 1
SCARD_UNPOWER_CARD = 2
SCARD_EJECT_CARD = 3
End Enum
<DllImport("WinScard.dll")>
Public Shared Function SCardDisconnect(hCard As Integer, Disposition As SCardDisposition) As Integer
End Function
End Enum
<DllImport("WinScard.dll")>
Public Shared Function SCardDisconnect(hCard As Integer, Disposition As SCardDisposition) As Integer
End Function
User-Defined Types:
Value of dwDisposition
SCARD_LEAVE_CARD = 0 Do nothing on close
SCARD_RESET_CARD = 1 Reset on close
SCARD_UNPOWER_CARD = 2 Power down on close
SCARD_EJECT_CARD = 3 Eject on close
Notes:
None.
Tips & Tricks:
Please add some!
Sample Code:
Please add some!
Alternative Managed API:
TODO
The SCardDisconnect function terminates a connection previously opened between the calling application and a smart card in the target reader.
7/27/2022 7:16:15 AM - HussainAkbar@gmail.com-101.53.248.253
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).