ホーム › Media.WindowsMediaFormat › INSNetSourceCreator
INSNetSourceCreator
COMメソッド 8
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT Initialize()
vtbl 4 HRESULT CreateNetSource(LPWSTR pszStreamName, IUnknown* pMonitor, BYTE* pData, IUnknown* pUserContext, IUnknown* pCallback, ULONGLONG qwContext)
| pszStreamName | LPWSTR | in | 作成対象のストリーム名(URLなど)を示す文字列。 |
| pMonitor | IUnknown* | in | 監視用オブジェクトのIUnknownへのポインタ。NULL可。 |
| pData | BYTE* | in | ネットソース作成時に渡す追加データへのポインタ。 |
| pUserContext | IUnknown* | in | 呼び出し側のユーザーコンテキストを表すIUnknownへのポインタ。 |
| pCallback | IUnknown* | in | 状態通知を受け取るコールバックオブジェクトのIUnknownへのポインタ。 |
| qwContext | ULONGLONG | in | コールバックへ渡される64ビットのコンテキスト値。 |
| pszStreamName | LPWSTR | in | プロパティを取得する対象ストリーム名を示す文字列。 |
| ppPropertiesNode | IUnknown** | out | プロパティノードを表すIUnknownを受け取る出力ポインタ。 |
| ppSharedNamespace | IUnknown** | out | 共有名前空間オブジェクトのIUnknownを受け取る出力ポインタ。 |
| pszStreamName | LPWSTR | in | 管理インターフェイスを取得する対象ストリーム名を示す文字列。 |
| pVal | VARIANT* | out | 管理インターフェイスを格納したVARIANTを受け取る出力ポインタ。 |
| pcProtocols | DWORD* | out | サポートしているプロトコルの数を受け取る出力ポインタ。 |
vtbl 9 HRESULT GetProtocolName(DWORD dwProtocolNum, LPWSTR pwszProtocolName, WORD* pcchProtocolName)
| dwProtocolNum | DWORD | in | 取得するプロトコルのゼロ起点番号。 |
| pwszProtocolName | LPWSTR | out | プロトコル名を受け取るバッファ。 |
| pcchProtocolName | WORD* | inout | バッファ長を入出力するポインタ。NULL指定で必要長を取得。 |
vtbl 10 HRESULT Shutdown()
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_INSNetSourceCreator "{0C0E4080-9081-11D2-BEEC-0060082F2054}" #usecom global INSNetSourceCreator IID_INSNetSourceCreator "{}" #comfunc global INSNetSourceCreator_Initialize 3 #comfunc global INSNetSourceCreator_CreateNetSource 4 wstr,sptr,var,sptr,sptr,int64 #comfunc global INSNetSourceCreator_GetNetSourceProperties 5 wstr,sptr #comfunc global INSNetSourceCreator_GetNetSourceSharedNamespace 6 sptr #comfunc global INSNetSourceCreator_GetNetSourceAdminInterface 7 wstr,var #comfunc global INSNetSourceCreator_GetNumProtocolsSupported 8 var #comfunc global INSNetSourceCreator_GetProtocolName 9 int,var,var #comfunc global INSNetSourceCreator_Shutdown 10 ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_INSNetSourceCreator "{0C0E4080-9081-11D2-BEEC-0060082F2054}" #usecom global INSNetSourceCreator IID_INSNetSourceCreator "{}" #comfunc global INSNetSourceCreator_Initialize 3 #comfunc global INSNetSourceCreator_CreateNetSource 4 wstr,sptr,sptr,sptr,sptr,int64 #comfunc global INSNetSourceCreator_GetNetSourceProperties 5 wstr,sptr #comfunc global INSNetSourceCreator_GetNetSourceSharedNamespace 6 sptr #comfunc global INSNetSourceCreator_GetNetSourceAdminInterface 7 wstr,sptr #comfunc global INSNetSourceCreator_GetNumProtocolsSupported 8 sptr #comfunc global INSNetSourceCreator_GetProtocolName 9 int,sptr,sptr #comfunc global INSNetSourceCreator_Shutdown 10 ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。