DXGKCB_AGP_FREE_POOL callback function (dispmprt.h)

The DXGKCB_AGP_FREE_POOL callback function frees AGP memory that was previously allocated by AgpAllocatePool.

Syntax

DXGKCB_AGP_FREE_POOL DxgkcbAgpFreePool;

NTSTATUS DxgkcbAgpFreePool(
  [in] IN HANDLE Context,
  [in] IN PVOID VirtualAddress
)
{...}

Parameters

[in] Context

A handle to a context block that is associated with an AGP interface. The display miniport driver previously received this handle in the Context member of the DXGK_AGP_INTERFACE structure that was filled in by DxgkCbQueryServices.

[in] VirtualAddress

The base virtual address of the AGP allocation that is to be freed. This is the virtual address that was previously returned in the VirtualAddress output parameter of the AgpAllocatePool function.

Return value

AgpFreePool returns STATUS_SUCCESS if it succeeds. Otherwise, it returns one of the error codes defined in Ntstatus.h.

Remarks

None.

Requirements

Requirement Value
Minimum supported client Windows Vista
Target Platform Desktop
Header dispmprt.h (include Dispmprt.h)
IRQL PASSIVE_LEVEL

See also

AgpAllocatePool

AgpSetCommand

DXGK_AGP_INTERFACE

DxgkCbQueryServices