CredentialsChanged() is failing with error -2147019873 in CredentialProvider

SHARVANI ATCHULA 0 Reputation points
2025-12-17T07:10:19.04+00:00

We are using CredentialProvider in C++ for Windows, On calling OnCredentialsChanged(), Sometimes CredentialsChanged() is failing with HRESULT hr -2147019873.

Windows development | Windows API - Win32
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2025-12-17T07:10:26.5933333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The error code -2147019873 corresponds to WINBIO_E_CRED_PROV_DISABLED, which indicates that the credential provider is not enabled system-wide. This can happen if the credential provider has not been properly registered or if it has been disabled in the system settings.

    To resolve this issue, you should check the following:

    1. Ensure that your credential provider is correctly registered in the Windows registry.
    2. Verify that the credential provider is enabled for the user or domain you are trying to authenticate.
    3. If you are developing a custom credential provider, ensure that you have implemented the necessary interfaces and methods correctly, including handling the OnCredentialsChanged() method appropriately.

    If the problem persists, consider checking the event logs for any additional error messages that might provide more context on why the credential provider is disabled.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.