Win32 API 日本語リファレンス
ホームStorage.Packaging.Opc › IOpcSigningOptions

IOpcSigningOptions

COM
IID50d2d6a5-7aeb-46c0-b241-43ab0e9b407e継承元IUnknown自前メソッド開始 vtbl3

メソッド 17

vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。

vtbl 3 HRESULT GetSignatureId(LPWSTR* signatureId)
signatureIdLPWSTR*out生成する署名要素に設定する Id 属性の現在値を受け取る文字列ポインタである。
vtbl 4 HRESULT SetSignatureId(LPWSTR signatureId)
signatureIdLPWSTRin生成する署名要素に設定する Id 属性の値を指定する文字列である。
vtbl 5 HRESULT GetSignatureMethod(LPWSTR* signatureMethod)
signatureMethodLPWSTR*out署名生成に使用する署名アルゴリズムを示す URI 文字列の現在値を受け取るポインタである。
vtbl 6 HRESULT SetSignatureMethod(LPWSTR signatureMethod)
signatureMethodLPWSTRin署名生成に使用する署名アルゴリズムを示す URI 文字列を指定する。
vtbl 7 HRESULT GetDefaultDigestMethod(LPWSTR* digestMethod)
digestMethodLPWSTR*out参照のダイジェスト計算に使用する既定のダイジェストアルゴリズム URI の現在値を受け取るポインタである。
vtbl 8 HRESULT SetDefaultDigestMethod(LPWSTR digestMethod)
digestMethodLPWSTRin参照のダイジェスト計算に使用する既定のダイジェストアルゴリズムを示す URI 文字列を指定する。
vtbl 9 HRESULT GetCertificateEmbeddingOption(OPC_CERTIFICATE_EMBEDDING_OPTION* embeddingOption)
embeddingOptionOPC_CERTIFICATE_EMBEDDING_OPTION*out署名への証明書の埋め込み方法を示す OPC_CERTIFICATE_EMBEDDING_OPTION の現在値を受け取るポインタである。
vtbl 10 HRESULT SetCertificateEmbeddingOption(OPC_CERTIFICATE_EMBEDDING_OPTION embeddingOption)
embeddingOptionOPC_CERTIFICATE_EMBEDDING_OPTIONin署名への証明書の埋め込み方法を指定する OPC_CERTIFICATE_EMBEDDING_OPTION 値である。
vtbl 11 HRESULT GetTimeFormat(OPC_SIGNATURE_TIME_FORMAT* timeFormat)
timeFormatOPC_SIGNATURE_TIME_FORMAT*out署名時刻に使用する書式を示す OPC_SIGNATURE_TIME_FORMAT の現在値を受け取るポインタである。
vtbl 12 HRESULT SetTimeFormat(OPC_SIGNATURE_TIME_FORMAT timeFormat)
timeFormatOPC_SIGNATURE_TIME_FORMATin署名時刻に使用する書式を指定する OPC_SIGNATURE_TIME_FORMAT 値である。
vtbl 13 HRESULT GetSignaturePartReferenceSet(IOpcSignaturePartReferenceSet** partReferenceSet)
partReferenceSetIOpcSignaturePartReferenceSet**out署名対象のパート参照を管理する IOpcSignaturePartReferenceSet を受け取るポインタである。
vtbl 14 HRESULT GetSignatureRelationshipReferenceSet(IOpcSignatureRelationshipReferenceSet** relationshipReferenceSet)
relationshipReferenceSetIOpcSignatureRelationshipReferenceSet**out署名対象のリレーションシップ参照を管理する IOpcSignatureRelationshipReferenceSet を受け取るポインタである。
vtbl 15 HRESULT GetCustomObjectSet(IOpcSignatureCustomObjectSet** customObjectSet)
customObjectSetIOpcSignatureCustomObjectSet**out署名に追加するカスタム Object 要素を管理する IOpcSignatureCustomObjectSet を受け取るポインタである。
vtbl 16 HRESULT GetCustomReferenceSet(IOpcSignatureReferenceSet** customReferenceSet)
customReferenceSetIOpcSignatureReferenceSet**out署名に追加するカスタム参照を管理する IOpcSignatureReferenceSet を受け取るポインタである。
vtbl 17 HRESULT GetCertificateSet(IOpcCertificateSet** certificateSet)
certificateSetIOpcCertificateSet**out署名に埋め込む証明書を管理する IOpcCertificateSet を受け取るポインタである。
vtbl 18 HRESULT GetSignaturePartName(IOpcPartUri** signaturePartName)
signaturePartNameIOpcPartUri**out生成する署名を格納するパートのパート名 URI を表す IOpcPartUri の現在値を受け取るポインタである。
vtbl 19 HRESULT SetSignaturePartName(IOpcPartUri* signaturePartName)
signaturePartNameIOpcPartUri*in生成する署名を格納するパートのパート名 URI を指定する IOpcPartUri である。NULL を指定すると既定のパート名が使用される。

HSP用 COM定義

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

出力引数:
#define global IID_IOpcSigningOptions "{50D2D6A5-7AEB-46C0-B241-43AB0E9B407E}"
#usecom global IOpcSigningOptions IID_IOpcSigningOptions "{}"
#comfunc global IOpcSigningOptions_GetSignatureId                        3 var
#comfunc global IOpcSigningOptions_SetSignatureId                        4 wstr
#comfunc global IOpcSigningOptions_GetSignatureMethod                    5 var
#comfunc global IOpcSigningOptions_SetSignatureMethod                    6 wstr
#comfunc global IOpcSigningOptions_GetDefaultDigestMethod                7 var
#comfunc global IOpcSigningOptions_SetDefaultDigestMethod                8 wstr
#comfunc global IOpcSigningOptions_GetCertificateEmbeddingOption         9 var
#comfunc global IOpcSigningOptions_SetCertificateEmbeddingOption         10 int
#comfunc global IOpcSigningOptions_GetTimeFormat                         11 var
#comfunc global IOpcSigningOptions_SetTimeFormat                         12 int
#comfunc global IOpcSigningOptions_GetSignaturePartReferenceSet          13 sptr
#comfunc global IOpcSigningOptions_GetSignatureRelationshipReferenceSet  14 sptr
#comfunc global IOpcSigningOptions_GetCustomObjectSet                    15 sptr
#comfunc global IOpcSigningOptions_GetCustomReferenceSet                 16 sptr
#comfunc global IOpcSigningOptions_GetCertificateSet                     17 sptr
#comfunc global IOpcSigningOptions_GetSignaturePartName                  18 sptr
#comfunc global IOpcSigningOptions_SetSignaturePartName                  19 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。