大网数据广告活动
域与目录服务

IADsPrintQueueOperations Property Methods (Iads.h)

· 52CE 我爱测

The property methods of the IADsPrintQueueOperations interface read and write the properties listed in the following list. For more information about property methods, see Interface Property Methods.

The property methods of the IADsPrintQueueOperations interface read and write the properties listed in the following list. For more information about property methods, see Interface Property Methods.

Properties

Status

Current status of the print queue operations. The valid status code values are listed in the following list.

ADS_PRINTER_PAUSED (0x00000001)

ADS_PRINTER_PENDING_DELETION (0x00000002)

ADS_PRINTER_ERROR (0x00000003)

ADS_PRINTER_PAPER_JAM (0x00000004)

ADS_PRINTER_PAPER_OUT (0x00000005)

ADS_PRINTER_MANUAL_FEED (0x00000006)

ADS_PRINTER_PAPER_PROBLEM (0x00000007)

ADS_PRINTER_OFFLINE (0x00000008)

ADS_PRINTER_IO_ACTIVE (0x00000100)

ADS_PRINTER_BUSY (0x00000200)

ADS_PRINTER_PRINTING (0x00000400)

ADS_PRINTER_OUTPUT_BIN_FULL (0x00000800)

ADS_PRINTER_NOT_AVAILABLE (0x00001000)

ADS_PRINTER_WAITING (0x00002000)

ADS_PRINTER_PROCESSING (0x00004000)

ADS_PRINTER_INITIALIZING (0x00008000)

ADS_PRINTER_WARMING_UP (0x00010000)

ADS_PRINTER_TONER_LOW (0x00020000)

ADS_PRINTER_NO_TONER (0x00040000)

ADS_PRINTER_PAGE_PUNT (0x00080000)

ADS_PRINTER_USER_INTERVENTION (0x00100000)

ADS_PRINTER_OUT_OF_MEMORY (0x00200000)

ADS_PRINTER_DOOR_OPEN (0x00400000)

ADS_PRINTER_SERVER_UNKNOWN (0x00800000)

ADS_PRINTER_POWER_SAVE (0x01000000)

Access type: Read/write

Scripting data type: LONG

// C++ method syntax
HRESULT get_Name(
  [out] LONG* pbstrName
);
HRESULT put_Name(
  [in] LONG bstrName
);

Examples

The following Visual Basic code example verifies that a printer is jammed.

Dim pqo As IADsPrintQueueOperations
Set pqo = GetObject("WinNT://aMachine/aPrinter")
If pqo.Status = ADS_PRINTER_PAPER_JAM Then
MsgBox "Your printer is jammed."
End If

The following C++ code example verifies that a printer is jammed.

IADsPrintQueueOperations *pqo;
HRESULT hr = ADsGetObject(L"WinNT://aMachine/aPrinter",
IID_IADsPrintQueueOperations,
(void**)&pqo)
long status;
hr = pqo->get_Status(&status);
if(status = ADS_PRINTER_PAPER_JAM) {
printf("Your printer is jammed.\n");
}
hr = pqo->Release();

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Header Iads.h
DLL Activeds.dll
IID IID_IADsPrintQueueOperations is defined as 124BE5C0-156E-11CF-A986-00AA006BC149

See also

IADsPrintQueue

IADsPrintQueueOperations

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。