Reputation: 1502
In earlier versions of Windows this paused automatic updates:
IAutomaticUpdates *automaticUpdates = 0;
HRESULT hr = CoCreateInstance(CLSID_AutomaticUpdates, NULL, CLSCTX_ALL, IID_IAutomaticUpdates, (void**)&automaticUpdates);
if (automaticUpdates != NULL)
{
hr = automaticUpdates->Pause();
}
According to MSDN, "IAutomaticUpdates::Pause is no longer supported. Starting with Windows 10 Insider Preview calls to Pause always return S_OK, but do nothing." IAutomaticUpdates::Pause
We don't want Windows Update interrupting our program. Does anyone know of a workaround?
Upvotes: 0
Views: 271
Reputation: 15365
With Windows 10 a bunch of settings are no longer available. Here the settings of the update service are now no longer free to set by the user.
Because you need administrative rights to even call Pause, you may stop the Windows Update Service at all. But this is a very harsh way to prevent the update service to interrupt you. I wouldn't recommend this a a real practical solution for me. But it may help you.
Upvotes: 1