Export (0) Print
Expand All

BCryptCloseAlgorithmProvider function

The BCryptCloseAlgorithmProvider function closes an algorithm provider.

Syntax


NTSTATUS WINAPI BCryptCloseAlgorithmProvider(
  _Inout_  BCRYPT_ALG_HANDLE hAlgorithm,
  _In_     ULONG dwFlags
);

Parameters

hAlgorithm [in, out]

A handle that represents the algorithm provider to close. This handle is obtained by calling the BCryptOpenAlgorithmProvider function.

dwFlags [in]

A set of flags that modify the behavior of this function. No flags are defined for this function.

Return value

Returns a status code that indicates the success or failure of the function.

Possible return codes include, but are not limited to, the following.

Return codeDescription
STATUS_SUCCESS

The function was successful.

STATUS_INVALID_HANDLE

The algorithm handle in the hAlgorithm parameter is not valid.

 

Remarks

BCryptCloseAlgorithmProvider can be called either from user mode or kernel mode. Kernel mode callers must be executing at PASSIVE_LEVEL IRQL.

To call this function in kernel mode, use Cng.lib, which is part of the Driver Development Kit (DDK). For more information, see WDK and Developer Tools.

Windows Server 2008 and Windows Vista:  To call this function in kernel mode, use Ksecdd.lib.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Bcrypt.h

Library

Bcrypt.lib

DLL

Bcrypt.dll

See also

BCryptOpenAlgorithmProvider

 

 

Community Additions

ADD
Show:
© 2014 Microsoft