---
UID: NF:amsi.IAntimalwareProvider.CloseSession
title: IAntimalwareProvider::CloseSession (amsi.h)
description: Closes the session.
old-location: amsi\iantimalwareprovider_closesession.htm
tech.root: AMSI
ms.date: 01/28/2019
ms.keywords: IAntimalwareProvider interface [Antimalware Scan Interface],CloseSession method, IAntimalwareProvider.CloseSession, IAntimalwareProvider::CloseSession, CloseSession, CloseSession method [Antimalware Scan Interface], CloseSession method [Antimalware Scan Interface],IAntimalwareProvider interface, amsi.iantimalwareprovider_closesession, amsi/IAntimalwareProvider::CloseSession
f1_keywords:
- amsi/IAntimalwareProvider.CloseSession
dev_langs:
- c++
req.header: amsi.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: Windows 10 [desktop apps only]
req.target-min-winversvr: Windows Server 2016 [desktop apps only]
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: 
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- amsi.h
api_name:
- IAntimalwareProvider.CloseSession
targetos: Windows
req.typenames: 
req.redist: 
---

# IAntimalwareProvider::CloseSession

## -description
Closes the session.

## -parameters

### -param session [in]

Type: [ULONGLONG](/windows/desktop/winprog/windows-data-types#ulonglong)

The id/handle of the session to close.

## -returns

This method does not return a value.

## -see-also
