Win32 API 日本語リファレンス
ホームMedia.LibrarySharingServices › IWindowsMediaLibrarySharingDeviceProperties

IWindowsMediaLibrarySharingDeviceProperties

COMIDispatch (デュアル)
IDispatch を実装(デュアルインターフェース)。HSP では comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。
IIDc4623214-6b06-40c5-a623-b2ff4c076bfd継承元IDispatch呼び出し名前(IDispatch) または vtbl自前メソッド開始 vtbl7

メソッド 3

vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。

vtbl 7 HRESULT get_Item(INT index, IWindowsMediaLibrarySharingDeviceProperty** property)
indexINTin取得するプロパティの 0 始まりインデックスを指定する。
propertyIWindowsMediaLibrarySharingDeviceProperty**out指定インデックスの IWindowsMediaLibrarySharingDeviceProperty を受け取るポインタの格納先。
vtbl 8 HRESULT get_Count(INT* count)
countINT*outコレクション内のプロパティ数を受け取る INT ポインタ。
vtbl 9 HRESULT GetProperty(LPWSTR name, IWindowsMediaLibrarySharingDeviceProperty** property)
nameLPWSTRin取得するプロパティの名前を指す広文字列を指定する。
propertyIWindowsMediaLibrarySharingDeviceProperty**out該当する IWindowsMediaLibrarySharingDeviceProperty を受け取るポインタの格納先。

HSP用 COM定義

#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"

出力引数:
#define global IID_IWindowsMediaLibrarySharingDeviceProperties "{C4623214-6B06-40C5-A623-B2FF4C076BFD}"
#usecom global IWindowsMediaLibrarySharingDeviceProperties IID_IWindowsMediaLibrarySharingDeviceProperties "{}"
#comfunc global IWindowsMediaLibrarySharingDeviceProperties_get_Item     7 int,sptr
#comfunc global IWindowsMediaLibrarySharingDeviceProperties_get_Count    8 var
#comfunc global IWindowsMediaLibrarySharingDeviceProperties_GetProperty  9 wstr,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。