Platform SDK: Active Directory, ADSI, and Directory Services |
The IADsPrintJobOperations::Resume method continues the print job that has been halted by the IADsPrintJobOperations::Pause method.
HRESULT IADsPrintJobOperations::Resume(void);
This method supports the standard return values. For other return values, see ADSI Error Codes.
The following Visual Basic code fragment shows how this method may be used:
Dim pqo As IADsPrintQueueOperations Dim pjo As IADsPrintJobOperations Set pqo = GetObject("WinNT://aMachine/aPrinter") For each pj in pqo.PrintJobs set pjo = pj if (Hex(pjo.status) = ADS_JOB_PAUSED) Then pjo.resume end if Next
For a C++ code snippet, see the Example Code [C++] given in the introductory section of the IADsPrintJobOperations interface.
Windows NT/2000: Requires Windows 2000 (or Windows NT 4.0 with DSClient).
Windows 95/98: Requires Windows 95 or later (with DSClient).
Header: Declared in Iads.h.