~ubuntu-branches/ubuntu/jaunty/pcsc-lite/jaunty-security

« back to all changes in this revision

Viewing changes to win32/PCSC.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Rousseau
  • Date: 2005-11-27 18:04:59 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051127180459-qrex2gzpq9d8jexd
Tags: 1.2.9-beta9-1
* New upstream version
* debian/compat: change from 3 to 4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// PCSC.cpp : Defines the entry point for the DLL application.
 
2
//
 
3
 
 
4
#include "stdafx.h"
 
5
#include "PCSC.h"
 
6
#include <stdio.h>
 
7
#include <assert.h>
 
8
 
 
9
class Global {
 
10
    public:
 
11
        Global();
 
12
};
 
13
 
 
14
// PCSC_MCARD_mutex is defined in musclecard.c
 
15
extern "C" CRITICAL_SECTION PCSC_MCARD_mutex;
 
16
 
 
17
Global::Global()
 
18
{
 
19
    InitializeCriticalSection(&PCSC_MCARD_mutex);
 
20
}
 
21
 
 
22
static Global global;
 
23
 
 
24
 
 
25
BOOL APIENTRY DllMain( HANDLE hModule, 
 
26
                       DWORD  ul_reason_for_call, 
 
27
                       LPVOID lpReserved
 
28
                                         )
 
29
{
 
30
    switch (ul_reason_for_call)
 
31
        {
 
32
                case DLL_PROCESS_ATTACH:
 
33
                case DLL_THREAD_ATTACH:
 
34
                case DLL_THREAD_DETACH:
 
35
                case DLL_PROCESS_DETACH:
 
36
                        break;
 
37
    }
 
38
    return TRUE;
 
39
}
 
40
 
 
41
// This is an example of an exported variable
 
42
//PCSC_API int nPCSC=0;
 
43
 
 
44
// This is an example of an exported function.
 
45
//PCSC_API int fnPCSC(void)
 
46
//{
 
47
//      return 42;
 
48
//}
 
49
 
 
50
// This is the constructor of a class that has been exported.
 
51
// see PCSC.h for the class definition
 
52
//CPCSC::CPCSC()
 
53
//{ 
 
54
//      return; 
 
55
//}
 
56