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

winscard_svc.c File Reference


Detailed Description

This demarshalls functions over the message queue and keeps track of clients and their handles.

Each Client message is deald by creating a thread (CreateContextThread). The thread establishes reands and demarshalls the message and calls the appropriate function to threat it.

Definition in file winscard_svc.c.

#include "config.h"
#include <time.h>
#include <stdio.h>
#include <string.h>
#include "pcsclite.h"
#include "winscard.h"
#include "debuglog.h"
#include "winscard_msg.h"
#include "winscard_svc.h"
#include "sys_generic.h"
#include "thread_generic.h"

Go to the source code of this file.

Classes

struct  _psContext
 Represents the an Application Context on the Server side. More...

Functions

LONG ContextsInitialize (void)
static void ContextThread (DWORD *pdwIndex)
 Handles messages received from Clients.
LONG CreateContextThread (PDWORD pdwClientID)
 Creates threads to handle messages received from Clients.
LONG MSGAddContext (SCARDCONTEXT, DWORD)
LONG MSGAddHandle (SCARDCONTEXT, SCARDHANDLE, DWORD)
LONG MSGCheckHandleAssociation (SCARDHANDLE, DWORD)
LONG MSGCleanupClient (DWORD)
LONG MSGFunctionDemarshall (psharedSegmentMsg msgStruct, DWORD dwContextIndex)
 Find out which message was sent by the Client and execute the right task.
LONG MSGRemoveContext (SCARDCONTEXT, DWORD)
LONG MSGRemoveHandle (SCARDHANDLE, DWORD)

Variables

static DWORD dwNextContextIndex
 Index of an avaiable Application Context slot in psContext.
static struct _psContext psContext [PCSCLITE_MAX_APPLICATIONS_CONTEXTS]
 Represents the an Application Context on the Server side.


Generated by  Doxygen 1.6.0   Back to index