IMFMediaType::FreeRepresentation 方法 (mfobjects.h)

釋放 由IMFMediaType::GetRepresentation 方法配置的記憶體。

語法

HRESULT FreeRepresentation(
  [in] GUID   guidRepresentation,
  [in] LPVOID pvRepresentation
);

參數

[in] guidRepresentation

傳遞至 GetRepresentation 方法的 GUID。

[in] pvRepresentation

GetRepresentation 方法所傳回之緩衝區的指標。

傳回值

如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。

備註

如果已安裝 Windows Media Format 11 SDK 可轉散發元件,此介面可在下列平臺上使用:

  • Windows XP with Service Pack 2 (SP2) 和更新版本。
  • 已安裝 Windows XP Media Center Edition 2005 KB900325 (Windows XP Media Center 版本 2005) 和 KB925766 (2006 年 10 月更新匯總) 。

規格需求

需求
最低支援的用戶端 Windows Vista [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2008 [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 mfobjects.h (include Mfidl.h)
程式庫 Mfuuid.lib

另請參閱

IMFMediaType