AmsiOpenSession function (amsi.h)
Opens a session within which multiple scan requests can be correlated.
Syntax
HRESULT AmsiOpenSession(
[in] HAMSICONTEXT amsiContext,
[out] HAMSISESSION *amsiSession
);
Parameters
[in] amsiContext
The handle of type HAMSICONTEXT that was initially received from AmsiInitialize.
[out] amsiSession
A handle of type HAMSISESSION that must be passed to all subsequent calls to the AMSI API within the session.
Return value
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
When the app is finished with the session it must call AmsiCloseSession.
Requirements
Requirement | Value |
---|---|
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 |