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 contents of an update to a specified path.
Syntax
HRESULT CopyFromCache(
[in] BSTR path,
[in] VARIANT_BOOL toExtractCabFiles
);
Parameters
[in] path
The path of the location where the update contents are to be copied.
[in] toExtractCabFiles
Reserved for future use.
You must set toExtractCabFiles to VARIANT_TRUE or VARIANT_FALSE.
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 |
---|---|
|
This method cannot be called from a remote computer. |
|
A parameter value is invalid. |
|
The computer could not access the update site.
(This method returns WU_E_INVALID_OPERATION if the object that is implementing the interface has been locked down.) |
|
The Microsoft Software License Terms are not accepted. |
|
The files are not downloaded. |
|
The file hash verification failed. |
|
A file or directory could not be located. |
|
A file or directory could not be located. |
Remarks
To copy bundled updates, call this method on the individual updates that are bundled in this update.
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 |