ホーム › NetworkManagement.WindowsFirewall › INetFwProfile
INetFwProfile
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では
comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。メソッド 14
vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
vtbl 7 HRESULT get_Type(NET_FW_PROFILE_TYPE* type)
| type | NET_FW_PROFILE_TYPE* | out | このプロファイルの種類を表す NET_FW_PROFILE_TYPE 値を受け取るポインタである。 |
vtbl 8 HRESULT get_FirewallEnabled(VARIANT_BOOL* enabled)
| enabled | VARIANT_BOOL* | out | このプロファイルでファイアウォールが有効かどうかを示す VARIANT_BOOL 値を受け取るポインタである。 |
vtbl 9 HRESULT put_FirewallEnabled(VARIANT_BOOL enabled)
| enabled | VARIANT_BOOL | in | このプロファイルでファイアウォールを有効にするかどうかを示す VARIANT_BOOL 値を指定する。 |
vtbl 10 HRESULT get_ExceptionsNotAllowed(VARIANT_BOOL* notAllowed)
| notAllowed | VARIANT_BOOL* | out | 例外を許可しない (すべての受信トラフィックをブロックする) 設定が有効かどうかを示す VARIANT_BOOL 値を受け取るポインタである。 |
vtbl 11 HRESULT put_ExceptionsNotAllowed(VARIANT_BOOL notAllowed)
| notAllowed | VARIANT_BOOL | in | 例外を許可しない設定を有効にするかどうかを示す VARIANT_BOOL 値を指定する。 |
vtbl 12 HRESULT get_NotificationsDisabled(VARIANT_BOOL* disabled)
| disabled | VARIANT_BOOL* | out | プログラムがブロックされた際の通知が無効かどうかを示す VARIANT_BOOL 値を受け取るポインタである。 |
vtbl 13 HRESULT put_NotificationsDisabled(VARIANT_BOOL disabled)
| disabled | VARIANT_BOOL | in | プログラムがブロックされた際の通知を無効にするかどうかを示す VARIANT_BOOL 値を指定する。 |
vtbl 14 HRESULT get_UnicastResponsesToMulticastBroadcastDisabled(VARIANT_BOOL* disabled)
| disabled | VARIANT_BOOL* | out | マルチキャストまたはブロードキャストに対するユニキャスト応答が無効かどうかを示す VARIANT_BOOL 値を受け取るポインタである。 |
vtbl 15 HRESULT put_UnicastResponsesToMulticastBroadcastDisabled(VARIANT_BOOL disabled)
| disabled | VARIANT_BOOL | in | マルチキャストまたはブロードキャストに対するユニキャスト応答を無効にするかどうかを示す VARIANT_BOOL 値を指定する。 |
vtbl 16 HRESULT get_RemoteAdminSettings(INetFwRemoteAdminSettings** remoteAdminSettings)
| remoteAdminSettings | INetFwRemoteAdminSettings** | out | リモート管理の設定を表す INetFwRemoteAdminSettings インターフェイスを受け取るポインタである。 |
vtbl 17 HRESULT get_IcmpSettings(INetFwIcmpSettings** icmpSettings)
| icmpSettings | INetFwIcmpSettings** | out | ICMP の設定を表す INetFwIcmpSettings インターフェイスを受け取るポインタである。 |
vtbl 18 HRESULT get_GloballyOpenPorts(INetFwOpenPorts** openPorts)
| openPorts | INetFwOpenPorts** | out | グローバルに開放されたポートのコレクションを表す INetFwOpenPorts インターフェイスを受け取るポインタである。 |
vtbl 19 HRESULT get_Services(INetFwServices** services)
| services | INetFwServices** | out | ファイアウォールが認識する標準サービスのコレクションを表す INetFwServices インターフェイスを受け取るポインタである。 |
vtbl 20 HRESULT get_AuthorizedApplications(INetFwAuthorizedApplications** apps)
| apps | INetFwAuthorizedApplications** | out | 許可済みアプリケーションのコレクションを表す INetFwAuthorizedApplications インターフェイスを受け取るポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_INetFwProfile "{174A0DDA-E9F9-449D-993B-21AB667CA456}" #usecom global INetFwProfile IID_INetFwProfile "{}" #comfunc global INetFwProfile_get_Type 7 var #comfunc global INetFwProfile_get_FirewallEnabled 8 var #comfunc global INetFwProfile_put_FirewallEnabled 9 int #comfunc global INetFwProfile_get_ExceptionsNotAllowed 10 var #comfunc global INetFwProfile_put_ExceptionsNotAllowed 11 int #comfunc global INetFwProfile_get_NotificationsDisabled 12 var #comfunc global INetFwProfile_put_NotificationsDisabled 13 int #comfunc global INetFwProfile_get_UnicastResponsesToMulticastBroadcastDisabled 14 var #comfunc global INetFwProfile_put_UnicastResponsesToMulticastBroadcastDisabled 15 int #comfunc global INetFwProfile_get_RemoteAdminSettings 16 sptr #comfunc global INetFwProfile_get_IcmpSettings 17 sptr #comfunc global INetFwProfile_get_GloballyOpenPorts 18 sptr #comfunc global INetFwProfile_get_Services 19 sptr #comfunc global INetFwProfile_get_AuthorizedApplications 20 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_INetFwProfile "{174A0DDA-E9F9-449D-993B-21AB667CA456}" #usecom global INetFwProfile IID_INetFwProfile "{}" #comfunc global INetFwProfile_get_Type 7 sptr #comfunc global INetFwProfile_get_FirewallEnabled 8 sptr #comfunc global INetFwProfile_put_FirewallEnabled 9 int #comfunc global INetFwProfile_get_ExceptionsNotAllowed 10 sptr #comfunc global INetFwProfile_put_ExceptionsNotAllowed 11 int #comfunc global INetFwProfile_get_NotificationsDisabled 12 sptr #comfunc global INetFwProfile_put_NotificationsDisabled 13 int #comfunc global INetFwProfile_get_UnicastResponsesToMulticastBroadcastDisabled 14 sptr #comfunc global INetFwProfile_put_UnicastResponsesToMulticastBroadcastDisabled 15 int #comfunc global INetFwProfile_get_RemoteAdminSettings 16 sptr #comfunc global INetFwProfile_get_IcmpSettings 17 sptr #comfunc global INetFwProfile_get_GloballyOpenPorts 18 sptr #comfunc global INetFwProfile_get_Services 19 sptr #comfunc global INetFwProfile_get_AuthorizedApplications 20 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。