mirror of
https://github.com/reactos/wine.git
synced 2025-01-31 17:23:53 +00:00
winscard: Added SCardAccessStartedEvent implementation.
This commit is contained in:
parent
d40e003303
commit
b3e80afa21
@ -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)
|
|||||||
{
|
{
|
||||||
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 @@
|
|||||||
@ 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user