Commit b3e80afa authored by Mounir IDRASSI's avatar Mounir IDRASSI Committed by Alexandre Julliard

winscard: Added SCardAccessStartedEvent implementation.

parent d40e0033
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(winscard); WINE_DEFAULT_DEBUG_CHANNEL(winscard);
static HMODULE WINSCARD_hModule; static HMODULE WINSCARD_hModule;
static HANDLE g_startedEvent = NULL;
const SCARD_IO_REQUEST g_rgSCardT0Pci = { SCARD_PROTOCOL_T0, 8 }; const SCARD_IO_REQUEST g_rgSCardT0Pci = { SCARD_PROTOCOL_T0, 8 };
const SCARD_IO_REQUEST g_rgSCardT1Pci = { SCARD_PROTOCOL_T1, 8 }; const SCARD_IO_REQUEST g_rgSCardT1Pci = { SCARD_PROTOCOL_T1, 8 };
...@@ -43,15 +44,25 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) ...@@ -43,15 +44,25 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{ {
DisableThreadLibraryCalls(hinstDLL); DisableThreadLibraryCalls(hinstDLL);
WINSCARD_hModule = hinstDLL; WINSCARD_hModule = hinstDLL;
/* FIXME: for now, we act as if the pcsc daemon is always started */
g_startedEvent = CreateEventA(NULL,TRUE,TRUE,NULL);
break; break;
} }
case DLL_PROCESS_DETACH: case DLL_PROCESS_DETACH:
{
CloseHandle(g_startedEvent);
break; break;
} }
}
return TRUE; return TRUE;
} }
HANDLE WINAPI SCardAccessStartedEvent(void)
{
return g_startedEvent;
}
LONG WINAPI SCardAddReaderToGroupA(SCARDCONTEXT context, LPCSTR reader, LPCSTR group) LONG WINAPI SCardAddReaderToGroupA(SCARDCONTEXT context, LPCSTR reader, LPCSTR group)
{ {
LONG retval; LONG retval;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
@ stub SCardAccessNewReaderEvent @ stub SCardAccessNewReaderEvent
@ stub SCardReleaseAllEvents @ stub SCardReleaseAllEvents
@ stub SCardReleaseNewReaderEvent @ stub SCardReleaseNewReaderEvent
@ stub SCardAccessStartedEvent @ stdcall SCardAccessStartedEvent()
@ stdcall SCardAddReaderToGroupA(long str str) @ stdcall SCardAddReaderToGroupA(long str str)
@ stdcall SCardAddReaderToGroupW(long wstr wstr) @ stdcall SCardAddReaderToGroupW(long wstr wstr)
@ stub SCardBeginTransaction @ stub SCardBeginTransaction
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment