DrvFree

VOID DrvFree(

    IN PVOID pv,

    IN ULONG id

   );

DrvFree is used to notify the driver that the specified structure is no longer needed.

Parameters

pv
Points to a structure.
id
The identifier that was returned with the structure.

Comments

DrvFree is an optional function that should be supported only if the driver must be informed when memory associated with structures can be freed. For example, if a FONTOBJ structure is in use, deletion can be deferred until DrvDestroyFont has been called, eliminating the need for the driver to implement DrvFree.

A driver can use id in different ways. It can specify an object handle or it can indicate the way the structure is allocated. For example, it can differentiate between loaded resources and memory allocated from a heap. The driver can ignore this parameter if the structure pointed to by pv contains enough information.

See Also

DrvQueryFont, DrvQueryFontTree