ホーム › Media.WindowsMediaFormat › IWMDeviceRegistration
IWMDeviceRegistration
COMメソッド 6
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT RegisterDevice(DWORD dwRegisterType, BYTE* pbCertificate, DWORD cbCertificate, DRM_VAL16 SerialNumber, IWMRegisteredDevice** ppDevice)
| dwRegisterType | DWORD | in | 登録するデバイスの種類を示す登録タイプ値。プロキシ/ローカルなどの区分を指定する。 |
| pbCertificate | BYTE* | in | 登録対象デバイスの証明書データを格納したバイト配列へのポインタ。 |
| cbCertificate | DWORD | in | pbCertificateが指す証明書データのバイト数。 |
| SerialNumber | DRM_VAL16 | in | デバイスのシリアル番号を保持する16バイト値構造体(DRM_VAL16)。 |
| ppDevice | IWMRegisteredDevice** | out | 登録結果のIWMRegisteredDeviceインターフェイスを受け取る出力ポインタ。 |
vtbl 4 HRESULT UnregisterDevice(DWORD dwRegisterType, BYTE* pbCertificate, DWORD cbCertificate, DRM_VAL16 SerialNumber)
| dwRegisterType | DWORD | in | 登録解除するデバイスの登録タイプ値。 |
| pbCertificate | BYTE* | in | 登録解除対象デバイスの証明書データへのポインタ。 |
| cbCertificate | DWORD | in | 証明書データのバイト数。 |
| SerialNumber | DRM_VAL16 | in | 登録解除対象デバイスのシリアル番号を示すDRM_VAL16値。 |
| dwRegisterType | DWORD | in | 統計取得対象の登録タイプ値。 |
| pcRegisteredDevices | DWORD* | out | 指定タイプで登録済みのデバイス数を受け取る出力ポインタ。 |
vtbl 6 HRESULT GetFirstRegisteredDevice(DWORD dwRegisterType, IWMRegisteredDevice** ppDevice)
| dwRegisterType | DWORD | in | 列挙対象の登録タイプ値。 |
| ppDevice | IWMRegisteredDevice** | out | 最初の登録済みデバイスのIWMRegisteredDeviceを受け取る出力ポインタ。 |
vtbl 7 HRESULT GetNextRegisteredDevice(IWMRegisteredDevice** ppDevice)
| ppDevice | IWMRegisteredDevice** | out | 列挙中の次の登録済みデバイスのIWMRegisteredDeviceを受け取る出力ポインタ。 |
vtbl 8 HRESULT GetRegisteredDeviceByID(DWORD dwRegisterType, BYTE* pbCertificate, DWORD cbCertificate, DRM_VAL16 SerialNumber, IWMRegisteredDevice** ppDevice)
| dwRegisterType | DWORD | in | 検索対象の登録タイプ値。 |
| pbCertificate | BYTE* | in | 検索キーとなるデバイス証明書データへのポインタ。 |
| cbCertificate | DWORD | in | 証明書データのバイト数。 |
| SerialNumber | DRM_VAL16 | in | 検索キーとなるデバイスのシリアル番号(DRM_VAL16)。 |
| ppDevice | IWMRegisteredDevice** | out | 一致した登録済みデバイスのIWMRegisteredDeviceを受け取る出力ポインタ。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IWMDeviceRegistration "{F6211F03-8D21-4E94-93E6-8510805F2D99}" #usecom global IWMDeviceRegistration IID_IWMDeviceRegistration "{}" #comfunc global IWMDeviceRegistration_RegisterDevice 3 int,var,int,int,sptr #comfunc global IWMDeviceRegistration_UnregisterDevice 4 int,var,int,int #comfunc global IWMDeviceRegistration_GetRegistrationStats 5 int,var #comfunc global IWMDeviceRegistration_GetFirstRegisteredDevice 6 int,sptr #comfunc global IWMDeviceRegistration_GetNextRegisteredDevice 7 sptr #comfunc global IWMDeviceRegistration_GetRegisteredDeviceByID 8 int,var,int,int,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IWMDeviceRegistration "{F6211F03-8D21-4E94-93E6-8510805F2D99}" #usecom global IWMDeviceRegistration IID_IWMDeviceRegistration "{}" #comfunc global IWMDeviceRegistration_RegisterDevice 3 int,sptr,int,int,sptr #comfunc global IWMDeviceRegistration_UnregisterDevice 4 int,sptr,int,int #comfunc global IWMDeviceRegistration_GetRegistrationStats 5 int,sptr #comfunc global IWMDeviceRegistration_GetFirstRegisteredDevice 6 int,sptr #comfunc global IWMDeviceRegistration_GetNextRegisteredDevice 7 sptr #comfunc global IWMDeviceRegistration_GetRegisteredDeviceByID 8 int,sptr,int,int,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。