IPortableDeviceCapabilities::GetSupportedCommands 方法 (portabledeviceapi.h)

GetSupportedCommands 方法检索此设备支持的所有命令的列表。

语法

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

parameters

[out] ppCommands

接收指向保存所有有效命令的 IPortableDeviceKeyCollection 接口的指针的变量的地址。 有关 Windows 可移植设备定义的命令列表,请参阅 命令。 调用方在使用完此接口后必须释放此接口。

返回值

该方法返回 HRESULT。 可能的值包括(但并不限于)下表中的项。

返回代码 说明
S_OK
方法成功。

备注

无。

要求

   
目标平台 Windows
标头 portabledeviceapi.h
Library PortableDeviceGUIDs.lib

请参阅

IPortableDeviceCapabilities 接口