VideoPortFreeCommonBuffer function

The VideoPortFreeCommonBuffer function is obsolete and is supported only for backward compatibility with existing drivers. In its place, driver writers should use VideoPortReleaseCommonBuffer.

VideoPortFreeCommonBuffer deallocates system memory that was allocated by a call to VideoPortGetCommonBuffer.

Syntax

VOID VideoPortFreeCommonBuffer(
  _In_ PVOID            HwDeviceExtension,
  _In_ ULONG            Length,
  _In_ PVOID            VirtualAddress,
  _In_ PHYSICAL_ADDRESS LogicalAddress,
  _In_ BOOLEAN          CacheEnabled
);

Parameters

HwDeviceExtension

Pointer to the miniport driver's device extension.

Length

Specifies the number of bytes of memory to be freed.

VirtualAddress

Pointer to the corresponding virtual address of the allocated memory range.

LogicalAddress

Specifies the logical address of the buffer to be freed.

CacheEnabled

Indicates whether the allocated memory is cached.

Return Value

None

Remarks

Except for VideoPortGetCommonBuffer's Alignment parameter, all of the parameters used in a call to VideoPortFreeCommonBuffer must have the same values as those used in the previous call to VideoPortGetCommonBuffer.

Requirements

   
Windows version Available in Windows 2000 and later versions of the Windows operating systems.
Target Platform Desktop
Header video.h (include Video.h)
Library Videoprt.lib
DLL Videoprt.sys
IRQL PASSIVE_LEVEL

See Also

VideoPortReleaseCommonBuffer

VideoPortGetCommonBuffer

Send comments about this topic to Microsoft