WdsTransportProviderReadContent callback function

Reads content from an open content stream.

Syntax


HRESULT WDSTRANSPORTPROVIDERAPI WdsTransportProviderReadContent(
  _In_ HANDLE          hContent,
  _In_ PVOID           pBuffer,
  _In_ ULONG           ulBytesToRead,
  _In_ PULARGE_INTEGER pContentOffset,
  _In_ PVOID           pvUserData
);

Parameters

hContent [in]

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

pBuffer [in]

Pointer to location to receive read content.

ulBytesToRead [in]

The size in bytes of the buffer at the location specified by the pBuffer parameter.

pContentOffset [in]

The offset into the content stream specified by hContent from which to start reading.

pvUserData [in]

User specified data passed to the callback function.

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: