Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
fa6a31ab
Commit
fa6a31ab
authored
Oct 08, 2008
by
Stefan Leichter
Committed by
Alexandre Julliard
Oct 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winscard: Add stubs for SCardAddReaderToGroupA/W.
parent
87e21fe5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
3 deletions
+28
-3
Makefile.in
dlls/winscard/Makefile.in
+1
-1
winscard.c
dlls/winscard/winscard.c
+25
-0
winscard.spec
dlls/winscard/winscard.spec
+2
-2
No files found.
dlls/winscard/Makefile.in
View file @
fa6a31ab
...
...
@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
MODULE
=
winscard.dll
IMPORTLIB
=
winscard
IMPORTS
=
kernel32
IMPORTS
=
kernel32
ntdll
C_SRCS
=
\
winscard.c
...
...
dlls/winscard/winscard.c
View file @
fa6a31ab
...
...
@@ -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
)
{
...
...
dlls/winscard/winscard.spec
View file @
fa6a31ab
...
...
@@ -3,8 +3,8 @@
@ stub SCardReleaseAllEvents
@ stub SCardReleaseNewReaderEvent
@ stub SCardAccessStartedEvent
@ st
ub SCardAddReaderToGroupA
@ st
ub SCardAddReaderToGroupW
@ st
dcall SCardAddReaderToGroupA(long str str)
@ st
dcall SCardAddReaderToGroupW(long wstr wstr)
@ stub SCardBeginTransaction
@ stub SCardCancel
@ stub SCardConnectA
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment