Skip to content

Latest commit

 

History

History
108 lines (85 loc) · 2.94 KB

nf-ncryptprotect-ncryptstreamclose.md

File metadata and controls

108 lines (85 loc) · 2.94 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:ncryptprotect.NCryptStreamClose
NCryptStreamClose function (ncryptprotect.h)
Closes a data protection stream object opened by using the NCryptStreamOpenToProtect or NCryptStreamOpenToUnprotect functions.
NCryptStreamClose
NCryptStreamClose function [Security]
ncryptprotect/NCryptStreamClose
security.ncryptstreamclose
security\ncryptstreamclose.htm
security
770640F2-04C7-4512-8004-41F4ECDC110E
12/05/2018
NCryptStreamClose, NCryptStreamClose function [Security], ncryptprotect/NCryptStreamClose, security.ncryptstreamclose
ncryptprotect.h
Windows
Windows 8 [desktop apps only]
Windows Server 2012 [desktop apps only]
NCrypt.lib
NCrypt.dll
Windows
19H1
NCryptStreamClose
ncryptprotect/NCryptStreamClose
c++
APIRef
kbSyntax
DllExport
NCrypt.dll
NCryptStreamClose

NCryptStreamClose function

-description

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

-parameters

-param hStream [in]

Data stream handle returned by NCryptStreamOpenToProtect or NCryptStreamOpenToUnprotect.

-returns

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 code Description
ERROR_SUCCESS
The function was successful.
NTE_INVALID_HANDLE
The handle specified by the hStream parameter is not valid.

-see-also

CNG DPAPI Functions

NCryptStreamOpenToProtect

NCryptStreamOpenToUnprotect

NCryptStreamUpdate