Windows Dev Center

NCryptFreeBuffer function

The NCryptFreeBuffer function releases a block of memory allocated by a CNG key storage provider.

Syntax


SECURITY_STATUS WINAPI NCryptFreeBuffer(
  _In_ PVOID pvInput
);

Parameters

pvInput [in]

The address of the memory to be released.

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
ERROR_SUCCESS

The function was successful.

NTE_INVALID_PARAMETER

The pvInput parameter is not valid.

 

Remarks

A service must not call this function from its StartService Function. If a service calls this function from its StartService function, a deadlock can occur, and the service may stop responding.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Ncrypt.h

Library

Ncrypt.lib

DLL

Ncrypt.dll

 

 

Community Additions

ADD
Show:
© 2015 Microsoft