WdsTransportProviderUserAccessCheck function (wdstpdi.h)

Specifies access to a content stream based on a user's token.

Syntax

HRESULT WDSTRANSPORTPROVIDERAPI WdsTransportProviderUserAccessCheck(
  [in]  HANDLE hContent,
  [in]  HANDLE hUserToken,
  [out] PBOOL  pbAccessAllowed
);

Parameters

[in] hContent

Handle to an open content stream to be read. This is the handle return by the WdsTransportProviderOpenContent callback.

[in] hUserToken

The token of the user whose access should be checked.

[out] pbAccessAllowed

Pointer to a boolean value. The content provider should set this value to TRUE if it allows the user access to the content stream. The content provider should set this value to FALSE if it does not allow the user access to the content stream.

Return value

If the function succeeds, the return is S_OK.

Remarks

This callback is required.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008, Windows Server 2003 with SP2 [desktop apps only]
Target Platform Windows
Header wdstpdi.h