CredIsProtectedA function

The CredIsProtected function specifies whether the specified credentials are encrypted by a previous call to the CredProtect function.

Syntax

BOOL CredIsProtectedA(
  LPSTR                pszProtectedCredentials,
  CRED_PROTECTION_TYPE *pProtectionType
);

Parameters

pszProtectedCredentials

A pointer to a null-terminated string that specifies the credentials to test.

pProtectionType

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]
Target Platform Windows
Header wincred.h
Library Advapi32.lib
DLL Advapi32.dll