Documentation ¶
Overview ¶
Package download handels downloading updates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
type Downloader struct { IUpdateDownloader *ole.IDispatch IDownloadResult *ole.IDispatch }
Downloader represents an update download interface. https://docs.microsoft.com/en-us/windows/desktop/api/wuapi/nn-wuapi-iupdatedownloader
func NewDownloader ¶
func NewDownloader(us *session.UpdateSession, uc *updatecollection.Collection) (*Downloader, error)
NewDownloader creates an update download interface with a specified update collection.
func (*Downloader) Close ¶
func (d *Downloader) Close()
Close turns down any open download sessions.
func (*Downloader) Download ¶
func (d *Downloader) Download() error
Download will download the requested updates.
func (*Downloader) ResultCode ¶
func (d *Downloader) ResultCode() (int, error)
ResultCode Gets an OperationResultCode value that specifies the result of an operation on an update.
Click to show internal directories.
Click to hide internal directories.