ホーム › Devices.PortableDevices › IPortableDeviceProperties
IPortableDeviceProperties
COMメソッド 6
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT GetSupportedProperties(LPWSTR pszObjectID, IPortableDeviceKeyCollection** ppKeys)
| pszObjectID | LPWSTR | in | 対象オブジェクトのID文字列。 |
| ppKeys | IPortableDeviceKeyCollection** | out | そのオブジェクトがサポートするプロパティキー集合を受け取る出力先。 |
vtbl 4 HRESULT GetPropertyAttributes(LPWSTR pszObjectID, PROPERTYKEY* Key, IPortableDeviceValues** ppAttributes)
| pszObjectID | LPWSTR | in | 対象オブジェクトのID文字列。 |
| Key | PROPERTYKEY* | in | 属性を取得するプロパティのキーを指すPROPERTYKEYへのポインタ。 |
| ppAttributes | IPortableDeviceValues** | out | プロパティの属性(読み書き可否・型等)を格納したIPortableDeviceValuesを受け取る出力先。 |
vtbl 5 HRESULT GetValues(LPWSTR pszObjectID, IPortableDeviceKeyCollection* pKeys, IPortableDeviceValues** ppValues)
| pszObjectID | LPWSTR | in | 対象オブジェクトのID文字列。 |
| pKeys | IPortableDeviceKeyCollection* | in | 取得するプロパティキー集合。NULLで全プロパティ取得。 |
| ppValues | IPortableDeviceValues** | out | 取得したプロパティ値群を格納したIPortableDeviceValuesを受け取る出力先。 |
vtbl 6 HRESULT SetValues(LPWSTR pszObjectID, IPortableDeviceValues* pValues, IPortableDeviceValues** ppResults)
| pszObjectID | LPWSTR | in | 対象オブジェクトのID文字列。 |
| pValues | IPortableDeviceValues* | in | 設定するプロパティ値群を格納したIPortableDeviceValues。 |
| ppResults | IPortableDeviceValues** | out | 各プロパティの設定結果(HRESULT)を格納したIPortableDeviceValuesを受け取る出力先。 |
vtbl 7 HRESULT Delete(LPWSTR pszObjectID, IPortableDeviceKeyCollection* pKeys)
| pszObjectID | LPWSTR | in | 対象オブジェクトのID文字列。 |
| pKeys | IPortableDeviceKeyCollection* | in | 削除するプロパティのキー集合。 |
vtbl 8 HRESULT Cancel()
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IPortableDeviceProperties "{7F6D695C-03DF-4439-A809-59266BEEE3A6}" #usecom global IPortableDeviceProperties IID_IPortableDeviceProperties "{}" #comfunc global IPortableDeviceProperties_GetSupportedProperties 3 wstr,sptr #comfunc global IPortableDeviceProperties_GetPropertyAttributes 4 wstr,var,sptr #comfunc global IPortableDeviceProperties_GetValues 5 wstr,sptr,sptr #comfunc global IPortableDeviceProperties_SetValues 6 wstr,sptr,sptr #comfunc global IPortableDeviceProperties_Delete 7 wstr,sptr #comfunc global IPortableDeviceProperties_Cancel 8 ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IPortableDeviceProperties "{7F6D695C-03DF-4439-A809-59266BEEE3A6}" #usecom global IPortableDeviceProperties IID_IPortableDeviceProperties "{}" #comfunc global IPortableDeviceProperties_GetSupportedProperties 3 wstr,sptr #comfunc global IPortableDeviceProperties_GetPropertyAttributes 4 wstr,sptr,sptr #comfunc global IPortableDeviceProperties_GetValues 5 wstr,sptr,sptr #comfunc global IPortableDeviceProperties_SetValues 6 wstr,sptr,sptr #comfunc global IPortableDeviceProperties_Delete 7 wstr,sptr #comfunc global IPortableDeviceProperties_Cancel 8 ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。