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 code | Description |
|---|---|
|
The function was successful. |
|
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 |
|
|
Library |
|
|
DLL |
|
See also