1
// PCSC.cpp : Defines the entry point for the DLL application.
14
// PCSC_MCARD_mutex is defined in musclecard.c
15
extern "C" CRITICAL_SECTION PCSC_MCARD_mutex;
19
InitializeCriticalSection(&PCSC_MCARD_mutex);
25
BOOL APIENTRY DllMain( HANDLE hModule,
26
DWORD ul_reason_for_call,
30
switch (ul_reason_for_call)
32
case DLL_PROCESS_ATTACH:
33
case DLL_THREAD_ATTACH:
34
case DLL_THREAD_DETACH:
35
case DLL_PROCESS_DETACH:
41
// This is an example of an exported variable
42
//PCSC_API int nPCSC=0;
44
// This is an example of an exported function.
45
//PCSC_API int fnPCSC(void)
50
// This is the constructor of a class that has been exported.
51
// see PCSC.h for the class definition