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.

185 lines
3.4 KiB

  1. /*++
  2. Copyright (c) 1992-1993 Microsoft Corporation
  3. Module Name:
  4. queue.h
  5. Abstract:
  6. Header file included by the print provider
  7. Author:
  8. Yi-Hsin Sung (yihsins) 15-May-1993
  9. Environment:
  10. User Mode -Win32
  11. Revision History:
  12. --*/
  13. #ifndef _NW_QUEUE_INCLUDED_
  14. #define _NW_QUEUE_INCLUDED_
  15. //
  16. // Functions from queue.c
  17. //
  18. typedef BYTE JOBTIME[6];
  19. DWORD
  20. NwGetQueueId(
  21. IN HANDLE handleServer,
  22. IN LPWSTR QueueName,
  23. OUT LPDWORD QueueId
  24. );
  25. DWORD
  26. NwCreateQueueJobAndFile(
  27. IN HANDLE handleServer,
  28. IN DWORD QueueId,
  29. IN LPWSTR DocumentName,
  30. IN LPWSTR UserName,
  31. IN DWORD PrintOption, //Multi-User addition
  32. IN LPWSTR QueueName,
  33. OUT LPWORD JobId
  34. );
  35. DWORD
  36. NwCloseFileAndStartQueueJob(
  37. IN HANDLE handleServer,
  38. IN DWORD QueueId,
  39. IN WORD JobId
  40. );
  41. DWORD
  42. NwRemoveJobFromQueue(
  43. IN HANDLE handleServer,
  44. IN DWORD QueueId,
  45. IN WORD JobId
  46. );
  47. DWORD
  48. NwRemoveAllJobsFromQueue(
  49. IN HANDLE handleServer,
  50. IN DWORD QueueId
  51. );
  52. DWORD
  53. NwReadQueueCurrentStatus(
  54. IN HANDLE handleServer,
  55. IN DWORD QueueId,
  56. OUT LPBYTE QueueStatus,
  57. OUT LPBYTE NumberOfJobs
  58. );
  59. DWORD
  60. NwSetQueueCurrentStatus(
  61. IN HANDLE handleServer,
  62. IN DWORD QueueId,
  63. IN BYTE QueueStatus
  64. );
  65. DWORD
  66. NwGetQueueJobList(
  67. IN HANDLE handleServer,
  68. IN DWORD QueueId,
  69. OUT LPWORD NumberOfJobs,
  70. OUT LPWORD JobIdList
  71. );
  72. DWORD
  73. NwReadQueueJobEntry(
  74. IN HANDLE handleServer,
  75. IN DWORD QueueId,
  76. IN WORD JobId,
  77. OUT JOBTIME TargetExecutionTime,
  78. OUT JOBTIME JobEntryTime,
  79. OUT LPBYTE JobPosition,
  80. OUT LPBYTE JobControlFlags,
  81. OUT LPSTR TextJobDescription,
  82. OUT LPSTR UserName
  83. );
  84. DWORD
  85. NwGetQueueJobsFileSize(
  86. IN HANDLE handleServer,
  87. IN DWORD QueueId,
  88. IN WORD JobId,
  89. OUT LPDWORD FileSize
  90. );
  91. DWORD
  92. NwChangeQueueJobPosition(
  93. IN HANDLE handleServer,
  94. IN DWORD QueueId,
  95. IN WORD JobId,
  96. IN BYTE NewPosition
  97. );
  98. DWORD
  99. NwChangeQueueJobEntry(
  100. IN HANDLE handleServer,
  101. IN DWORD QueueId,
  102. IN WORD JobId,
  103. IN DWORD dwCommand,
  104. IN PNW_JOB_INFO pNwJobInfo
  105. );
  106. DWORD
  107. NwGetQueueJobs(
  108. IN HANDLE handleServer,
  109. IN DWORD QueueId,
  110. IN LPWSTR PrinterName,
  111. IN DWORD FirstJobRequested,
  112. IN DWORD EntriesRequested,
  113. IN DWORD Level,
  114. OUT LPBYTE Buffer,
  115. IN DWORD cbBuf,
  116. OUT LPDWORD BytesNeeded,
  117. OUT LPDWORD Entries
  118. );
  119. DWORD
  120. NwGetQueueJobInfo(
  121. IN HANDLE handleServer,
  122. IN DWORD QueueId,
  123. IN WORD JobId,
  124. IN LPWSTR PrinterName,
  125. IN DWORD Level,
  126. IN OUT LPBYTE *FixedPortion,
  127. IN OUT LPWSTR *EndOfVariableData,
  128. OUT LPDWORD EntrySize
  129. );
  130. #ifndef NOT_USED
  131. DWORD
  132. NwDestroyQueue (
  133. IN HANDLE hServer,
  134. IN DWORD dwQueueId
  135. );
  136. DWORD
  137. NwAssocPServers (
  138. IN HANDLE hServer,
  139. IN LPWSTR pswQueue,
  140. IN LPWSTR pszPServer
  141. );
  142. DWORD
  143. NwCreateQueue (
  144. IN HANDLE hServer,
  145. IN LPWSTR pszQueue,
  146. OUT LPDWORD pQueueId
  147. );
  148. #endif // #ifndef NOT_USED
  149. #endif // _NW_QUEUE_INCLUDED_