WdsTransportProviderReadContent function (wdstpdi.h)
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
[in] hContent
Handle to an open content stream to be read. This is the handle return by the WdsTransportProviderOpenContent callback.
[in] pBuffer
Pointer to location to receive read content.
[in] ulBytesToRead
The size in bytes of the buffer at the location specified by the pBuffer parameter.
[in] pContentOffset
The offset into the content stream specified by hContent from which to start reading.
[in] pvUserData
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
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 |