NCryptStreamClose function

The NCryptStreamClose function closes a data protection stream object opened by using the NCryptStreamOpenToProtect or NCryptStreamOpenToUnprotect functions.

Syntax


NTSTATUS WINAPI NCryptStreamClose(
  _In_  NCRYPT_STREAM_HANDLE hStream
);

Parameters

hStream [in]

Data stream handle returned by NCryptStreamOpenToProtect or NCryptStreamOpenToUnprotect.

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_HANDLE

The handle specified by the hStream parameter is not valid.

 

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

NCryptprotect.h

Library

NCrypt.lib

DLL

NCrypt.dll

See also

CNG DPAPI Functions
NCryptStreamOpenToProtect
NCryptStreamOpenToUnprotect
NCryptStreamUpdate

 

 

Community Additions

ADD
Show:
© 2014 Microsoft