İngilizce dilinde oku

Aracılığıyla paylaş


SrpInheritEnterpriseContext function

Note  Windows Information Protection (WIP) policy can be applied on Windows 10, version 1607.

 

Takes the enterprise attributes from the callerTokenHandle and sets them on the tokenHandle (duplicate of the current process token) and optionally returns the existing thread token. Current process must be either exempt or allowed by the same enterprise policy as the enterprise in the callerTokenHandle.

Syntax

c++
HRESULT WINAPI SrpInheritEnterpriseContext(
  _In_  HANDLE                        callerTokenHandle ,
  _Out_ ptr_result_maybenull_ PHANDLE tokenHandle
);

Parameters

  • callerTokenHandle [in]
    The handle of the caller’s token.

  • tokenHandle [out]
    On success, holds the existing thread token.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 10 [desktop apps only]

Minimum supported server

Windows Server 2016 [desktop apps only]

Header

Srpapi.h

Library

Srpapi.lib

DLL

Srpapi.dll