Commit fa6a31ab authored by Stefan Leichter's avatar Stefan Leichter Committed by Alexandre Julliard

winscard: Add stubs for SCardAddReaderToGroupA/W.

parent 87e21fe5
...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@ ...@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = winscard.dll MODULE = winscard.dll
IMPORTLIB = winscard IMPORTLIB = winscard
IMPORTS = kernel32 IMPORTS = kernel32 ntdll
C_SRCS = \ C_SRCS = \
winscard.c winscard.c
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include "winbase.h" #include "winbase.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "winscard.h" #include "winscard.h"
#include "winternl.h"
WINE_DEFAULT_DEBUG_CHANNEL(winscard); WINE_DEFAULT_DEBUG_CHANNEL(winscard);
...@@ -51,6 +52,30 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) ...@@ -51,6 +52,30 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
return TRUE; return TRUE;
} }
LONG WINAPI SCardAddReaderToGroupA(SCARDCONTEXT context, LPCSTR reader, LPCSTR group)
{
LONG retval;
UNICODE_STRING readerW, groupW;
if(reader) RtlCreateUnicodeStringFromAsciiz(&readerW,reader);
else readerW.Buffer = NULL;
if(group) RtlCreateUnicodeStringFromAsciiz(&groupW,group);
else groupW.Buffer = NULL;
retval = SCardAddReaderToGroupW(context, readerW.Buffer, groupW.Buffer);
RtlFreeUnicodeString(&readerW);
RtlFreeUnicodeString(&groupW);
return retval;
}
LONG WINAPI SCardAddReaderToGroupW(SCARDCONTEXT context, LPCWSTR reader, LPCWSTR group)
{
FIXME("%x %s %s\n", (unsigned int) context, debugstr_w(reader), debugstr_w(group));
return SCARD_S_SUCCESS;
}
LONG WINAPI SCardEstablishContext(DWORD dwScope, LPCVOID pvReserved1, LONG WINAPI SCardEstablishContext(DWORD dwScope, LPCVOID pvReserved1,
LPCVOID pvReserved2, LPSCARDCONTEXT phContext) LPCVOID pvReserved2, LPSCARDCONTEXT phContext)
{ {
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
@ stub SCardReleaseAllEvents @ stub SCardReleaseAllEvents
@ stub SCardReleaseNewReaderEvent @ stub SCardReleaseNewReaderEvent
@ stub SCardAccessStartedEvent @ stub SCardAccessStartedEvent
@ stub SCardAddReaderToGroupA @ stdcall SCardAddReaderToGroupA(long str str)
@ stub SCardAddReaderToGroupW @ stdcall SCardAddReaderToGroupW(long wstr wstr)
@ stub SCardBeginTransaction @ stub SCardBeginTransaction
@ stub SCardCancel @ stub SCardCancel
@ stub SCardConnectA @ stub SCardConnectA
......
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