DRIVER_INFO_5 structure

The DRIVER_INFO_5 structure contains printer driver information.

Syntax


typedef struct _DRIVER_INFO_5 {
  DWORD  cVersion;
  LPTSTR pName;
  LPTSTR pEnvironment;
  LPTSTR pDriverPath;
  LPTSTR pDataFile;
  LPTSTR pConfigFile;
  DWORD  dwDriverAttributes;
  DWORD  dwConfigVersion;
  DWORD  dwDriverVersion;
} DRIVER_INFO_5, *PDRIVER_INFO_5;

Members

cVersion

The operating system version for which the driver was written. The supported value is 3.

pName

Pointer to a null-terminated string that specifies the name of the driver (for example, QMS 810).

pEnvironment

Pointer to a null-terminated string that specifies the environment for which the driver was written (for example, Windows x86, Windows IA64, and Windows x64).

pDriverPath

Pointer to a null-terminated string that specifies a file name or a full path and file name for the file that contains the device driver (for example, C:\DRIVERS\Pscript.dll).

pDataFile

Pointer to a null-terminated string that specifies a file name or a full path and file name for the file that contains driver data (for example, C:\DRIVERS\Qms810.ppd).

pConfigFile

Pointer to a null-terminated string that specifies a file name or a full path and file name for the device driver's configuration dynamic-link library (for example, C:\DRIVERS\Pscrptui.dll).

dwDriverAttributes

Driver attributes, like UMPD/KMPD.

dwConfigVersion

Number of times the configuration file for this driver has been upgraded or downgraded since the last spooler restart.

dwDriverVersion

Number of times the driver file for this driver has been upgraded or downgraded since the last spooler restart.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winspool.h (include Windows.h)

Unicode and ANSI names

_DRIVER_INFO_5W (Unicode) and _DRIVER_INFO_5A (ANSI)

See also

Printing
Print Spooler API Structures
AddPrinterDriver
EnumPrinterDrivers
GetPrinterDriver

 

 

Community Additions

ADD
Show:
© 2015 Microsoft