WdsTransportProviderUserAccessCheck callback function

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

hContent [in]

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

hUserToken [in]

The token of the user whose access should be checked.

pbAccessAllowed [out]

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

Minimum supported client

None supported

Minimum supported server

Windows Server 2008, Windows Server 2003 with SP2 [desktop apps only]

Header

Wdstpdi.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft