Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
9d40ac46
Commit
9d40ac46
authored
Feb 16, 2023
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winscard: Implement SCardIsValidContext().
parent
8490c43f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
4 deletions
+27
-4
unixlib.c
dlls/winscard/unixlib.c
+8
-0
unixlib.h
dlls/winscard/unixlib.h
+6
-0
winscard.c
dlls/winscard/winscard.c
+13
-4
No files found.
dlls/winscard/unixlib.c
View file @
9d40ac46
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
LONG
SCardEstablishContext
(
UINT64
,
const
void
*
,
const
void
*
,
UINT64
*
);
LONG
SCardEstablishContext
(
UINT64
,
const
void
*
,
const
void
*
,
UINT64
*
);
LONG
SCardReleaseContext
(
UINT64
);
LONG
SCardReleaseContext
(
UINT64
);
LONG
SCardIsValidContext
(
UINT64
);
static
NTSTATUS
scard_establish_context
(
void
*
args
)
static
NTSTATUS
scard_establish_context
(
void
*
args
)
{
{
...
@@ -46,8 +47,15 @@ static NTSTATUS scard_release_context( void *args )
...
@@ -46,8 +47,15 @@ static NTSTATUS scard_release_context( void *args )
return
SCardReleaseContext
(
params
->
handle
);
return
SCardReleaseContext
(
params
->
handle
);
}
}
static
NTSTATUS
scard_is_valid_context
(
void
*
args
)
{
struct
scard_is_valid_context_params
*
params
=
args
;
return
SCardIsValidContext
(
params
->
handle
);
}
const
unixlib_entry_t
__wine_unix_call_funcs
[]
=
const
unixlib_entry_t
__wine_unix_call_funcs
[]
=
{
{
scard_establish_context
,
scard_establish_context
,
scard_release_context
,
scard_release_context
,
scard_is_valid_context
,
};
};
dlls/winscard/unixlib.h
View file @
9d40ac46
...
@@ -30,8 +30,14 @@ struct scard_release_context_params
...
@@ -30,8 +30,14 @@ struct scard_release_context_params
UINT64
handle
;
UINT64
handle
;
};
};
struct
scard_is_valid_context_params
{
UINT64
handle
;
};
enum
winscard_funcs
enum
winscard_funcs
{
{
unix_scard_establish_context
,
unix_scard_establish_context
,
unix_scard_release_context
,
unix_scard_release_context
,
unix_scard_is_valid_context
,
};
};
dlls/winscard/winscard.c
View file @
9d40ac46
...
@@ -94,11 +94,20 @@ LONG WINAPI SCardEstablishContext( DWORD scope, const void *reserved1, const voi
...
@@ -94,11 +94,20 @@ LONG WINAPI SCardEstablishContext( DWORD scope, const void *reserved1, const voi
return
ret
;
return
ret
;
}
}
LONG
WINAPI
SCardIsValidContext
(
SCARDCONTEXT
context
)
LONG
WINAPI
SCardIsValidContext
(
SCARDCONTEXT
context
)
{
{
FIXME
(
"(%Ix) stub
\n
"
,
context
);
struct
handle
*
handle
=
(
struct
handle
*
)
context
;
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
struct
scard_is_valid_context_params
params
;
return
SCARD_F_INTERNAL_ERROR
;
LONG
ret
;
TRACE
(
"%Ix
\n
"
,
context
);
if
(
!
handle
||
handle
->
magic
!=
CONTEXT_MAGIC
)
return
ERROR_INVALID_HANDLE
;
params
.
handle
=
handle
->
unix_handle
;
ret
=
UNIX_CALL
(
scard_is_valid_context
,
&
params
);
TRACE
(
"returning %#lx
\n
"
,
ret
);
return
ret
;
}
}
LONG
WINAPI
SCardListCardsA
(
SCARDCONTEXT
hContext
,
LPCBYTE
pbAtr
,
LPCGUID
rgguidInterfaces
,
DWORD
cguidInterfaceCount
,
LPSTR
mszCards
,
LPDWORD
pcchCards
)
LONG
WINAPI
SCardListCardsA
(
SCARDCONTEXT
hContext
,
LPCBYTE
pbAtr
,
LPCGUID
rgguidInterfaces
,
DWORD
cguidInterfaceCount
,
LPSTR
mszCards
,
LPDWORD
pcchCards
)
...
...
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