..msdn Add comment W32 Constants Translate this page
The SCardControl function gives you direct control of the reader by sending specific control codes optionally accompanied with supporting input data.|
__in SCARDHANDLE hCard,
__in DWORD dwControlCode,
__in LPCVOID lpInBuffer,
__in DWORD nInBufferSize,
__out LPVOID lpOutBuffer,
__in DWORD nOutBufferSize,
__out LPDWORD lpBytesReturned
DECLARE LONG SCardControl IN Winscard;
|hCard [in] |
Reference value returned from SCardConnect.
Control code for the operation. This value identifies the specific operation to be performed.
Pointer to a buffer that contains the data required to perform the operation.
Size, in bytes, of the buffer pointed to by lpInBuffer.
Pointer to a buffer that receives the operation"s output data.
Size, in bytes, of the buffer pointed to by lpOutBuffer.
Pointer to a DWORD that receives the size, in bytes, of the data stored into the buffer pointed to by lpOutBuffer.
|Returns SCARD_S_SUCCESS (0) or error code.|
FUNCTION SendCardControlCode(nCtrlCode As Number,;
nRecvLen as Number) As Boolean
LOCAL nResult, cRecvBuff, nRetLen
STORE REPLI(CHR(0), m.nRecvLen) TO cRecvBuff
nResult = SCardControl(THIS.hCard, m.nCtrlCode,;
@cRecvBuff, nRecvLen, @nRetLen)
IF nResult = SCARD_S_SUCCESS
THIS.RecvBuff = SUBSTR(m.cRecvBuff,1,m.nRetLen)
THIS.SetError(m.nResult, "SCardControl failed")
|You can call it any time after a successful call to SCardConnect and before a successful call to SCardDisconnect. The effect on the state of the reader depends on the control code.|
|Word Index links for the SCardControl :|
|Translate this page:|
Visited in last 7 days: 52
|Created: ||2008-11-20 14:15:28|
|Modified: ||2008-11-20 14:28:50|
Copyright © 2001-2018
Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use.
The information on this page is presented AS IS, meaning that you may use it at your own risk.
Microsoft Visual FoxPro
and Windows are trade marks
of Microsoft Corp.
All other trademarks are the property of their respective owners.
Credits: PHP (4.4.9), an HTML-embedded scripting language,
MySQL (5.6.39), the Open Source standard SQL database,
Version 4, freeware HTML Editor of choice. Hosted by Korax Online Inc.