WinBioRemoveAllDomainCredentials

WinBioRemoveAllDomainCredentials function

Removes all user credentials for the current domain from the store.

Syntax


HRESULT WINAPI WinBioRemoveAllDomainCredentials(void);

Parameters

This function has no parameters.

Return value

If the function succeeds, it returns S_OK. If the function fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.

Examples

The following function shows how to call WinBioRemoveAllDomainCredentials. Link to the Winbio.lib static library and include the following header files:

  • Windows.h
  • Stdio.h
  • Conio.h
  • Winbio.h

HRESULT RemoveAllDomainCredentials()
{
    HRESULT hr = S_OK;

    hr = WinBioRemoveAllDomainCredentials();
    if (FAILED(hr))
    {
        wprintf_s(L"\n WinBioRemoveAllDomainCredentials failed. ");
        wprintf_s(L"hr = 0x%x\n", hr);
        goto e_Exit;
    }

    wprintf_s(L"\n Successfully removed all domain biometric credentials.\n");

e_Exit:
    wprintf_s(L"\n Press any key to exit...");
    _getch();

    return hr;
}



Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Winbio.h (include Winbio.h)

Library

Winbio.lib

DLL

Winbio.dll

See also

WinBioRemoveAllCredentials
WinBioRemoveCredential
WinBioSetCredential

 

 

Community Additions

ADD
Show:
© 2016 Microsoft