Skip to content

Latest commit

 

History

History
155 lines (128 loc) · 4.16 KB

nf-wuapi-iautomaticupdates-pause.md

File metadata and controls

155 lines (128 loc) · 4.16 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:wuapi.IAutomaticUpdates.Pause
IAutomaticUpdates::Pause (wuapi.h)
Pauses automatic updates.
IAutomaticUpdates interface [Windows Update Agent]
Pause method
IAutomaticUpdates.Pause
IAutomaticUpdates::Pause
Pause
Pause method [Windows Update Agent]
Pause method [Windows Update Agent]
IAutomaticUpdates interface
wua.iautomaticupdates_pause
wuapi/IAutomaticUpdates::Pause
wua\iautomaticupdates_pause.htm
wua
42985fdf-b3b3-43f0-addb-478298bd8ebd
12/05/2018
IAutomaticUpdates interface [Windows Update Agent],Pause method, IAutomaticUpdates.Pause, IAutomaticUpdates::Pause, Pause, Pause method [Windows Update Agent], Pause method [Windows Update Agent],IAutomaticUpdates interface, wua.iautomaticupdates_pause, wuapi/IAutomaticUpdates::Pause
wuapi.h
Windows
Windows Vista [desktop apps only]
Windows Server 2003 [desktop apps only]
Wuapi.idl
Wuguid.lib
Wuapi.dll
Windows
19H1
IAutomaticUpdates::Pause
wuapi/IAutomaticUpdates::Pause
c++
APIRef
kbSyntax
COM
Wuapi.dll
IAutomaticUpdates.Pause

IAutomaticUpdates::Pause

-description

[IAutomaticUpdates::Pause is no longer supported. Starting with Windows 10 calls to Pause always return S_OK, but do nothing.]

Pauses automatic updates.

-returns

Returns S_OK if successful. Otherwise, returns a COM or Windows error code.

This method can also return the following error codes.

Return code Description
E_ACCESSDENIED
This method cannot be called from a remote computer.
WU_E_INVALID_OPERATION
The computer could not access the update site.
WU_E_AU_NOSERVICE
Automatic Updates is not enabled.
WU_E_AU_PAUSED
Automatic Updates is paused.
WU_E_LEGACYSERVER
You cannot search for updates if the following conditions are true:

-remarks

This method requires administrator permissions.

Automatic Updates can be paused for only eight hours. This limit varies in different binary versions. Callers should call the Resume method after calling Pause as soon as they no longer need to pause automatic updating.

This method returns WU_E_INVALID_OPERATION if the object that is implementing the interface is locked down.

This method returns WU_E_AU_NOSERVICE if Automatic Updates is disabled, initializing, uninitializing, or not configured.

-see-also

IAutomaticUpdates

IAutomaticUpdates.Resume