IPrinterExtensionManager::Register method
[This documentation is preliminary and is subject to change.]
The Register method associates a printer extension with a given printer driver and reason. The printer extension is referenced by its ID as well as a path to it. The printer extension will begin receiving events for this reason and this printer driver.
Syntax
HRESULT Register(
[in] GUID printerDriverId,
[in] GUID reasonId,
[in] GUID printerExtensionId,
[in] BSTR printerExtensionPath
);
Parameters
printerDriverId [in]
The GUID representing the printer driver. This GUID is specified in the INF file, and is also specified by the manifest file directive 'PrinterDriverID'.reasonId [in]
The reason ID. A printer extension should be registered for one activation reason. For more information about activation reasons, see get_ReasonId.printerExtensionId [in]
The extension ID. The unique identifier for a printer extension as specified in the manifest file’s [PrinterExtensions] section.printerExtensionPath [in]
The extension path. The location of the executable that will be launched when the activation corresponding to reasonId is performed.
Return value
This method returns an HRESULT value.
See also
IPrinterExtensionEventArgs::get_ReasonId
Build date: 2/2/2012