please dont rip this site Prev Next

GetPrinterDriver info  Overview  Group

The GetPrinterDriver function retrieves driver data for the specified printer.

BOOL GetPrinterDriver(

    HANDLE hPrinter,

// printer object

    LPTSTR pEnvironment,

// address of environment

    DWORD Level,

// structure level

    LPBYTE pDriverInfo,

// address of structure array

    DWORD cbBuf,

// size, in bytes, of array

    LPDWORD pcbNeeded 

// address of variable with number of bytes retrieved (or required)

   );

Parameters

hPrinter
Identifies the printer for which the driver data should be retrieved.
pEnvironment
Points to a null-terminated string that specifies the environment. For example, “Windows NT x86” specifies Windows NT running on an Intel 80386 or 80486 processor. If this parameter is NULL, the current environment of the calling application and client machine (not of the destination application and print server) is used.
Level
Specifies the version of the structure to which lpbForm points. This value must be either 1, 2., or 3.
pDriverInfo
Points to either a DRIVER_INFO_1, DRIVER_INFO_2, or DRIVER_INFO_3structure. If Level is 1, this array receives a DRIVER_INFO_1 structure; if Level is 2, this array receives a DRIVER_INFO_2 structure, if Level is 3, this array receives a DRIVER_INFO_3 structure.
cbBuf
Specifies the size, in bytes, of the array at which pDriverInfo points.
pcbNeeded
Points to a value that specifies the number of bytes copied if the function succeeds or the number of bytes required if cbBuf is too small.

Return Values

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

The printer handle identified by the hPrinter parameter should be retrieved by calling the OpenPrinter function.

The DRIVER_INFO_2 and DRIVER_INFO_3 structures contain a full path and filename specifying the location of the printer driver. An application can use the path and filename to load a printer driver by calling the LoadLibrary function and supplying the path and filename as the single argument.

See Also

AddPrinterDriver, DRIVER_INFO_1, DRIVER_INFO_2, EnumPrinterDrivers, LoadLibrary, OpenPrinter


file: /Techref/os/win/api/win32/func/src/f36_13.htm, 4KB, , updated: 2000/4/7 11:19, local time: 2024/11/23 19:29,
TOP NEW HELP FIND: 
3.16.47.89:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://ecomorder.com/techref/os/win/api/win32/func/src/f36_13.htm"> GetPrinterDriver</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to ecomorder.com!

 

Welcome to ecomorder.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .