IPrinterExtensionManager::EnableEvents method (printerextension.h)

The EnableEvents method allows events to be generated for the specified printer driver until DisableEvents is called.

Syntax

HRESULT EnableEvents(
  [in] GUID printerDriverId
);

Parameters

[in] printerDriverId

The GUID representing the specified driver for which to enable events. This GUID is specified in the INF file, and is also specified by the manifest file directive 'PrinterDriverID'.

Return value

This method returns an HRESULT value.

The printer extension should call this method when it is launched so that driver events are generated for it to consume.

Remarks

In the case of a driver event like, for example, Print Preferences or Printer Notifications, the app is expected to call EnableEvents. But if the app doesn't call EnableEvents within 5 seconds, the print system assumes that a UI was called but it's not being responsive so a standard UI is displayed instead.

Requirements

Requirement Value
Minimum supported client Windows 8
Target Platform Desktop
Header printerextension.h

See also

IPrinterExtensionManager