advapi32: Add a rudimentary implementation of CredGetSessionTypes().
This commit is contained in:
parent
8edfee18cc
commit
ddab29b7d1
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue