Share via


IBackgroundCopyJob2 interface

Use the IBackgroundCopyJob2 interface to retrieve reply data from an upload-reply job, determine the progress of the reply data transfer to the client, request command line execution, and provide credentials for proxy and remote server authentication requests.

The IBackgroundCopyJob2 interface inherits from the IBackgroundCopyJob interface.

To get an IBackgroundCopyJob2 interface pointer, call the IBackgroundCopyJob::QueryInterface method using __uuidof(IBackgroundCopyJob2) for the interface identifier. Use the IBackgroundCopyJob2 interface pointer to call both the IBackgroundCopyJob and IBackgroundCopyJob2 methods.

Members

The IBackgroundCopyJob2 interface inherits from IBackgroundCopyJob. IBackgroundCopyJob2 also has these types of members:

  • Methods

Methods

The IBackgroundCopyJob2 interface has these methods.

Method Description
GetNotifyCmdLine

Retrieves the program that is executed when the job enters the error or transferred state.

GetReplyData

Retrieves an in-memory copy of the reply data.

GetReplyFileName

Retrieves the name of the file that contains the reply data.

GetReplyProgress

Retrieves progress information that indicates how many bytes of the reply file have been downloaded to the client.

RemoveCredentials

Removes credentials set by the SetCredentials method.

SetCredentials

Specifies the credentials to use for a proxy or server user authentication.

SetNotifyCmdLine

Specifies a program to execute when the job enters the error or transferred state.

SetReplyFileName

Specifies the name of the file to contain the reply data of an upload-reply job.

 

Requirements

Minimum supported client

Windows 10, version 1709 [desktop apps only]

Minimum supported server

Windows Server 2016 [desktop apps only]

Header

Deliveryoptimization.h

IDL

DeliveryOptimization.idl

Library

Dosvc.lib

DLL

Dosvc.dll

IID

IID_IBackgroundCopyJob2 is defined as 54B50739-686F-45EB-9DFF-D6A9A0FAA9AF

See also

IBackgroundCopyJob