Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Copies the external update binaries to an update.
Syntax
HRESULT CopyToCache(
[in] IStringCollection *pFiles,
[in] VARIANT_BOOL ignoreDigests
);
Parameters
pFiles [in]
An IStringCollection interface that contains the strings to be copied to an update.ignoreDigests [in]
If the value of the ignoreDigests parameter is VARIANT_TRUE, Windows Update Agent (WUA) ignores the digest mismatches when WUA copies from the location represented by the pFiles parameter.If the value of ignoreDigests is VARIANT_FALSE, WUA does not ignore the digest mismatches when WUA copies from the location represented by the pFiles parameter.
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
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] |
Header |
Wuapi.h |
IDL |
Wuapi.idl |
Library |
Wuguid.lib |
DLL |
Wuapi.dll |