IPortableDeviceServiceCapabilities::GetSupportedCommands 方法 (portabledeviceapi.h)

GetSupportedCommands 方法检索服务支持的命令。

语法

HRESULT GetSupportedCommands(
  [out] IPortableDeviceKeyCollection **ppCommands
);

参数

[out] ppCommands

接收命令列表的 IPortableDeviceKeyCollection 接口。

返回值

如果方法成功,则返回 S_OK。 任何其他 HRESULT 值都表示调用失败。

要求

要求
最低受支持的客户端 Windows 7 [桌面应用 |UWP 应用]
最低受支持的服务器 无受支持的版本
目标平台 Windows
标头 portabledeviceapi.h

另请参阅

IPortableDeviceServiceCapabilities 接口