Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

189 lines
5.0 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: gdisplp.h
  3. *
  4. * Copyright (c) 1995-1999 Microsoft Corporation
  5. \**************************************************************************/
  6. BOOL
  7. WINAPI
  8. GetPrinterDriverW(
  9. HANDLE hPrinter,
  10. LPWSTR pEnvironment,
  11. DWORD Level,
  12. LPBYTE pDriverInfo,
  13. DWORD cbBuf,
  14. LPDWORD pcbNeeded
  15. );
  16. #define GetPrinterDriver GetPrinterDriverW
  17. BOOL
  18. WINAPI
  19. AbortPrinter(
  20. HANDLE hPrinter
  21. );
  22. BOOL
  23. WINAPI
  24. EndDocPrinter(
  25. HANDLE hPrinter
  26. );
  27. typedef struct _PRINTER_DEFAULTSW{
  28. LPWSTR pDatatype;
  29. LPDEVMODEW pDevMode;
  30. ACCESS_MASK DesiredAccess;
  31. } PRINTER_DEFAULTSW, *PPRINTER_DEFAULTSW, *LPPRINTER_DEFAULTSW;
  32. typedef struct _DOC_INFO_1W {
  33. LPWSTR pDocName;
  34. LPWSTR pOutputFile;
  35. LPWSTR pDatatype;
  36. } DOC_INFO_1W, *PDOC_INFO_1W, *LPDOC_INFO_1W;
  37. BOOL
  38. WINAPI
  39. OpenPrinterW(
  40. LPWSTR pPrinterName,
  41. LPHANDLE phPrinter,
  42. LPPRINTER_DEFAULTSW pDefault
  43. );
  44. #define OpenPrinter OpenPrinterW
  45. BOOL
  46. WINAPI
  47. ClosePrinter(
  48. HANDLE hPrinter
  49. );
  50. BOOL
  51. WINAPI
  52. EndPagePrinter(
  53. HANDLE hPrinter
  54. );
  55. DWORD
  56. WINAPI
  57. StartDocPrinterW(
  58. HANDLE hPrinter,
  59. DWORD Level,
  60. LPBYTE pDocInfo
  61. );
  62. #define StartDocPrinter StartDocPrinterW
  63. BOOL
  64. WINAPI
  65. ResetPrinterW(
  66. HANDLE hPrinter,
  67. LPVOID pDefault
  68. );
  69. #define ResetPrinter ResetPrinterW
  70. BOOL
  71. WINAPI
  72. StartPagePrinter(
  73. HANDLE hPrinter
  74. );
  75. typedef struct _DRIVER_INFO_5W {
  76. DWORD cVersion;
  77. LPWSTR pName; // QMS 810
  78. LPWSTR pEnvironment; // Win32 x86
  79. LPWSTR pDriverPath; // c:\drivers\pscript.dll
  80. LPWSTR pDataFile; // c:\drivers\QMS810.PPD
  81. LPWSTR pConfigFile; // c:\drivers\PSCRPTUI.DLL
  82. DWORD dwDriverAttributes; // driver attributes (like UMPD/KMPD)
  83. DWORD dwConfigVersion; // version number of the config file since reboot
  84. DWORD dwDriverVersion; // version number of the driver file since reboot
  85. } DRIVER_INFO_5W, *PDRIVER_INFO_5W, *LPDRIVER_INFO_5W;
  86. typedef struct _DRIVER_INFO_3W {
  87. DWORD cVersion;
  88. LPWSTR pName; // QMS 810
  89. LPWSTR pEnvironment; // Win32 x86
  90. LPWSTR pDriverPath; // c:\drivers\pscript.dll
  91. LPWSTR pDataFile; // c:\drivers\QMS810.PPD
  92. LPWSTR pConfigFile; // c:\drivers\PSCRPTUI.DLL
  93. LPWSTR pHelpFile; // c:\drivers\PSCRPTUI.HLP
  94. LPWSTR pDependentFiles; // PSCRIPT.DLL\0QMS810.PPD\0PSCRIPTUI.DLL\0PSCRIPTUI.HLP\0PSTEST.TXT\0\0
  95. LPWSTR pMonitorName; // "PJL monitor"
  96. LPWSTR pDefaultDataType; // "EMF"
  97. } DRIVER_INFO_3W, *PDRIVER_INFO_3W, *LPDRIVER_INFO_3W;
  98. typedef struct _DRIVER_INFO_2W {
  99. DWORD cVersion;
  100. LPWSTR pName; // QMS 810
  101. LPWSTR pEnvironment; // Win32 x86
  102. LPWSTR pDriverPath; // c:\drivers\pscript.dll
  103. LPWSTR pDataFile; // c:\drivers\QMS810.PPD
  104. LPWSTR pConfigFile; // c:\drivers\PSCRPTUI.DLL
  105. } DRIVER_INFO_2W, *PDRIVER_INFO_2W, *LPDRIVER_INFO_2W;
  106. typedef struct _DRIVER_INFO_1W {
  107. LPWSTR pName; // QMS 810
  108. } DRIVER_INFO_1W, *PDRIVER_INFO_1W, *LPDRIVER_INFO_1W;
  109. typedef struct _FORM_INFO_1W {
  110. DWORD Flags;
  111. LPWSTR pName;
  112. SIZEL Size;
  113. RECTL ImageableArea;
  114. } FORM_INFO_1W, *PFORM_INFO_1W, *LPFORM_INFO_1W;
  115. typedef struct _PRINTER_INFO_1W {
  116. DWORD Flags;
  117. LPWSTR pDescription;
  118. LPWSTR pName;
  119. LPWSTR pComment;
  120. } PRINTER_INFO_1W, *PPRINTER_INFO_1W, *LPPRINTER_INFO_1W;
  121. typedef struct _PRINTER_INFO_2W {
  122. LPWSTR pServerName;
  123. LPWSTR pPrinterName;
  124. LPWSTR pShareName;
  125. LPWSTR pPortName;
  126. LPWSTR pDriverName;
  127. LPWSTR pComment;
  128. LPWSTR pLocation;
  129. LPDEVMODEW pDevMode;
  130. LPWSTR pSepFile;
  131. LPWSTR pPrintProcessor;
  132. LPWSTR pDatatype;
  133. LPWSTR pParameters;
  134. PSECURITY_DESCRIPTOR pSecurityDescriptor;
  135. DWORD Attributes;
  136. DWORD Priority;
  137. DWORD DefaultPriority;
  138. DWORD StartTime;
  139. DWORD UntilTime;
  140. DWORD Status;
  141. DWORD cJobs;
  142. DWORD AveragePPM;
  143. } PRINTER_INFO_2W, *PPRINTER_INFO_2W, *LPPRINTER_INFO_2W;
  144. typedef struct _PRINTER_INFO_3 {
  145. PSECURITY_DESCRIPTOR pSecurityDescriptor;
  146. } PRINTER_INFO_3, *PPRINTER_INFO_3, *LPPRINTER_INFO_3;
  147. typedef struct _PRINTER_INFO_4W {
  148. LPWSTR pPrinterName;
  149. LPWSTR pServerName;
  150. DWORD Attributes;
  151. } PRINTER_INFO_4W, *PPRINTER_INFO_4W, *LPPRINTER_INFO_4W;
  152. typedef struct _PRINTER_INFO_5W {
  153. LPWSTR pPrinterName;
  154. LPWSTR pPortName;
  155. DWORD Attributes;
  156. DWORD DeviceNotSelectedTimeout;
  157. DWORD TransmissionRetryTimeout;
  158. } PRINTER_INFO_5W, *PPRINTER_INFO_5W, *LPPRINTER_INFO_5W;
  159. #define PRINTER_ACCESS_USE 0x00000008