AmsiCloseSession function

Close a session that was opened by AmsiOpenSession.

Syntax

void AmsiCloseSession(
  HAMSICONTEXT amsiContext,
  HAMSISESSION amsiSession
);

Parameters

amsiContext

The handle of type HAMSICONTEXT that was initially received from AmsiInitialize.

amsiSession

The handle of type HAMSISESSION that was initially received from AmsiOpenSession.

Return Value

This function does not return a value.

Requirements

   
Minimum supported client Windows 10 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header amsi.h
Library Amsi.lib
DLL Amsi.dll

See Also

AmsiInitialize

AmsiOpenSession