Platform SDK: Active Directory, ADSI, and Directory Services |
The IADsPrintQueueOperations::Resume method resumes the processing of the print jobs in the print queue that has previously been suspended.
HRESULT IADsPrintQueueOperations::Resume(void);
This method supports the standard return values. For other return values see the ADSI Error Codes.
The following Visual Basic code fragment resumes the operation of a printer.
Dim pqo As IADsPrintQueueOperations Set pqo = GetObject("WinNT://aMachine/aPrinter") pqo.Resume
The following C++ code snippet resumes the operation of a printer.
IADsPrintQueueOperations *pqo; HRESULT hr = ADsGetObject(L"WinNT://aMachine/aPrinter", IID_IADsPrintQueueOperations, (void**)&pqo) hr = pqo->Resume(); hr = pqo->Release();
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.