Export (0) Print
Expand All

BCryptFreeBuffer function

The BCryptFreeBuffer function is used to free memory that was allocated by one of the CNG functions.

Syntax


VOID WINAPI BCryptFreeBuffer(
  _In_  PVOID pvBuffer
);

Parameters

pvBuffer [in]

A pointer to the memory buffer to be freed.

Return value

This function does not return a value.

Remarks

BCryptFreeBuffer must be called in the same processor mode as the BCrypt API function that allocated the buffer. In addition, if the buffer was allocated at PASSIVE_LEVEL IRQL, it must be freed at that IRQL. If the buffer was allocated at DISPATCH_LEVEL IRQL, it can be freed at either DISPATCH_LEVEL IRQL or 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

BCryptEnumRegisteredProviders
BCryptEnumContexts
BCryptQueryProviderRegistration

 

 

Community Additions

ADD
Show:
© 2014 Microsoft