VideoPortFreePool function (video.h)

The VideoPortFreePool function deallocates a block of pool memory previously allocated by VideoPortAllocatePool.

Syntax

VIDEOPORT_API VOID VideoPortFreePool(
  [in] IN PVOID HwDeviceExtension,
  [in] IN PVOID Ptr
);

Parameters

[in] HwDeviceExtension

Pointer to the miniport driver's device extension.

[in] Ptr

Pointer to the first byte of the memory to be freed.

Return value

None

Remarks

VideoPortFreePool is intended to replace VideoPortReleaseBuffer, which is obsolete.

Callers of VideoPortFreePool must be running at IRQL <= DISPATCH_LEVEL. A caller at DISPATCH_LEVEL must have specified a VpNonPaged XxxPoolType when the memory was allocated. Otherwise, the caller must be running at IRQL < DISPATCH_LEVEL.

Requirements

Requirement Value
Minimum supported client Available in Windows XP and later versions of the Windows operating systems.
Target Platform Desktop
Header video.h (include Video.h)
Library Videoprt.lib
DLL Videoprt.sys
IRQL See Remarks section.

See also

VideoPortAllocateCommonBuffer

VideoPortAllocatePool