download

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 6 Imported by: 1

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL