' ########################################################################################
' Microsoft Windows
' File: Adssts.inc
' Contents: Status Codes for ADS objects
' Copyright (c) 2011 Jos? Roca
' Portions Copyright (c) Microsoft Corporation.
' All Rights Reserved.
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
' ########################################################################################
#IF NOT %DEF(PBX_Adssts_PBI)
#DEFINE PBX_Adssts_PBI
%EQUATE `ADSSTS_INC = 1
#INCLUDE ONCE "Core/Windows.inc"
'//
'// printer status values
'//
%EQUATE `ADS_PRINTER_PAUSED = &H00000001
%EQUATE `ADS_PRINTER_PENDING_DELETION = &H00000002
%EQUATE `ADS_PRINTER_ERROR = &H00000003
%EQUATE `ADS_PRINTER_PAPER_JAM = &H00000004
%EQUATE `ADS_PRINTER_PAPER_OUT = &H00000005
%EQUATE `ADS_PRINTER_MANUAL_FEED = &H00000006
%EQUATE `ADS_PRINTER_PAPER_PROBLEM = &H00000007
%EQUATE `ADS_PRINTER_OFFLINE = &H00000008
%EQUATE `ADS_PRINTER_IO_ACTIVE = &H00000100
%EQUATE `ADS_PRINTER_BUSY = &H00000200
%EQUATE `ADS_PRINTER_PRINTING = &H00000400
%EQUATE `ADS_PRINTER_OUTPUT_BIN_FULL = &H00000800
%EQUATE `ADS_PRINTER_NOT_AVAILABLE = &H00001000
%EQUATE `ADS_PRINTER_WAITING = &H00002000
%EQUATE `ADS_PRINTER_PROCESSING = &H00004000
%EQUATE `ADS_PRINTER_INITIALIZING = &H00008000
%EQUATE `ADS_PRINTER_WARMING_UP = &H00010000
%EQUATE `ADS_PRINTER_TONER_LOW = &H00020000
%EQUATE `ADS_PRINTER_NO_TONER = &H00040000
%EQUATE `ADS_PRINTER_PAGE_PUNT = &H00080000
%EQUATE `ADS_PRINTER_USER_INTERVENTION = &H00100000
%EQUATE `ADS_PRINTER_OUT_OF_MEMORY = &H00200000
%EQUATE `ADS_PRINTER_DOOR_OPEN = &H00400000
%EQUATE `ADS_PRINTER_SERVER_UNKNOWN = &H00800000
%EQUATE `ADS_PRINTER_POWER_SAVE = &H01000000
'//
'// job status values
'//
%EQUATE `ADS_JOB_PAUSED = &H00000001
%EQUATE `ADS_JOB_ERROR = &H00000002
%EQUATE `ADS_JOB_DELETING = &H00000004
%EQUATE `ADS_JOB_SPOOLING = &H00000008
%EQUATE `ADS_JOB_PRINTING = &H00000010
%EQUATE `ADS_JOB_OFFLINE = &H00000020
%EQUATE `ADS_JOB_PAPEROUT = &H00000040
%EQUATE `ADS_JOB_PRINTED = &H00000080
%EQUATE `ADS_JOB_DELETED = &H00000100
'//
'// service status values
'//
%EQUATE `ADS_SERVICE_STOPPED = &H00000001
%EQUATE `ADS_SERVICE_START_PENDING = &H00000002
%EQUATE `ADS_SERVICE_STOP_PENDING = &H00000003
%EQUATE `ADS_SERVICE_RUNNING = &H00000004
%EQUATE `ADS_SERVICE_CONTINUE_PENDING = &H00000005
%EQUATE `ADS_SERVICE_PAUSE_PENDING = &H00000006
%EQUATE `ADS_SERVICE_PAUSED = &H00000007
%EQUATE `ADS_SERVICE_ERROR = &H00000008
'//---------------------------------------------------------------------
'//
'// Service Type Valid Values
'//
%EQUATE `ADS_SERVICE_OWN_PROCESS = &H00000010
%EQUATE `ADS_SERVICE_SHARE_PROCESS = &H00000020
%EQUATE `ADS_SERVICE_KERNEL_DRIVER = &H00000001
%EQUATE `ADS_SERVICE_FILE_SYSTEM_DRIVER = &H00000002
'//
'// Start Type Valid Values
'//
%EQUATE `ADS_SERVICE_BOOT_START = %SERVICE_BOOT_START
%EQUATE `ADS_SERVICE_SYSTEM_START = %SERVICE_SYSTEM_START
%EQUATE `ADS_SERVICE_AUTO_START = %SERVICE_AUTO_START
%EQUATE `ADS_SERVICE_DEMAND_START = %SERVICE_DEMAND_START
%EQUATE `ADS_SERVICE_DISABLED = %SERVICE_DISABLED
'//
'// Error Control Values
'//
%EQUATE `ADS_SERVICE_ERROR_IGNORE = 0
%EQUATE `ADS_SERVICE_ERROR_NORMAL = 1
%EQUATE `ADS_SERVICE_ERROR_SEVERE = 2
%EQUATE `ADS_SERVICE_ERROR_CRITICAL = 3
#ENDIF
