Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
ddab29b7
Commit
ddab29b7
authored
Feb 13, 2008
by
Francois Gouget
Committed by
Alexandre Julliard
Feb 15, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Add a rudimentary implementation of CredGetSessionTypes().
parent
8edfee18
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
advapi32.spec
dlls/advapi32/advapi32.spec
+1
-1
cred.c
dlls/advapi32/cred.c
+20
-0
wincred.h
include/wincred.h
+1
-0
No files found.
dlls/advapi32/advapi32.spec
View file @
ddab29b7
...
...
@@ -107,7 +107,7 @@
@ stdcall CredEnumerateA(str long ptr ptr)
@ stdcall CredEnumerateW(wstr long ptr ptr)
@ stdcall CredFree(ptr)
# @ stub CredGetSessionTypes
@ stdcall CredGetSessionTypes(long ptr)
# @ stub CredGetTargetInfoA
# @ stub CredGetTargetInfoW
# @ stub CredIsMarshaledCredentialA
...
...
dlls/advapi32/cred.c
View file @
ddab29b7
...
...
@@ -1670,3 +1670,23 @@ BOOL WINAPI CredWriteW(PCREDENTIALW Credential, DWORD Flags)
}
return
TRUE
;
}
/******************************************************************************
* CredGetSessionTypes [ADVAPI32.@]
*/
WINADVAPI
BOOL
WINAPI
CredGetSessionTypes
(
DWORD
persistCount
,
LPDWORD
persists
)
{
TRACE
(
"(%u, %p)
\n
"
,
persistCount
,
persists
);
memset
(
persists
,
CRED_PERSIST_NONE
,
persistCount
*
sizeof
(
*
persists
));
if
(
CRED_TYPE_GENERIC
<
persistCount
)
{
persists
[
CRED_TYPE_GENERIC
]
=
CRED_PERSIST_ENTERPRISE
;
if
(
CRED_TYPE_DOMAIN_PASSWORD
<
persistCount
)
{
persists
[
CRED_TYPE_DOMAIN_PASSWORD
]
=
CRED_PERSIST_ENTERPRISE
;
}
}
return
TRUE
;
}
include/wincred.h
View file @
ddab29b7
...
...
@@ -185,6 +185,7 @@ WINADVAPI BOOL WINAPI CredEnumerateA(LPCSTR,DWORD,DWORD *,PCREDENTIALA **);
WINADVAPI
BOOL
WINAPI
CredEnumerateW
(
LPCWSTR
,
DWORD
,
DWORD
*
,
PCREDENTIALW
**
);
#define CredEnumerate WINELIB_NAME_AW(CredEnumerate)
WINADVAPI
VOID
WINAPI
CredFree
(
PVOID
);
WINADVAPI
BOOL
WINAPI
CredGetSessionTypes
(
DWORD
,
LPDWORD
);
WINADVAPI
BOOL
WINAPI
CredReadA
(
LPCSTR
,
DWORD
,
DWORD
,
PCREDENTIALA
*
);
WINADVAPI
BOOL
WINAPI
CredReadW
(
LPCWSTR
,
DWORD
,
DWORD
,
PCREDENTIALW
*
);
#define CredRead WINELIB_NAME_AW(CredRead)
...
...
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