// PCSC.cpp : Defines the entry point for the DLL application. // #include "stdafx.h" #include "PCSC.h" #include #include class Global { public: Global(); }; // PCSC_MCARD_mutex is defined in musclecard.c extern "C" CRITICAL_SECTION PCSC_MCARD_mutex; Global::Global() { InitializeCriticalSection(&PCSC_MCARD_mutex); } static Global global; BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: case DLL_THREAD_ATTACH: case DLL_THREAD_DETACH: case DLL_PROCESS_DETACH: break; } return TRUE; } // This is an example of an exported variable //PCSC_API int nPCSC=0; // This is an example of an exported function. //PCSC_API int fnPCSC(void) //{ // return 42; //} // This is the constructor of a class that has been exported. // see PCSC.h for the class definition //CPCSC::CPCSC() //{ // return; //}