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

Classes | Functions | Variables

winscard_svc.c File Reference

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

#include "config.h"
#include <time.h>
#include <stdio.h>
#include <string.h>
#include <stddef.h>
#include "pcscd.h"
#include "winscard.h"
#include "debuglog.h"
#include "winscard_msg.h"
#include "winscard_svc.h"
#include "sys_generic.h"
#include "thread_generic.h"
#include "readerfactory.h"
Include dependency graph for winscard_svc.c:

Go to the source code of this file.

Classes

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

Functions

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

Variables

static struct _psContext psContext [PCSCLITE_MAX_APPLICATIONS_CONTEXTS]

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.


Generated by  Doxygen 1.6.0   Back to index