ホーム › System.UpdateAgent › IAutomaticUpdatesSettings
IAutomaticUpdatesSettings
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では
comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。メソッド 10
vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
vtbl 7 HRESULT get_NotificationLevel(AutomaticUpdatesNotificationLevel* retval)
| retval | AutomaticUpdatesNotificationLevel* | out | 自動更新の通知レベル (AutomaticUpdatesNotificationLevel) を受け取る出力先へのポインタである。 |
vtbl 8 HRESULT put_NotificationLevel(AutomaticUpdatesNotificationLevel value)
| value | AutomaticUpdatesNotificationLevel | in | 自動更新の通知レベル (AutomaticUpdatesNotificationLevel) を指定する。 |
vtbl 9 HRESULT get_ReadOnly(VARIANT_BOOL* retval)
| retval | VARIANT_BOOL* | out | 自動更新設定が読み取り専用かどうかを表す VARIANT_BOOL を受け取る出力先へのポインタである。 |
vtbl 10 HRESULT get_Required(VARIANT_BOOL* retval)
| retval | VARIANT_BOOL* | out | 自動更新の構成が必須かどうかを表す VARIANT_BOOL を受け取る出力先へのポインタである。 |
vtbl 11 HRESULT get_ScheduledInstallationDay(AutomaticUpdatesScheduledInstallationDay* retval)
| retval | AutomaticUpdatesScheduledInstallationDay* | out | 更新をインストールする予定の曜日 (AutomaticUpdatesScheduledInstallationDay) を受け取る出力先へのポインタである。 |
vtbl 12 HRESULT put_ScheduledInstallationDay(AutomaticUpdatesScheduledInstallationDay value)
| value | AutomaticUpdatesScheduledInstallationDay | in | 更新をインストールする予定の曜日 (AutomaticUpdatesScheduledInstallationDay) を指定する。 |
| retval | INT* | out | 更新をインストールする予定の時刻 (時) を受け取る出力先へのポインタである。 |
| value | INT | in | 更新をインストールする予定の時刻 (0〜23 の時) を指定する。 |
vtbl 15 HRESULT Refresh()
vtbl 16 HRESULT Save()
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IAutomaticUpdatesSettings "{2EE48F22-AF3C-405F-8970-F71BE12EE9A2}" #usecom global IAutomaticUpdatesSettings IID_IAutomaticUpdatesSettings "{}" #comfunc global IAutomaticUpdatesSettings_get_NotificationLevel 7 var #comfunc global IAutomaticUpdatesSettings_put_NotificationLevel 8 int #comfunc global IAutomaticUpdatesSettings_get_ReadOnly 9 var #comfunc global IAutomaticUpdatesSettings_get_Required 10 var #comfunc global IAutomaticUpdatesSettings_get_ScheduledInstallationDay 11 var #comfunc global IAutomaticUpdatesSettings_put_ScheduledInstallationDay 12 int #comfunc global IAutomaticUpdatesSettings_get_ScheduledInstallationTime 13 var #comfunc global IAutomaticUpdatesSettings_put_ScheduledInstallationTime 14 int #comfunc global IAutomaticUpdatesSettings_Refresh 15 #comfunc global IAutomaticUpdatesSettings_Save 16 ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_IAutomaticUpdatesSettings "{2EE48F22-AF3C-405F-8970-F71BE12EE9A2}" #usecom global IAutomaticUpdatesSettings IID_IAutomaticUpdatesSettings "{}" #comfunc global IAutomaticUpdatesSettings_get_NotificationLevel 7 sptr #comfunc global IAutomaticUpdatesSettings_put_NotificationLevel 8 int #comfunc global IAutomaticUpdatesSettings_get_ReadOnly 9 sptr #comfunc global IAutomaticUpdatesSettings_get_Required 10 sptr #comfunc global IAutomaticUpdatesSettings_get_ScheduledInstallationDay 11 sptr #comfunc global IAutomaticUpdatesSettings_put_ScheduledInstallationDay 12 int #comfunc global IAutomaticUpdatesSettings_get_ScheduledInstallationTime 13 sptr #comfunc global IAutomaticUpdatesSettings_put_ScheduledInstallationTime 14 int #comfunc global IAutomaticUpdatesSettings_Refresh 15 #comfunc global IAutomaticUpdatesSettings_Save 16 ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。