Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Driver Kit
Print
Reference
 InitializePrintProvidor

  Switch on low bandwidth view
Windows Driver Kit: Print Devices
InitializePrintProvidor

A print provider's InitializePrintProvidor function initializes the provider and supplies the print spooler with the provider's entry points.

BOOL
  InitializePrintProvidor(
    LPPRINTPROVIDOR  pPrintProvidor,
    DWORD  cbPrintProvidor,
    LPWSTR  pFullRegistryPath
    );

Parameters

pPrintProvidor
Caller-supplied address of a PRINTPROVIDOR structure, to be filled in by the print provider.
cbPrintProvidor
Caller-supplied size, in bytes, of the PRINTPROVIDOR structure pointed to by pPrintProvidor.
pFullRegistryPath
Caller-supplied pointer to a string representing the full registry path to the provider's registry entry.

Return Value

If the operation succeeds, the function should return TRUE. Otherwise the function should return FALSE.

Comments

Print providers are required to define an InitializePrintProvidor function, which is the first function called by the spooler after the provider has been loaded. The function must fill the supplied PRINTPROVIDOR structure with pointers to the provider's defined functions (see Functions Defined by Print Providers). The function can also perform other provider-specific initialization operations.

Requirements

Headers: Declared in Winsplp.h. Include Winsplp.h.

See Also

PRINTPROVIDOR


Send feedback on this topic
Built on May 20, 2009
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker