IPortableDeviceUnitsStream interface
The IPortableDeviceUnitsStream interface provides a way to operate, or seek, on a stream by using alternate units, such as frames or milliseconds.
Members
The IPortableDeviceUnitsStream interface inherits from the IUnknown interface. IPortableDeviceUnitsStream also has these types of members:
Methods
The IPortableDeviceUnitsStream interface has these methods.
| Method | Description |
|---|---|
| IPortableDeviceUnitsStream::SeekInUnits |
The SeekInUnits method performs a seek on a stream, based on alternate units. |
Examples
The following code example shows how to retrieve cached data from the driver by using IPortableDeviceUnitsStream.
Example: // Retrieve an IStream CComPtr<IPortableDeviceResources> pResources; ULONG cbOptimal; CComPtr<IStream> pStream; HRESULT hr = pResources ->GetStream(L”o1”, WPD_RESOURCE_DEFAULT, STGM_READ, &cbOptimal, &pStream); // Retrieve the IPortableDeviceUnitsStream if (SUCCEEDED(hr)) { CComPtr<IPortableDeviceUnitsStream> pUnitsStream; hr = pStream->QueryInterface( IID_IPortableDeviceUnitsStream, &pUnitsStream); }
Requirements
|
Minimum supported client | Windows 8 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server | None supported |
|
Header |
|
|
Library |
|
See also
Community Additions
ADD
Show: