srpInheritOriginClaim function

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

This function takes the origin attribute if present from the origin token and sets them on a duplicate of the inheriting token, and returns the duplicate token. The caller can then impersonate the returned token. This function has no associated import library. You must use the LoadLibrary and GetProcAddress functions to dynamically link to srpapi.dll.

Syntax


HRESULT WINAPI srpInheritOriginClaim(
  _In_ Handle OriginToken,
  _In_ Handle InheritingToken,
       Handle ResultToken
);

Parameters

OriginToken [in]

Handle to the token which is duplicated and receives the inherited origin attribute. This handle must be opened with the TOKEN_DUPLICATE access right.

InheritingToken [in]

Handle to the token which is duplicated and receives the inherited origin attribute. This handle must be opened with the TOKEN_DUPLICATE access right. 

ResultToken

On success, receives the duplicated token. The caller can impersonate it to perform operations with the inherited origin attribute. The caller takes ownership of this handle and must close it. 

Return value

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

Requirements

Minimum supported client

Windows 10

Minimum supported server

Windows Server 2016 Technical Preview [desktop apps only]

DLL

Srpapi.dll

 

 

Show: