IPortableDeviceServiceCapabilities::GetSupportedMethodsByFormat 方法 (portabledeviceapi.h)
GetSupportedMethodsByFormat 方法會擷取服務針對指定格式所支援的方法。
語法
HRESULT GetSupportedMethodsByFormat(
[in] REFGUID Format,
[out] IPortableDevicePropVariantCollection **ppMethods
);
參數
[in] Format
擷取其支援方法的格式。
[out] ppMethods
接收方法清單的 IPortableDevicePropVariantCollection 介面。
傳回值
如果方法成功,它會 傳回S_OK。 任何其他 HRESULT 值都表示呼叫失敗。
規格需求
需求 | 值 |
---|---|
最低支援的用戶端 | Windows 7 [傳統型應用程式 |UWP 應用程式] |
最低支援的伺服器 | 都不支援 |
目標平台 | Windows |
標頭 | portabledeviceapi.h |