IWindowsDriverUpdate2::CopyToCache method (wuapi.h)

Copies the external update binaries to an update.

Syntax

HRESULT CopyToCache(
  [in] IStringCollection *pFiles
);

Parameters

[in] pFiles

An IStringCollection interface that contains the strings to be copied to an update.

Return value

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.
E_INVALIDARG
A parameter value is invalid.
WU_E_INVALID_OPERATION
The computer could not access the update site.

Remarks

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

Requirements

Requirement Value
Minimum supported client Windows XP, Windows 2000 Professional with SP3 [desktop apps only]
Minimum supported server Windows Server 2003, Windows 2000 Server with SP3 [desktop apps only]
Target Platform Windows
Header wuapi.h
Library Wuguid.lib
DLL Wuapi.dll

See also

IWindowsDriverUpdate2