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.

245 lines
5.0 KiB

  1. /*****************************************************************************\
  2. * MODULE: stubs.h
  3. *
  4. * Header module for stub routines.
  5. *
  6. *
  7. * Copyright (C) 1996-1997 Microsoft Corporation
  8. * Copyright (C) 1996-1997 Hewlett Packard
  9. *
  10. * History:
  11. * 07-Oct-1996 HWP-Guys Initiated port from win95 to winNT
  12. *
  13. \*****************************************************************************/
  14. #ifndef _STUB_H
  15. #define _STUB_H
  16. HANDLE stubAddPrinter(
  17. LPTSTR pszName,
  18. DWORD dwLevel,
  19. LPBYTE pbPrinter);
  20. BOOL stubDeletePrinter(
  21. HANDLE hPrinter);
  22. BOOL stubReadPrinter(
  23. HANDLE hPrinter,
  24. LPVOID pBuf,
  25. DWORD cbBuf,
  26. LPDWORD pNoBytesRead);
  27. DWORD stubGetPrinterData(
  28. HANDLE hPrinter,
  29. LPTSTR pszValueName,
  30. LPDWORD pType,
  31. LPBYTE pbData,
  32. DWORD dwSize,
  33. LPDWORD pcbNeeded);
  34. DWORD stubSetPrinterData(
  35. HANDLE hPrinter,
  36. LPTSTR pszValueName,
  37. DWORD dwType,
  38. LPBYTE pbData,
  39. DWORD cbData);
  40. DWORD stubWaitForPrinterChange(
  41. HANDLE hPrinter,
  42. DWORD dwFlags);
  43. BOOL stubAddPrinterConnection(
  44. LPTSTR pszName);
  45. BOOL stubDeletePrinterConnection(
  46. LPTSTR pszName);
  47. DWORD stubPrinterMessageBox(
  48. HANDLE hPrinter,
  49. DWORD dwError,
  50. HWND hWnd,
  51. LPTSTR pszText,
  52. LPTSTR pszCaption,
  53. DWORD dwType);
  54. BOOL stubAddPrinterDriver(
  55. LPTSTR pszName,
  56. DWORD dwLevel,
  57. LPBYTE pbDriverInfo);
  58. BOOL stubDeletePrinterDriver(
  59. LPTSTR pszName,
  60. LPTSTR pszEnvironment,
  61. LPTSTR pszDriverName);
  62. BOOL stubGetPrinterDriver(
  63. HANDLE hPrinter,
  64. LPTSTR pszEnvironment,
  65. DWORD dwLevel,
  66. LPBYTE pbDriverInfo,
  67. DWORD cbBuf,
  68. LPDWORD pcbNeeded);
  69. BOOL stubEnumPrinterDrivers(
  70. LPTSTR pszName,
  71. LPTSTR pszEnvironment,
  72. DWORD dwLevel,
  73. LPBYTE pbDriverInfo,
  74. DWORD cbBuf,
  75. LPDWORD pcbNeeded,
  76. LPDWORD pcReturned);
  77. BOOL stubGetPrinterDriverDirectory(
  78. LPTSTR pszName,
  79. LPTSTR pszEnvironment,
  80. DWORD dwLevel,
  81. LPBYTE pbDriverDirectory,
  82. DWORD cbBuf,
  83. LPDWORD pcbNeeded);
  84. BOOL stubAddPrintProcessor(
  85. LPTSTR pszName,
  86. LPTSTR pszEnvironment,
  87. LPTSTR pszPathName,
  88. LPTSTR pszPrintProcessorName);
  89. BOOL stubDeletePrintProcessor(
  90. LPTSTR pszName,
  91. LPTSTR pszEnvironment,
  92. LPTSTR pszPrintProcessorName);
  93. BOOL stubEnumPrintProcessors(
  94. LPTSTR pszName,
  95. LPTSTR pszEnvironment,
  96. DWORD dwLevel,
  97. LPBYTE pbPrintProcessorInfo,
  98. DWORD cbBuf,
  99. LPDWORD pcbNeeded,
  100. LPDWORD pcReturned);
  101. BOOL stubGetPrintProcessorDirectory(
  102. LPTSTR pszName,
  103. LPTSTR pszEnvironment,
  104. DWORD dwLevel,
  105. LPBYTE pbPrintProcessorInfo,
  106. DWORD cbBuf,
  107. LPDWORD pcbNeeded);
  108. BOOL stubEnumPrintProcessorDatatypes(
  109. LPTSTR pszName,
  110. LPTSTR pszPrintProcessorName,
  111. DWORD dwLevel,
  112. LPBYTE pbDataypes,
  113. DWORD cbBuf,
  114. LPDWORD pcbNeeded,
  115. LPDWORD pcReturned);
  116. BOOL stubAddForm(
  117. HANDLE hPrinter,
  118. DWORD Level,
  119. LPBYTE pForm);
  120. BOOL stubDeleteForm(
  121. HANDLE hPrinter,
  122. LPTSTR pFormName);
  123. BOOL stubGetForm(
  124. HANDLE hPrinter,
  125. LPTSTR pszFormName,
  126. DWORD dwLevel,
  127. LPBYTE pbForm,
  128. DWORD cbBuf,
  129. LPDWORD pcbNeeded);
  130. BOOL stubSetForm(
  131. HANDLE hPrinter,
  132. LPTSTR pszFormName,
  133. DWORD dwLevel,
  134. LPBYTE pbForm);
  135. BOOL stubEnumForms(
  136. HANDLE hPrinter,
  137. DWORD dwLevel,
  138. LPBYTE pbForm,
  139. DWORD cbBuf,
  140. LPDWORD pcbNeeded,
  141. LPDWORD pcReturned);
  142. BOOL stubAddMonitor(
  143. LPTSTR pszName,
  144. DWORD dwLevel,
  145. LPBYTE pbMonitorInfo);
  146. BOOL stubDeleteMonitor(
  147. LPTSTR pszName,
  148. LPTSTR pszEnvironment,
  149. LPTSTR pszMonitorName);
  150. BOOL stubEnumMonitors(
  151. LPTSTR pszName,
  152. DWORD dwLevel,
  153. LPBYTE pbMonitors,
  154. DWORD cbBuf,
  155. LPDWORD pcbNeeded,
  156. LPDWORD pcReturned);
  157. BOOL stubAddPort(
  158. LPTSTR pName,
  159. HWND hWnd,
  160. LPTSTR pMonitorName);
  161. BOOL stubDeletePort(
  162. LPTSTR pName,
  163. HWND hWnd,
  164. LPTSTR pPortName);
  165. BOOL stubConfigurePort(
  166. LPTSTR lpszServerName,
  167. HWND hWnd,
  168. LPTSTR lpszPortName);
  169. HANDLE stubCreatePrinterIC(
  170. HANDLE hPrinter,
  171. LPDEVMODEW pDevMode);
  172. BOOL stubPlayGdiScriptOnPrinterIC(
  173. HANDLE hPrinterIC,
  174. LPBYTE pbIn,
  175. DWORD cIn,
  176. LPBYTE pbOut,
  177. DWORD cOut,
  178. DWORD ul);
  179. BOOL stubDeletePrinterIC(
  180. HANDLE hPrinterIC);
  181. BOOL stubResetPrinter(
  182. LPPRINTER_DEFAULTS lpDefault);
  183. BOOL stubGetPrinterDriverEx(
  184. LPTSTR lpEnvironment,
  185. DWORD dwLevel,
  186. LPBYTE lpbDriverInfo,
  187. DWORD cbBuf,
  188. LPDWORD pcbNeeded,
  189. DWORD dwClientMajorVer,
  190. DWORD dwClientMinorVer,
  191. PDWORD pdwServerMajorVer,
  192. PDWORD pdwServerMinorVer);
  193. BOOL stubFindFirstPrinterChangeNotification(
  194. HANDLE hPrinter,
  195. DWORD dwFlags,
  196. DWORD dwOptions,
  197. HANDLE hNotify,
  198. PDWORD pdwStatus,
  199. PVOID pPrinterNofityOptions,
  200. PVOID pPrinterNotifyInit);
  201. BOOL stubFindClosePrinterChangeNotification(
  202. HANDLE hPrinter);
  203. #endif