You Can Call a DLL Function from a Printer Driver |
Q131639
A printer driver can call other DLL functions if the rules for loading the DLL are followed correctly.
To have a printer driver call other DLL functions, you need to make sure the functions in the called DLL are using the PASCAL calling convention. For example, the prototype of the DLL function would look similar to this:
< return type > PASCAL dll_function ( param1, param2,......);
The DLL can be loaded either explicitly or implicitly. A printer driver can
implicitly import DLL functions at link time when the IMPORTS section of
the driver's module definition (.DEF) file includes the functions of the
called DLL.
Additional query words: 3.10
Keywords :
Issue type :
Technology :
|
Last Reviewed: November 1, 1999 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |