Windows hardware
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

 

 

Show:
© 2016 Microsoft