IPortableDeviceCapabilities::GetSupportedEvents 方法 (portabledeviceapi.h)

GetSupportedEvents 方法检索此设备支持的事件。

语法

HRESULT GetSupportedEvents(
  [out] IPortableDevicePropVariantCollection **ppEvents
);

parameters

[out] ppEvents

一个变量的地址,该变量接收指向 IPortableDevicePropVariantCollection 接口的指针,该接口列出了受支持的事件。 调用方在使用完此接口后必须释放此接口。

返回值

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

返回代码 说明
S_OK
方法成功。
E_POINTER
至少有一个参数是 NULL 指针。

要求

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

请参阅

IPortableDeviceCapabilities 接口