jwaadssts.pas 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. {******************************************************************************}
  2. { }
  3. { Active Directory Status Codes API interface Unit for Object Pascal }
  4. { }
  5. { Portions created by Microsoft are Copyright (C) 1995-2001 Microsoft }
  6. { Corporation. All Rights Reserved. }
  7. { }
  8. { The original file is: adssts.h, released June 2000. The original Pascal }
  9. { code is: AdsSts.pas, released December 2000. The initial developer of the }
  10. { Pascal code is Marcel van Brakel (brakelm att chello dott nl). }
  11. { }
  12. { Portions created by Marcel van Brakel are Copyright (C) 1999-2001 }
  13. { Marcel van Brakel. All Rights Reserved. }
  14. { }
  15. { Obtained through: Joint Endeavour of Delphi Innovators (Project JEDI) }
  16. { }
  17. { You may retrieve the latest version of this file at the Project JEDI }
  18. { APILIB home page, located at http://jedi-apilib.sourceforge.net }
  19. { }
  20. { The contents of this file are used with permission, subject to the Mozilla }
  21. { Public License Version 1.1 (the "License"); you may not use this file except }
  22. { in compliance with the License. You may obtain a copy of the License at }
  23. { http://www.mozilla.org/MPL/MPL-1.1.html }
  24. { }
  25. { Software distributed under the License is distributed on an "AS IS" basis, }
  26. { WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for }
  27. { the specific language governing rights and limitations under the License. }
  28. { }
  29. { Alternatively, the contents of this file may be used under the terms of the }
  30. { GNU Lesser General Public License (the "LGPL License"), in which case the }
  31. { provisions of the LGPL License are applicable instead of those above. }
  32. { If you wish to allow use of your version of this file only under the terms }
  33. { of the LGPL License and not to allow others to use your version of this file }
  34. { under the MPL, indicate your decision by deleting the provisions above and }
  35. { replace them with the notice and other provisions required by the LGPL }
  36. { License. If you do not delete the provisions above, a recipient may use }
  37. { your version of this file under either the MPL or the LGPL License. }
  38. { }
  39. { For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html }
  40. { }
  41. {******************************************************************************}
  42. unit JwaAdssts;
  43. {$WEAKPACKAGEUNIT}
  44. {$HPPEMIT ''}
  45. {$HPPEMIT '#include "adssts.h"'}
  46. {$HPPEMIT ''}
  47. {$I jediapilib.inc}
  48. interface
  49. uses
  50. JwaWinNT;
  51. // Contents: Status Codes for ADS objects
  52. const
  53. ADS_PRINTER_PAUSED = $00000001;
  54. {$EXTERNALSYM ADS_PRINTER_PAUSED}
  55. ADS_PRINTER_PENDING_DELETION = $00000002;
  56. {$EXTERNALSYM ADS_PRINTER_PENDING_DELETION}
  57. ADS_PRINTER_ERROR = $00000003;
  58. {$EXTERNALSYM ADS_PRINTER_ERROR}
  59. ADS_PRINTER_PAPER_JAM = $00000004;
  60. {$EXTERNALSYM ADS_PRINTER_PAPER_JAM}
  61. ADS_PRINTER_PAPER_OUT = $00000005;
  62. {$EXTERNALSYM ADS_PRINTER_PAPER_OUT}
  63. ADS_PRINTER_MANUAL_FEED = $00000006;
  64. {$EXTERNALSYM ADS_PRINTER_MANUAL_FEED}
  65. ADS_PRINTER_PAPER_PROBLEM = $00000007;
  66. {$EXTERNALSYM ADS_PRINTER_PAPER_PROBLEM}
  67. ADS_PRINTER_OFFLINE = $00000008;
  68. {$EXTERNALSYM ADS_PRINTER_OFFLINE}
  69. ADS_PRINTER_IO_ACTIVE = $00000100;
  70. {$EXTERNALSYM ADS_PRINTER_IO_ACTIVE}
  71. ADS_PRINTER_BUSY = $00000200;
  72. {$EXTERNALSYM ADS_PRINTER_BUSY}
  73. ADS_PRINTER_PRINTING = $00000400;
  74. {$EXTERNALSYM ADS_PRINTER_PRINTING}
  75. ADS_PRINTER_OUTPUT_BIN_FULL = $00000800;
  76. {$EXTERNALSYM ADS_PRINTER_OUTPUT_BIN_FULL}
  77. ADS_PRINTER_NOT_AVAILABLE = $00001000;
  78. {$EXTERNALSYM ADS_PRINTER_NOT_AVAILABLE}
  79. ADS_PRINTER_WAITING = $00002000;
  80. {$EXTERNALSYM ADS_PRINTER_WAITING}
  81. ADS_PRINTER_PROCESSING = $00004000;
  82. {$EXTERNALSYM ADS_PRINTER_PROCESSING}
  83. ADS_PRINTER_INITIALIZING = $00008000;
  84. {$EXTERNALSYM ADS_PRINTER_INITIALIZING}
  85. ADS_PRINTER_WARMING_UP = $00010000;
  86. {$EXTERNALSYM ADS_PRINTER_WARMING_UP}
  87. ADS_PRINTER_TONER_LOW = $00020000;
  88. {$EXTERNALSYM ADS_PRINTER_TONER_LOW}
  89. ADS_PRINTER_NO_TONER = $00040000;
  90. {$EXTERNALSYM ADS_PRINTER_NO_TONER}
  91. ADS_PRINTER_PAGE_PUNT = $00080000;
  92. {$EXTERNALSYM ADS_PRINTER_PAGE_PUNT}
  93. ADS_PRINTER_USER_INTERVENTION = $00100000;
  94. {$EXTERNALSYM ADS_PRINTER_USER_INTERVENTION}
  95. ADS_PRINTER_OUT_OF_MEMORY = $00200000;
  96. {$EXTERNALSYM ADS_PRINTER_OUT_OF_MEMORY}
  97. ADS_PRINTER_DOOR_OPEN = $00400000;
  98. {$EXTERNALSYM ADS_PRINTER_DOOR_OPEN}
  99. ADS_PRINTER_SERVER_UNKNOWN = $00800000;
  100. {$EXTERNALSYM ADS_PRINTER_SERVER_UNKNOWN}
  101. ADS_PRINTER_POWER_SAVE = $01000000;
  102. {$EXTERNALSYM ADS_PRINTER_POWER_SAVE}
  103. //
  104. // job status values
  105. //
  106. ADS_JOB_PAUSED = $00000001;
  107. {$EXTERNALSYM ADS_JOB_PAUSED}
  108. ADS_JOB_ERROR = $00000002;
  109. {$EXTERNALSYM ADS_JOB_ERROR}
  110. ADS_JOB_DELETING = $00000004;
  111. {$EXTERNALSYM ADS_JOB_DELETING}
  112. ADS_JOB_SPOOLING = $00000008;
  113. {$EXTERNALSYM ADS_JOB_SPOOLING}
  114. ADS_JOB_PRINTING = $00000010;
  115. {$EXTERNALSYM ADS_JOB_PRINTING}
  116. ADS_JOB_OFFLINE = $00000020;
  117. {$EXTERNALSYM ADS_JOB_OFFLINE}
  118. ADS_JOB_PAPEROUT = $00000040;
  119. {$EXTERNALSYM ADS_JOB_PAPEROUT}
  120. ADS_JOB_PRINTED = $00000080;
  121. {$EXTERNALSYM ADS_JOB_PRINTED}
  122. ADS_JOB_DELETED = $00000100;
  123. {$EXTERNALSYM ADS_JOB_DELETED}
  124. //
  125. // service status values
  126. //
  127. ADS_SERVICE_STOPPED = $00000001;
  128. {$EXTERNALSYM ADS_SERVICE_STOPPED}
  129. ADS_SERVICE_START_PENDING = $00000002;
  130. {$EXTERNALSYM ADS_SERVICE_START_PENDING}
  131. ADS_SERVICE_STOP_PENDING = $00000003;
  132. {$EXTERNALSYM ADS_SERVICE_STOP_PENDING}
  133. ADS_SERVICE_RUNNING = $00000004;
  134. {$EXTERNALSYM ADS_SERVICE_RUNNING}
  135. ADS_SERVICE_CONTINUE_PENDING = $00000005;
  136. {$EXTERNALSYM ADS_SERVICE_CONTINUE_PENDING}
  137. ADS_SERVICE_PAUSE_PENDING = $00000006;
  138. {$EXTERNALSYM ADS_SERVICE_PAUSE_PENDING}
  139. ADS_SERVICE_PAUSED = $00000007;
  140. {$EXTERNALSYM ADS_SERVICE_PAUSED}
  141. ADS_SERVICE_ERROR = $00000008;
  142. {$EXTERNALSYM ADS_SERVICE_ERROR}
  143. //---------------------------------------------------------------------
  144. //
  145. // Service Type Valid Values
  146. //
  147. ADS_SERVICE_OWN_PROCESS = $00000010;
  148. {$EXTERNALSYM ADS_SERVICE_OWN_PROCESS}
  149. ADS_SERVICE_SHARE_PROCESS = $00000020;
  150. {$EXTERNALSYM ADS_SERVICE_SHARE_PROCESS}
  151. ADS_SERVICE_KERNEL_DRIVER = $00000001;
  152. {$EXTERNALSYM ADS_SERVICE_KERNEL_DRIVER}
  153. ADS_SERVICE_FILE_SYSTEM_DRIVER = $00000002;
  154. {$EXTERNALSYM ADS_SERVICE_FILE_SYSTEM_DRIVER}
  155. //
  156. // Start Type Valid Values
  157. //
  158. ADS_SERVICE_BOOT_START = SERVICE_BOOT_START;
  159. {$EXTERNALSYM ADS_SERVICE_BOOT_START}
  160. ADS_SERVICE_SYSTEM_START = SERVICE_SYSTEM_START;
  161. {$EXTERNALSYM ADS_SERVICE_SYSTEM_START}
  162. ADS_SERVICE_AUTO_START = SERVICE_AUTO_START;
  163. {$EXTERNALSYM ADS_SERVICE_AUTO_START}
  164. ADS_SERVICE_DEMAND_START = SERVICE_DEMAND_START;
  165. {$EXTERNALSYM ADS_SERVICE_DEMAND_START}
  166. ADS_SERVICE_DISABLED = SERVICE_DISABLED;
  167. {$EXTERNALSYM ADS_SERVICE_DISABLED}
  168. //
  169. // Error Control Values
  170. //
  171. ADS_SERVICE_ERROR_IGNORE = 0;
  172. {$EXTERNALSYM ADS_SERVICE_ERROR_IGNORE}
  173. ADS_SERVICE_ERROR_NORMAL = 1;
  174. {$EXTERNALSYM ADS_SERVICE_ERROR_NORMAL}
  175. ADS_SERVICE_ERROR_SEVERE = 2;
  176. {$EXTERNALSYM ADS_SERVICE_ERROR_SEVERE}
  177. ADS_SERVICE_ERROR_CRITICAL = 3;
  178. {$EXTERNALSYM ADS_SERVICE_ERROR_CRITICAL}
  179. implementation
  180. end.