jwaadssts.pas 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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. // $Id: JwaAdssts.pas,v 1.6 2005/09/03 14:27:47 marquardt Exp $
  43. unit JwaAdssts;
  44. {$WEAKPACKAGEUNIT}
  45. {$HPPEMIT ''}
  46. {$HPPEMIT '#include "adssts.h"'}
  47. {$HPPEMIT ''}
  48. {$I jediapilib.inc}
  49. interface
  50. uses
  51. JwaWindows;
  52. // Contents: Status Codes for ADS objects
  53. const
  54. ADS_PRINTER_PAUSED = $00000001;
  55. {$EXTERNALSYM ADS_PRINTER_PAUSED}
  56. ADS_PRINTER_PENDING_DELETION = $00000002;
  57. {$EXTERNALSYM ADS_PRINTER_PENDING_DELETION}
  58. ADS_PRINTER_ERROR = $00000003;
  59. {$EXTERNALSYM ADS_PRINTER_ERROR}
  60. ADS_PRINTER_PAPER_JAM = $00000004;
  61. {$EXTERNALSYM ADS_PRINTER_PAPER_JAM}
  62. ADS_PRINTER_PAPER_OUT = $00000005;
  63. {$EXTERNALSYM ADS_PRINTER_PAPER_OUT}
  64. ADS_PRINTER_MANUAL_FEED = $00000006;
  65. {$EXTERNALSYM ADS_PRINTER_MANUAL_FEED}
  66. ADS_PRINTER_PAPER_PROBLEM = $00000007;
  67. {$EXTERNALSYM ADS_PRINTER_PAPER_PROBLEM}
  68. ADS_PRINTER_OFFLINE = $00000008;
  69. {$EXTERNALSYM ADS_PRINTER_OFFLINE}
  70. ADS_PRINTER_IO_ACTIVE = $00000100;
  71. {$EXTERNALSYM ADS_PRINTER_IO_ACTIVE}
  72. ADS_PRINTER_BUSY = $00000200;
  73. {$EXTERNALSYM ADS_PRINTER_BUSY}
  74. ADS_PRINTER_PRINTING = $00000400;
  75. {$EXTERNALSYM ADS_PRINTER_PRINTING}
  76. ADS_PRINTER_OUTPUT_BIN_FULL = $00000800;
  77. {$EXTERNALSYM ADS_PRINTER_OUTPUT_BIN_FULL}
  78. ADS_PRINTER_NOT_AVAILABLE = $00001000;
  79. {$EXTERNALSYM ADS_PRINTER_NOT_AVAILABLE}
  80. ADS_PRINTER_WAITING = $00002000;
  81. {$EXTERNALSYM ADS_PRINTER_WAITING}
  82. ADS_PRINTER_PROCESSING = $00004000;
  83. {$EXTERNALSYM ADS_PRINTER_PROCESSING}
  84. ADS_PRINTER_INITIALIZING = $00008000;
  85. {$EXTERNALSYM ADS_PRINTER_INITIALIZING}
  86. ADS_PRINTER_WARMING_UP = $00010000;
  87. {$EXTERNALSYM ADS_PRINTER_WARMING_UP}
  88. ADS_PRINTER_TONER_LOW = $00020000;
  89. {$EXTERNALSYM ADS_PRINTER_TONER_LOW}
  90. ADS_PRINTER_NO_TONER = $00040000;
  91. {$EXTERNALSYM ADS_PRINTER_NO_TONER}
  92. ADS_PRINTER_PAGE_PUNT = $00080000;
  93. {$EXTERNALSYM ADS_PRINTER_PAGE_PUNT}
  94. ADS_PRINTER_USER_INTERVENTION = $00100000;
  95. {$EXTERNALSYM ADS_PRINTER_USER_INTERVENTION}
  96. ADS_PRINTER_OUT_OF_MEMORY = $00200000;
  97. {$EXTERNALSYM ADS_PRINTER_OUT_OF_MEMORY}
  98. ADS_PRINTER_DOOR_OPEN = $00400000;
  99. {$EXTERNALSYM ADS_PRINTER_DOOR_OPEN}
  100. ADS_PRINTER_SERVER_UNKNOWN = $00800000;
  101. {$EXTERNALSYM ADS_PRINTER_SERVER_UNKNOWN}
  102. ADS_PRINTER_POWER_SAVE = $01000000;
  103. {$EXTERNALSYM ADS_PRINTER_POWER_SAVE}
  104. //
  105. // job status values
  106. //
  107. ADS_JOB_PAUSED = $00000001;
  108. {$EXTERNALSYM ADS_JOB_PAUSED}
  109. ADS_JOB_ERROR = $00000002;
  110. {$EXTERNALSYM ADS_JOB_ERROR}
  111. ADS_JOB_DELETING = $00000004;
  112. {$EXTERNALSYM ADS_JOB_DELETING}
  113. ADS_JOB_SPOOLING = $00000008;
  114. {$EXTERNALSYM ADS_JOB_SPOOLING}
  115. ADS_JOB_PRINTING = $00000010;
  116. {$EXTERNALSYM ADS_JOB_PRINTING}
  117. ADS_JOB_OFFLINE = $00000020;
  118. {$EXTERNALSYM ADS_JOB_OFFLINE}
  119. ADS_JOB_PAPEROUT = $00000040;
  120. {$EXTERNALSYM ADS_JOB_PAPEROUT}
  121. ADS_JOB_PRINTED = $00000080;
  122. {$EXTERNALSYM ADS_JOB_PRINTED}
  123. ADS_JOB_DELETED = $00000100;
  124. {$EXTERNALSYM ADS_JOB_DELETED}
  125. //
  126. // service status values
  127. //
  128. ADS_SERVICE_STOPPED = $00000001;
  129. {$EXTERNALSYM ADS_SERVICE_STOPPED}
  130. ADS_SERVICE_START_PENDING = $00000002;
  131. {$EXTERNALSYM ADS_SERVICE_START_PENDING}
  132. ADS_SERVICE_STOP_PENDING = $00000003;
  133. {$EXTERNALSYM ADS_SERVICE_STOP_PENDING}
  134. ADS_SERVICE_RUNNING = $00000004;
  135. {$EXTERNALSYM ADS_SERVICE_RUNNING}
  136. ADS_SERVICE_CONTINUE_PENDING = $00000005;
  137. {$EXTERNALSYM ADS_SERVICE_CONTINUE_PENDING}
  138. ADS_SERVICE_PAUSE_PENDING = $00000006;
  139. {$EXTERNALSYM ADS_SERVICE_PAUSE_PENDING}
  140. ADS_SERVICE_PAUSED = $00000007;
  141. {$EXTERNALSYM ADS_SERVICE_PAUSED}
  142. ADS_SERVICE_ERROR = $00000008;
  143. {$EXTERNALSYM ADS_SERVICE_ERROR}
  144. //---------------------------------------------------------------------
  145. //
  146. // Service Type Valid Values
  147. //
  148. ADS_SERVICE_OWN_PROCESS = $00000010;
  149. {$EXTERNALSYM ADS_SERVICE_OWN_PROCESS}
  150. ADS_SERVICE_SHARE_PROCESS = $00000020;
  151. {$EXTERNALSYM ADS_SERVICE_SHARE_PROCESS}
  152. ADS_SERVICE_KERNEL_DRIVER = $00000001;
  153. {$EXTERNALSYM ADS_SERVICE_KERNEL_DRIVER}
  154. ADS_SERVICE_FILE_SYSTEM_DRIVER = $00000002;
  155. {$EXTERNALSYM ADS_SERVICE_FILE_SYSTEM_DRIVER}
  156. //
  157. // Start Type Valid Values
  158. //
  159. ADS_SERVICE_BOOT_START = SERVICE_BOOT_START;
  160. {$EXTERNALSYM ADS_SERVICE_BOOT_START}
  161. ADS_SERVICE_SYSTEM_START = SERVICE_SYSTEM_START;
  162. {$EXTERNALSYM ADS_SERVICE_SYSTEM_START}
  163. ADS_SERVICE_AUTO_START = SERVICE_AUTO_START;
  164. {$EXTERNALSYM ADS_SERVICE_AUTO_START}
  165. ADS_SERVICE_DEMAND_START = SERVICE_DEMAND_START;
  166. {$EXTERNALSYM ADS_SERVICE_DEMAND_START}
  167. ADS_SERVICE_DISABLED = SERVICE_DISABLED;
  168. {$EXTERNALSYM ADS_SERVICE_DISABLED}
  169. //
  170. // Error Control Values
  171. //
  172. ADS_SERVICE_ERROR_IGNORE = 0;
  173. {$EXTERNALSYM ADS_SERVICE_ERROR_IGNORE}
  174. ADS_SERVICE_ERROR_NORMAL = 1;
  175. {$EXTERNALSYM ADS_SERVICE_ERROR_NORMAL}
  176. ADS_SERVICE_ERROR_SEVERE = 2;
  177. {$EXTERNALSYM ADS_SERVICE_ERROR_SEVERE}
  178. ADS_SERVICE_ERROR_CRITICAL = 3;
  179. {$EXTERNALSYM ADS_SERVICE_ERROR_CRITICAL}
  180. implementation
  181. end.