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@
VPATH = @srcdir@
MODULE = winscard.dll
IMPORTLIB = winscard
IMPORTS = kernel32
IMPORTS = kernel32 ntdll
C_SRCS = \
winscard.c
......
......@@ -22,6 +22,7 @@
#include "winbase.h"
#include "wine/debug.h"
#include "winscard.h"
#include "winternl.h"
WINE_DEFAULT_DEBUG_CHANNEL(winscard);
......@@ -51,6 +52,30 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
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,
LPCVOID pvReserved2, LPSCARDCONTEXT phContext)
{
......
......@@ -3,8 +3,8 @@
@ stub SCardReleaseAllEvents
@ stub SCardReleaseNewReaderEvent
@ stub SCardAccessStartedEvent
@ stub SCardAddReaderToGroupA
@ stub SCardAddReaderToGroupW
@ stdcall SCardAddReaderToGroupA(long str str)
@ stdcall SCardAddReaderToGroupW(long wstr wstr)
@ stub SCardBeginTransaction
@ stub SCardCancel
@ 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