IPrintOemUni::DisableDriver method (prcomoem.h)

The IPrintOemuNI::DisableDriver method allows a rendering plug-in for Unidrv to free resources that were allocated by the plug-in's IPrintOemUni::EnableDriver method.

Syntax

HRESULT DisableDriver();

Return value

The method must return one of the following values.

Return code Description
S_OK
The operation succeeded.
E_FAIL
The operation failed

Remarks

A rendering plug-in for Unidrv must implement the IPrintOemUni::DisableDriver method.

The IPrintOemUni::DisableDriver method, provided by rendering plug-ins for Unidrv, performs the same types of operations as the DrvDisableDriver function that is exported by Unidrv's printer graphics DLL.

IPrintOemUni::DisableDriver and IPrintOemUni::EnableDriver must be implemented as a pair. If you implement one, you must implement the other. For more information, see the Remarks section in IPrintOemUni::EnableDriver.

This is the last IPrintOemUni interface method that is called before the rendering plug-in is unloaded.

Requirements

Requirement Value
Target Platform Desktop
Header prcomoem.h (include Prcomoem.h)