次の方法で共有


IPortableDeviceServiceCapabilities::GetSupportedCommands メソッド (portabledeviceapi.h)

GetSupportedCommands メソッドは、サービスでサポートされているコマンドを取得します。

構文

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

パラメーター

[out] ppCommands

コマンドの一覧を受け取る IPortableDeviceKeyCollection インターフェイス。

戻り値

メソッドが成功すると、 S_OKが返されます。 その他の HRESULT 値は、呼び出しが失敗したことを示します。

要件

要件
サポートされている最小のクライアント Windows 7 [デスクトップ アプリ |UWP アプリ]
サポートされている最小のサーバー サポートなし
対象プラットフォーム Windows
ヘッダー portabledeviceapi.h

こちらもご覧ください

IPortableDeviceServiceCapabilities インターフェイス