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 [in]

Pointer to the miniport driver's device extension.

Length [in]

Specifies the number of bytes of memory to be freed.

VirtualAddress [in]

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

LogicalAddress [in]

Specifies the logical address of the buffer to be freed.

CacheEnabled [in]

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

Target platform

Desktop

Version

Available in Windows 2000 and later versions of the Windows operating systems.

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

Show: