FreeRDP
credentials.c File Reference
#include <winpr/crt.h>
#include <winpr/credentials.h>

Functions

BOOL CredWriteW (PCREDENTIALW Credential, DWORD Flags)
 
BOOL CredWriteA (PCREDENTIALA Credential, DWORD Flags)
 
BOOL CredReadW (LPCWSTR TargetName, DWORD Type, DWORD Flags, PCREDENTIALW *Credential)
 
BOOL CredReadA (LPCSTR TargetName, DWORD Type, DWORD Flags, PCREDENTIALA *Credential)
 
BOOL CredEnumerateW (LPCWSTR Filter, DWORD Flags, DWORD *Count, PCREDENTIALW **Credential)
 
BOOL CredEnumerateA (LPCSTR Filter, DWORD Flags, DWORD *Count, PCREDENTIALA **Credential)
 
BOOL CredWriteDomainCredentialsW (PCREDENTIAL_TARGET_INFORMATIONW TargetInfo, PCREDENTIALW Credential, DWORD Flags)
 
BOOL CredWriteDomainCredentialsA (PCREDENTIAL_TARGET_INFORMATIONA TargetInfo, PCREDENTIALA Credential, DWORD Flags)
 
BOOL CredReadDomainCredentialsW (PCREDENTIAL_TARGET_INFORMATIONW TargetInfo, DWORD Flags, DWORD *Count, PCREDENTIALW **Credential)
 
BOOL CredReadDomainCredentialsA (PCREDENTIAL_TARGET_INFORMATIONA TargetInfo, DWORD Flags, DWORD *Count, PCREDENTIALA **Credential)
 
BOOL CredDeleteW (LPCWSTR TargetName, DWORD Type, DWORD Flags)
 
BOOL CredDeleteA (LPCSTR TargetName, DWORD Type, DWORD Flags)
 
BOOL CredRenameW (LPCWSTR OldTargetName, LPCWSTR NewTargetName, DWORD Type, DWORD Flags)
 
BOOL CredRenameA (LPCSTR OldTargetName, LPCSTR NewTargetName, DWORD Type, DWORD Flags)
 
BOOL CredGetTargetInfoW (LPCWSTR TargetName, DWORD Flags, PCREDENTIAL_TARGET_INFORMATIONW *TargetInfo)
 
BOOL CredGetTargetInfoA (LPCSTR TargetName, DWORD Flags, PCREDENTIAL_TARGET_INFORMATIONA *TargetInfo)
 
BOOL CredMarshalCredentialW (CRED_MARSHAL_TYPE CredType, PVOID Credential, LPWSTR *MarshaledCredential)
 
BOOL CredMarshalCredentialA (CRED_MARSHAL_TYPE CredType, PVOID Credential, LPSTR *MarshaledCredential)
 
BOOL CredUnmarshalCredentialW (LPCWSTR MarshaledCredential, PCRED_MARSHAL_TYPE CredType, PVOID *Credential)
 
BOOL CredUnmarshalCredentialA (LPCSTR MarshaledCredential, PCRED_MARSHAL_TYPE CredType, PVOID *Credential)
 
BOOL CredIsMarshaledCredentialW (LPCWSTR MarshaledCredential)
 
BOOL CredIsMarshaledCredentialA (LPCSTR MarshaledCredential)
 
BOOL CredProtectW (BOOL fAsSelf, LPWSTR pszCredentials, DWORD cchCredentials, LPWSTR pszProtectedCredentials, DWORD *pcchMaxChars, CRED_PROTECTION_TYPE *ProtectionType)
 
BOOL CredProtectA (BOOL fAsSelf, LPSTR pszCredentials, DWORD cchCredentials, LPSTR pszProtectedCredentials, DWORD *pcchMaxChars, CRED_PROTECTION_TYPE *ProtectionType)
 
BOOL CredUnprotectW (BOOL fAsSelf, LPWSTR pszProtectedCredentials, DWORD cchCredentials, LPWSTR pszCredentials, DWORD *pcchMaxChars)
 
BOOL CredUnprotectA (BOOL fAsSelf, LPSTR pszProtectedCredentials, DWORD cchCredentials, LPSTR pszCredentials, DWORD *pcchMaxChars)
 
BOOL CredIsProtectedW (LPWSTR pszProtectedCredentials, CRED_PROTECTION_TYPE *pProtectionType)
 
BOOL CredIsProtectedA (LPSTR pszProtectedCredentials, CRED_PROTECTION_TYPE *pProtectionType)
 
BOOL CredFindBestCredentialW (LPCWSTR TargetName, DWORD Type, DWORD Flags, PCREDENTIALW *Credential)
 
BOOL CredFindBestCredentialA (LPCSTR TargetName, DWORD Type, DWORD Flags, PCREDENTIALA *Credential)
 
BOOL CredGetSessionTypes (DWORD MaximumPersistCount, LPDWORD MaximumPersist)
 
VOID CredFree (PVOID Buffer)
 

Function Documentation

BOOL CredDeleteA ( LPCSTR  TargetName,
DWORD  Type,
DWORD  Flags 
)
BOOL CredDeleteW ( LPCWSTR  TargetName,
DWORD  Type,
DWORD  Flags 
)
BOOL CredEnumerateA ( LPCSTR  Filter,
DWORD  Flags,
DWORD *  Count,
PCREDENTIALA **  Credential 
)
BOOL CredEnumerateW ( LPCWSTR  Filter,
DWORD  Flags,
DWORD *  Count,
PCREDENTIALW **  Credential 
)
BOOL CredFindBestCredentialA ( LPCSTR  TargetName,
DWORD  Type,
DWORD  Flags,
PCREDENTIALA *  Credential 
)
BOOL CredFindBestCredentialW ( LPCWSTR  TargetName,
DWORD  Type,
DWORD  Flags,
PCREDENTIALW *  Credential 
)
VOID CredFree ( PVOID  Buffer)
BOOL CredGetSessionTypes ( DWORD  MaximumPersistCount,
LPDWORD  MaximumPersist 
)
BOOL CredGetTargetInfoA ( LPCSTR  TargetName,
DWORD  Flags,
PCREDENTIAL_TARGET_INFORMATIONA *  TargetInfo 
)
BOOL CredGetTargetInfoW ( LPCWSTR  TargetName,
DWORD  Flags,
PCREDENTIAL_TARGET_INFORMATIONW *  TargetInfo 
)
BOOL CredIsMarshaledCredentialA ( LPCSTR  MarshaledCredential)
BOOL CredIsMarshaledCredentialW ( LPCWSTR  MarshaledCredential)
BOOL CredIsProtectedA ( LPSTR  pszProtectedCredentials,
CRED_PROTECTION_TYPE pProtectionType 
)
BOOL CredIsProtectedW ( LPWSTR  pszProtectedCredentials,
CRED_PROTECTION_TYPE pProtectionType 
)
BOOL CredMarshalCredentialA ( CRED_MARSHAL_TYPE  CredType,
PVOID  Credential,
LPSTR *  MarshaledCredential 
)
BOOL CredMarshalCredentialW ( CRED_MARSHAL_TYPE  CredType,
PVOID  Credential,
LPWSTR *  MarshaledCredential 
)
BOOL CredProtectA ( BOOL  fAsSelf,
LPSTR  pszCredentials,
DWORD  cchCredentials,
LPSTR  pszProtectedCredentials,
DWORD *  pcchMaxChars,
CRED_PROTECTION_TYPE ProtectionType 
)
BOOL CredProtectW ( BOOL  fAsSelf,
LPWSTR  pszCredentials,
DWORD  cchCredentials,
LPWSTR  pszProtectedCredentials,
DWORD *  pcchMaxChars,
CRED_PROTECTION_TYPE ProtectionType 
)
BOOL CredReadA ( LPCSTR  TargetName,
DWORD  Type,
DWORD  Flags,
PCREDENTIALA *  Credential 
)
BOOL CredReadDomainCredentialsA ( PCREDENTIAL_TARGET_INFORMATIONA  TargetInfo,
DWORD  Flags,
DWORD *  Count,
PCREDENTIALA **  Credential 
)
BOOL CredReadDomainCredentialsW ( PCREDENTIAL_TARGET_INFORMATIONW  TargetInfo,
DWORD  Flags,
DWORD *  Count,
PCREDENTIALW **  Credential 
)
BOOL CredReadW ( LPCWSTR  TargetName,
DWORD  Type,
DWORD  Flags,
PCREDENTIALW *  Credential 
)
BOOL CredRenameA ( LPCSTR  OldTargetName,
LPCSTR  NewTargetName,
DWORD  Type,
DWORD  Flags 
)
BOOL CredRenameW ( LPCWSTR  OldTargetName,
LPCWSTR  NewTargetName,
DWORD  Type,
DWORD  Flags 
)
BOOL CredUnmarshalCredentialA ( LPCSTR  MarshaledCredential,
PCRED_MARSHAL_TYPE  CredType,
PVOID *  Credential 
)
BOOL CredUnmarshalCredentialW ( LPCWSTR  MarshaledCredential,
PCRED_MARSHAL_TYPE  CredType,
PVOID *  Credential 
)
BOOL CredUnprotectA ( BOOL  fAsSelf,
LPSTR  pszProtectedCredentials,
DWORD  cchCredentials,
LPSTR  pszCredentials,
DWORD *  pcchMaxChars 
)
BOOL CredUnprotectW ( BOOL  fAsSelf,
LPWSTR  pszProtectedCredentials,
DWORD  cchCredentials,
LPWSTR  pszCredentials,
DWORD *  pcchMaxChars 
)
BOOL CredWriteA ( PCREDENTIALA  Credential,
DWORD  Flags 
)
BOOL CredWriteDomainCredentialsA ( PCREDENTIAL_TARGET_INFORMATIONA  TargetInfo,
PCREDENTIALA  Credential,
DWORD  Flags 
)
BOOL CredWriteDomainCredentialsW ( PCREDENTIAL_TARGET_INFORMATIONW  TargetInfo,
PCREDENTIALW  Credential,
DWORD  Flags 
)
BOOL CredWriteW ( PCREDENTIALW  Credential,
DWORD  Flags 
)

WinPR: Windows Portable Runtime Credentials Management

Copyright 2012 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.