ホーム › Networking.BackgroundIntelligentTransferService › IBackgroundCopyJobHttpOptions
IBackgroundCopyJobHttpOptions
COMメソッド 8
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT SetClientCertificateByID(BG_CERT_STORE_LOCATION StoreLocation, LPWSTR StoreName, BYTE* pCertHashBlob)
| StoreLocation | BG_CERT_STORE_LOCATION | in | 証明書ストアの場所BG_CERT_STORE_LOCATION(現ユーザー/ローカルマシン等)。 |
| StoreName | LPWSTR | in | 証明書ストア名(例:MY)。 |
| pCertHashBlob | BYTE* | in | 対象クライアント証明書のSHA-1ハッシュ(20バイト)。 |
vtbl 4 HRESULT SetClientCertificateByName(BG_CERT_STORE_LOCATION StoreLocation, LPWSTR StoreName, LPWSTR SubjectName)
| StoreLocation | BG_CERT_STORE_LOCATION | in | 証明書ストアの場所BG_CERT_STORE_LOCATION。 |
| StoreName | LPWSTR | in | 証明書ストア名(例:MY)。 |
| SubjectName | LPWSTR | in | 対象クライアント証明書のサブジェクト名。 |
vtbl 5 HRESULT RemoveClientCertificate()
vtbl 6 HRESULT GetClientCertificate(BG_CERT_STORE_LOCATION* pStoreLocation, LPWSTR* pStoreName, BYTE** ppCertHashBlob, LPWSTR* pSubjectName)
| pStoreLocation | BG_CERT_STORE_LOCATION* | out | 設定済み証明書ストアの場所を受け取る出力ポインタ。 |
| pStoreName | LPWSTR* | out | 設定済み証明書ストア名を受け取る出力ポインタ。 |
| ppCertHashBlob | BYTE** | out | 設定済み証明書のハッシュBLOBを受け取る出力ポインタ。 |
| pSubjectName | LPWSTR* | out | 設定済み証明書のサブジェクト名を受け取る出力ポインタ。 |
| RequestHeaders | LPWSTR | in | HTTPリクエストに付加するカスタムヘッダー文字列。NULLで解除する。 |
| pRequestHeaders | LPWSTR* | out | 設定済みカスタムHTTPヘッダーを受け取る出力ポインタ。 |
| Flags | DWORD | in | HTTPS証明書検証やリダイレクト動作を制御するセキュリティフラグ。 |
| pFlags | DWORD* | out | 現在のセキュリティフラグを受け取る出力ポインタ。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IBackgroundCopyJobHttpOptions "{F1BD1079-9F01-4BDC-8036-F09B70095066}" #usecom global IBackgroundCopyJobHttpOptions IID_IBackgroundCopyJobHttpOptions "{}" #comfunc global IBackgroundCopyJobHttpOptions_SetClientCertificateByID 3 int,wstr,var #comfunc global IBackgroundCopyJobHttpOptions_SetClientCertificateByName 4 int,wstr,wstr #comfunc global IBackgroundCopyJobHttpOptions_RemoveClientCertificate 5 #comfunc global IBackgroundCopyJobHttpOptions_GetClientCertificate 6 var,var,var,var #comfunc global IBackgroundCopyJobHttpOptions_SetCustomHeaders 7 wstr #comfunc global IBackgroundCopyJobHttpOptions_GetCustomHeaders 8 var #comfunc global IBackgroundCopyJobHttpOptions_SetSecurityFlags 9 int #comfunc global IBackgroundCopyJobHttpOptions_GetSecurityFlags 10 var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_IBackgroundCopyJobHttpOptions "{F1BD1079-9F01-4BDC-8036-F09B70095066}" #usecom global IBackgroundCopyJobHttpOptions IID_IBackgroundCopyJobHttpOptions "{}" #comfunc global IBackgroundCopyJobHttpOptions_SetClientCertificateByID 3 int,wstr,sptr #comfunc global IBackgroundCopyJobHttpOptions_SetClientCertificateByName 4 int,wstr,wstr #comfunc global IBackgroundCopyJobHttpOptions_RemoveClientCertificate 5 #comfunc global IBackgroundCopyJobHttpOptions_GetClientCertificate 6 sptr,sptr,sptr,sptr #comfunc global IBackgroundCopyJobHttpOptions_SetCustomHeaders 7 wstr #comfunc global IBackgroundCopyJobHttpOptions_GetCustomHeaders 8 sptr #comfunc global IBackgroundCopyJobHttpOptions_SetSecurityFlags 9 int #comfunc global IBackgroundCopyJobHttpOptions_GetSecurityFlags 10 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。