次の方法で共有


IMediaSample2::SetProperties (Compact 2013)

3/26/2014

This method sets the properties of a media sample

Syntax

HRESULT SetProperties(
  DWORD cbProperties,
  const BYTE* pbProperties
);

Parameters

  • cbProperties
    [in] Length of property data to set, in bytes.
  • pbProperties
    [in] Pointer to properties to set. cbProperties specifies the length of the data. This value can be NULL if cbProperties is NULL. Data conforms to the format of the AM_SAMPLE2_PROPERTIES structure.

Return Value

Returns an HRESULT value that depends on the implementation of the interface.

Requirements

Header

dshow.h

Library

Strmiids.lib

See Also

Reference

IMediaSample2 Interface