CredIsProtected function
The CredIsProtected function specifies whether the specified credentials are encrypted by a previous call to the CredProtect function.
Syntax
BOOL WINAPI CredIsProtected( _In_ LPTSTR pszProtectedCredentials, _Out_ CRED_PROTECTION_TYPE *pProtectionType );
Parameters
- pszProtectedCredentials [in]
-
A pointer to a null-terminated string that specifies the credentials to test.
- pProtectionType [out]
-
A pointer to a value from the CRED_PROTECTION_TYPE enumeration that specifies whether the credentials specified in the pszProtectedCredentials parameter are protected.
Return value
TRUE if the function succeeds; otherwise, FALSE.
For extended error information, call the GetLastError function.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names |
CredIsProtectedW (Unicode) and CredIsProtectedA (ANSI) |