WinBioRemoveAllCredentials function

Removes all credentials from the store.

Syntax


HRESULT WINAPI WinBioRemoveAllCredentials(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 WinBioRemoveAllCredentials. Link to the Winbio.lib static library and include the following header files:

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

HRESULT RemoveAllCredentials()
{
    HRESULT hr = S_OK;

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

    wprintf_s(L"\n Successfully removed all 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

WinBioRemoveAllDomainCredentials
WinBioRemoveCredential
WinBioSetCredential

 

 

Community Additions

ADD
Show:
© 2014 Microsoft