Logo Search packages:      
Sourcecode: pcsc-lite version File versions  Download package

static LONG SCardCheckDaemonAvailability ( void   )  [static]

Checks if the Server is running.

Returns:
Error code.
Return values:
SCARD_S_SUCCESS Server is running.
SCARD_E_NO_SERVICE Server is not running.

Definition at line 3005 of file winscard_clnt.c.

Referenced by SCardBeginTransaction(), SCardCancelTransaction(), SCardConnect(), SCardControl(), SCardDisconnect(), SCardEndTransaction(), SCardEstablishContextTH(), SCardGetStatusChange(), SCardListReaderGroups(), SCardListReaders(), SCardReconnect(), SCardReleaseContext(), SCardStatus(), and SCardTransmit().

{
      LONG rv;
      struct stat statBuffer;

      rv = SYS_Stat(PCSCLITE_IPC_DIR, &statBuffer);

      if (rv != 0)
      {
            Log1(PCSC_LOG_ERROR, "PCSC Not Running");
            return SCARD_E_NO_SERVICE;
      }

      return SCARD_S_SUCCESS;
}


Generated by  Doxygen 1.6.0   Back to index