Bewerken

Delen via


Warning C28751

Banned usage of ExAllocatePool and its variants: ExAllocatePool is a banned API for improved error handling purposes.

This warning indicates that a function is being used that has been banned and has a more robust or secure replacement. This specific warning indicates the use of ExAllocatePool or one of its variants, which are deprecated.

Remarks

See Updating Deprecated ExAllocatePool Calls to ExAllocatePool2 and ExAllocatePool3 for further information. A list of all banned functions covered by this error and recommended replacements can be found below.

Code analysis name: BANNED_API_USAGE_EXALLOCATEPOOL

Banned Functions

Banned API Replacement Function(s)
ExAllocatePool ExAllocatePool2
ExAllocatePoolWithTag ExAllocatePool2
ExAllocatePoolWithQuota ExAllocatePool2
ExAllocatePoolWithQuotaTag ExAllocatePool2
ExAllocatePoolWithTagPriority ExAllocatePool3