Directory Services |
The IADsPrintJobOperations::Pause method halts the processing of the current print job. Call the IADsPrintJobOperations::Resume method to continue the processing.
HRESULT Pause();
This method supports standard return values. For other return values, see ADSI Error Codes.
The following code example shows how this interface may be used.
Dim pqo As IADsPrintQueueOperations Dim pjo As IADsPrintJobOperations On Error GoTo Cleanup Set pqo = GetObject("WinNT://aMachine/aPrinter") For Each pj In pqo.PrintJobs Set pjo = pj If (Hex(pjo.status) = ADS_JOB_PRINTING) Then pjo.Pause End If Next Cleanup: If (Err.Number<>0) Then MsgBox("An error has occurred. " & Err.Number) End If Set pqo = Nothing Set pjo = Nothing
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension
on Windows NT 4.0 SP6a and Windows 95/98/Me.
Header: Declared in Iads.h.