Share via


IBackgroundCopyJob4::GetOwnerElevationState method

Gets a value that determines if the token of the owner was elevated at the time they created or took ownership of the job.

Syntax

HRESULT GetOwnerElevationState(
  [out] BOOL *pElevated
);

Parameters

  • pElevated [out]
    Is TRUE if the token of the owner was elevated at the time they created or took ownership of the job; otherwise, FALSE.

Return value

The method returns the following return values.

Return code Description
S_OK

Success

 

Remarks

Note that if the job was created with an elevated token, all subsequent updates to the job must be done with an elevated token.

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_IBackgroundCopyJob4 is defined as 659cdeae-489e-11d9-a9cd-000d56965251

See also

IBackgroundCopyJob4