Edit

Share via


MpHandleClose function

Closes the handle returned by MpManagerOpen, MpScanStart, MpThreatOpen, or MpUpdateStart.

Syntax

HRESULT WINAPI MpHandleClose(
  _In_ MPHANDLE hMpHandle
);

Parameters

hMpHandle [in]

Type: MPHANDLE

Handle to close.

Return value

Type: HRESULT

If the function succeeds the return value is S_OK.

If the function fails then the return value is a failed HRESULT code. The caller can use the MpErrorMessageFormat function to get a generic description of the error message.

The following specific error can be returned by the function:

Return Code Description
E_WIN_INVALID_HANDLE The specified handle is invalid.

Requirements

Requirement Value
Minimum supported client
Windows 8 [desktop apps only]
Minimum supported server
Windows Server 2012 [desktop apps only]
Header
MpClient.h
DLL
MpClient.dll

See also

MpErrorMessageFormat

MpManagerOpen

MpScanStart

MpThreatOpen