Directory Services


The IADsPrintJobOperations::Resume method continues the print job halted by the IADsPrintJobOperations::Pause method.

HRESULT Resume();


This method has no parameters.

Return Values

This method supports the standard return values. For more information about other return values, see ADSI Error Codes.

Example Code [Visual Basic]

The following code example shows how this method 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_PAUSED) Then
	End If
	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.

See Also

IADsPrintJobOperations, IADsPrintJobOperations::Pause