Redagować

Udostępnij przez


MpFreeMemory function

Frees memory for the malware protection manager. All buffers allocated and returned by malware protection functions must be freed by the caller using this function.

Syntax

void WINAPI MpFreeMemory(
  _In_ PVOID pMemory
);

Parameters

pMemory [in]

Type: PVOID

A pointer to memory allocated by a malware protection function.

Return value

This function does not return a value.

Remarks

To facilitate memory management for clients, the malware protection manager also defines macros to free memory associated with various structures returned by malware protection functions. The following macros are defined in the header file mpmemfree.h:

Name Description
MPRESOURCE_INFO_FREE Frees an allocated MPRESOURCE_INFO.
MPTHREAT_INFO_FREE Frees an allocated MPTHREAT_INFO.
MPTHREAT_LOCALIZED_INFO_FREE Frees an allocated MPTHREAT_LOCALIZED_INFO.

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

MPRESOURCE_INFO

MPTHREAT_INFO

MPTHREAT_LOCALIZED_INFO