Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

MethodDescription
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

PortableDeviceAPI.h

Library

PortableDeviceGUIDs.lib

See also

Client Interfaces

 

 

Community Additions

Show:
© 2017 Microsoft