ReactOS 0.4.17-dev-966-gf06eace
policy.c File Reference
#include <stdarg.h>
#include <stdio.h>
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "ole2.h"
#include "netfw.h"
#include "wine/debug.h"
#include "hnetcfg_private.h"
Include dependency graph for policy.c:

Go to the source code of this file.

Classes

struct  fw_policy
 
struct  fw_policy2
 
struct  fw_rule
 
struct  fw_rules
 

Macros

#define COBJMACROS
 

Typedefs

typedef struct fw_policy fw_policy
 
typedef struct fw_policy2 fw_policy2
 
typedef struct fw_rule fw_rule
 
typedef struct fw_rules fw_rules
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (hnetcfg)
 
static fw_policy * impl_from_INetFwPolicy (INetFwPolicy *iface)
 
static fw_policy2 * impl_from_INetFwPolicy2 (INetFwPolicy2 *iface)
 
static fw_rule * impl_from_INetFwRule (INetFwRule *iface)
 
static HRESULT WINAPI netfw_rule_QueryInterface (INetFwRule *iface, REFIID riid, void **object)
 
static ULONG WINAPI netfw_rule_AddRef (INetFwRule *iface)
 
static ULONG WINAPI netfw_rule_Release (INetFwRule *iface)
 
static HRESULT WINAPI netfw_rule_GetTypeInfoCount (INetFwRule *iface, UINT *pctinfo)
 
static HRESULT WINAPI netfw_rule_GetTypeInfo (INetFwRule *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI netfw_rule_GetIDsOfNames (INetFwRule *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI netfw_rule_Invoke (INetFwRule *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI netfw_rule_get_Name (INetFwRule *iface, BSTR *name)
 
static HRESULT WINAPI netfw_rule_put_Name (INetFwRule *iface, BSTR name)
 
static HRESULT WINAPI netfw_rule_get_Description (INetFwRule *iface, BSTR *desc)
 
static HRESULT WINAPI netfw_rule_put_Description (INetFwRule *iface, BSTR desc)
 
static HRESULT WINAPI netfw_rule_get_ApplicationName (INetFwRule *iface, BSTR *app)
 
static HRESULT WINAPI netfw_rule_put_ApplicationName (INetFwRule *iface, BSTR app)
 
static HRESULT WINAPI netfw_rule_get_ServiceName (INetFwRule *iface, BSTR *service)
 
static HRESULT WINAPI netfw_rule_put_ServiceName (INetFwRule *iface, BSTR service)
 
static HRESULT WINAPI netfw_rule_get_Protocol (INetFwRule *iface, LONG *protocol)
 
static HRESULT WINAPI netfw_rule_put_Protocol (INetFwRule *iface, LONG protocol)
 
static HRESULT WINAPI netfw_rule_get_LocalPorts (INetFwRule *iface, BSTR *ports)
 
static HRESULT WINAPI netfw_rule_put_LocalPorts (INetFwRule *iface, BSTR ports)
 
static HRESULT WINAPI netfw_rule_get_RemotePorts (INetFwRule *iface, BSTR *ports)
 
static HRESULT WINAPI netfw_rule_put_RemotePorts (INetFwRule *iface, BSTR ports)
 
static HRESULT WINAPI netfw_rule_get_LocalAddresses (INetFwRule *iface, BSTR *addresses)
 
static HRESULT WINAPI netfw_rule_put_LocalAddresses (INetFwRule *iface, BSTR addresses)
 
static HRESULT WINAPI netfw_rule_get_RemoteAddresses (INetFwRule *iface, BSTR *addresses)
 
static HRESULT WINAPI netfw_rule_put_RemoteAddresses (INetFwRule *iface, BSTR addresses)
 
static HRESULT WINAPI netfw_rule_get_IcmpTypesAndCodes (INetFwRule *iface, BSTR *codes)
 
static HRESULT WINAPI netfw_rule_put_IcmpTypesAndCodes (INetFwRule *iface, BSTR codes)
 
static HRESULT WINAPI netfw_rule_get_Direction (INetFwRule *iface, NET_FW_RULE_DIRECTION *dir)
 
static HRESULT WINAPI netfw_rule_put_Direction (INetFwRule *iface, NET_FW_RULE_DIRECTION dir)
 
static HRESULT WINAPI netfw_rule_get_Interfaces (INetFwRule *iface, VARIANT *interfaces)
 
static HRESULT WINAPI netfw_rule_put_Interfaces (INetFwRule *iface, VARIANT interfaces)
 
static HRESULT WINAPI netfw_rule_get_InterfaceTypes (INetFwRule *iface, BSTR *types)
 
static HRESULT WINAPI netfw_rule_put_InterfaceTypes (INetFwRule *iface, BSTR types)
 
static HRESULT WINAPI netfw_rule_get_Enabled (INetFwRule *iface, VARIANT_BOOL *enabled)
 
static HRESULT WINAPI netfw_rule_put_Enabled (INetFwRule *iface, VARIANT_BOOL enabled)
 
static HRESULT WINAPI netfw_rule_get_Grouping (INetFwRule *iface, BSTR *grouping)
 
static HRESULT WINAPI netfw_rule_put_Grouping (INetFwRule *iface, BSTR grouping)
 
static HRESULT WINAPI netfw_rule_get_Profiles (INetFwRule *iface, LONG *profiles)
 
static HRESULT WINAPI netfw_rule_put_Profiles (INetFwRule *iface, LONG profiles)
 
static HRESULT WINAPI netfw_rule_get_EdgeTraversal (INetFwRule *iface, VARIANT_BOOL *enabled)
 
static HRESULT WINAPI netfw_rule_put_EdgeTraversal (INetFwRule *iface, VARIANT_BOOL enabled)
 
static HRESULT WINAPI netfw_rule_get_Action (INetFwRule *iface, NET_FW_ACTION *action)
 
static HRESULT WINAPI netfw_rule_put_Action (INetFwRule *iface, NET_FW_ACTION action)
 
HRESULT NetFwRule_create (IUnknown *outer, void **obj)
 
static fw_rules * impl_from_INetFwRules (INetFwRules *iface)
 
static HRESULT WINAPI netfw_rules_QueryInterface (INetFwRules *iface, REFIID riid, void **object)
 
static ULONG WINAPI netfw_rules_AddRef (INetFwRules *iface)
 
static ULONG WINAPI netfw_rules_Release (INetFwRules *iface)
 
static HRESULT WINAPI netfw_rules_GetTypeInfoCount (INetFwRules *iface, UINT *pctinfo)
 
static HRESULT WINAPI netfw_rules_GetTypeInfo (INetFwRules *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI netfw_rules_GetIDsOfNames (INetFwRules *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI netfw_rules_Invoke (INetFwRules *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI netfw_rules_get_Count (INetFwRules *iface, LONG *count)
 
static HRESULT WINAPI netfw_rules_Add (INetFwRules *iface, INetFwRule *rule)
 
static HRESULT WINAPI netfw_rules_Remove (INetFwRules *iface, BSTR name)
 
static HRESULT WINAPI netfw_rules_Item (INetFwRules *iface, BSTR name, INetFwRule **rule)
 
static HRESULT WINAPI netfw_rules_get__NewEnum (INetFwRules *iface, IUnknown **newEnum)
 
static HRESULT create_INetFwRules (INetFwRules **object)
 
static ULONG WINAPI fw_policy_AddRef (INetFwPolicy *iface)
 
static ULONG WINAPI fw_policy_Release (INetFwPolicy *iface)
 
static HRESULT WINAPI fw_policy_QueryInterface (INetFwPolicy *iface, REFIID riid, void **ppvObject)
 
static HRESULT WINAPI fw_policy_GetTypeInfoCount (INetFwPolicy *iface, UINT *pctinfo)
 
static HRESULT WINAPI fw_policy_GetTypeInfo (INetFwPolicy *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI fw_policy_GetIDsOfNames (INetFwPolicy *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI fw_policy_Invoke (INetFwPolicy *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI fw_policy_get_CurrentProfile (INetFwPolicy *iface, INetFwProfile **profile)
 
static HRESULT WINAPI fw_policy_GetProfileByType (INetFwPolicy *iface, NET_FW_PROFILE_TYPE profileType, INetFwProfile **profile)
 
HRESULT NetFwPolicy_create (IUnknown *pUnkOuter, LPVOID *ppObj)
 
static HRESULT WINAPI fwpolicy2_QueryInterface (INetFwPolicy2 *iface, REFIID riid, void **out)
 
static ULONG WINAPI fwpolicy2_AddRef (INetFwPolicy2 *iface)
 
static ULONG WINAPI fwpolicy2_Release (INetFwPolicy2 *iface)
 
static HRESULT WINAPI fwpolicy2_GetTypeInfoCount (INetFwPolicy2 *iface, UINT *pctinfo)
 
static HRESULT WINAPI fwpolicy2_GetTypeInfo (INetFwPolicy2 *iface, UINT iTInfo, LCID lcid, ITypeInfo **info)
 
static HRESULT WINAPI fwpolicy2_GetIDsOfNames (INetFwPolicy2 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI fwpolicy2_Invoke (INetFwPolicy2 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI fwpolicy2_get_CurrentProfileTypes (INetFwPolicy2 *iface, LONG *profile)
 
static HRESULT WINAPI fwpolicy2_get_FirewallEnabled (INetFwPolicy2 *iface, NET_FW_PROFILE_TYPE2 profileType, VARIANT_BOOL *enabled)
 
static HRESULT WINAPI fwpolicy2_put_FirewallEnabled (INetFwPolicy2 *iface, NET_FW_PROFILE_TYPE2 profileType, VARIANT_BOOL enabled)
 
static HRESULT WINAPI fwpolicy2_get_ExcludedInterfaces (INetFwPolicy2 *iface, NET_FW_PROFILE_TYPE2 profileType, VARIANT *interfaces)
 
static HRESULT WINAPI fwpolicy2_put_ExcludedInterfaces (INetFwPolicy2 *iface, NET_FW_PROFILE_TYPE2 profileType, VARIANT interfaces)
 
static HRESULT WINAPI fwpolicy2_get_BlockAllInboundTraffic (INetFwPolicy2 *iface, NET_FW_PROFILE_TYPE2 profileType, VARIANT_BOOL *block)
 
static HRESULT WINAPI fwpolicy2_put_BlockAllInboundTraffic (INetFwPolicy2 *iface, NET_FW_PROFILE_TYPE2 profileType, VARIANT_BOOL block)
 
static HRESULT WINAPI fwpolicy2_get_NotificationsDisabled (INetFwPolicy2 *iface, NET_FW_PROFILE_TYPE2 profileType, VARIANT_BOOL *disabled)
 
static HRESULT WINAPI fwpolicy2_put_NotificationsDisabled (INetFwPolicy2 *iface, NET_FW_PROFILE_TYPE2 profileType, VARIANT_BOOL disabled)
 
static HRESULT WINAPI fwpolicy2_get_UnicastResponsesToMulticastBroadcastDisabled (INetFwPolicy2 *iface, NET_FW_PROFILE_TYPE2 profileType, VARIANT_BOOL *disabled)
 
static HRESULT WINAPI fwpolicy2_put_UnicastResponsesToMulticastBroadcastDisabled (INetFwPolicy2 *iface, NET_FW_PROFILE_TYPE2 profileType, VARIANT_BOOL disabled)
 
static HRESULT WINAPI fwpolicy2_get_Rules (INetFwPolicy2 *iface, INetFwRules **rules)
 
static HRESULT WINAPI fwpolicy2_get_ServiceRestriction (INetFwPolicy2 *iface, INetFwServiceRestriction **ServiceRestriction)
 
static HRESULT WINAPI fwpolicy2_EnableRuleGroup (INetFwPolicy2 *iface, LONG bitmask, BSTR group, VARIANT_BOOL enable)
 
static HRESULT WINAPI fwpolicy2_IsRuleGroupEnabled (INetFwPolicy2 *iface, LONG bitmask, BSTR group, VARIANT_BOOL *enabled)
 
static HRESULT WINAPI fwpolicy2_RestoreLocalFirewallDefaults (INetFwPolicy2 *iface)
 
static HRESULT WINAPI fwpolicy2_get_DefaultInboundAction (INetFwPolicy2 *iface, NET_FW_PROFILE_TYPE2 profileType, NET_FW_ACTION *action)
 
static HRESULT WINAPI fwpolicy2_put_DefaultInboundAction (INetFwPolicy2 *iface, NET_FW_PROFILE_TYPE2 profileType, NET_FW_ACTION action)
 
static HRESULT WINAPI fwpolicy2_get_DefaultOutboundAction (INetFwPolicy2 *iface, NET_FW_PROFILE_TYPE2 profileType, NET_FW_ACTION *action)
 
static HRESULT WINAPI fwpolicy2_put_DefaultOutboundAction (INetFwPolicy2 *iface, NET_FW_PROFILE_TYPE2 profileType, NET_FW_ACTION action)
 
static HRESULT WINAPI fwpolicy2_get_IsRuleGroupCurrentlyEnabled (INetFwPolicy2 *iface, BSTR group, VARIANT_BOOL *enabled)
 
static HRESULT WINAPI fwpolicy2_get_LocalPolicyModifyState (INetFwPolicy2 *iface, NET_FW_MODIFY_STATE *modifyState)
 
HRESULT NetFwPolicy2_create (IUnknown *outer, void **obj)
 

Variables

static const struct INetFwRuleVtbl fw_rule_vtbl
 
static const struct INetFwRulesVtbl fw_rules_vtbl
 
static const struct INetFwPolicyVtbl fw_policy_vtbl
 
static const struct INetFwPolicy2Vtbl fw_policy2_vtbl
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Definition at line 22 of file policy.c.

Typedef Documentation

◆ fw_policy

◆ fw_policy2

◆ fw_rule

◆ fw_rules

Function Documentation

◆ create_INetFwRules()

static HRESULT create_INetFwRules ( INetFwRules **  object)
static

Definition at line 816 of file policy.c.

817{
818 fw_rules *rules;
819
820 TRACE("(%p)\n", object);
821
822 rules = malloc( sizeof(*rules) );
823 if (!rules) return E_OUTOFMEMORY;
824
825 rules->INetFwRules_iface.lpVtbl = &fw_rules_vtbl;
826 rules->refs = 1;
827
828 *object = &rules->INetFwRules_iface;
829
830 TRACE("returning iface %p\n", *object);
831 return S_OK;
832}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define malloc
Definition: debug_ros.c:4
static const struct INetFwRulesVtbl fw_rules_vtbl
Definition: policy.c:800
#define S_OK
Definition: intsafe.h:52
#define TRACE(s)
Definition: solgame.cpp:4
LONG refs
Definition: policy.c:615
INetFwRules INetFwRules_iface
Definition: policy.c:614

Referenced by NetFwPolicy2_create().

◆ fw_policy_AddRef()

static ULONG WINAPI fw_policy_AddRef ( INetFwPolicy *  iface)
static

Definition at line 834 of file policy.c.

836{
839}
#define InterlockedIncrement
Definition: armddk.h:53
static fw_policy * impl_from_INetFwPolicy(INetFwPolicy *iface)
Definition: policy.c:41
LONG refs
Definition: policy.c:38

◆ fw_policy_get_CurrentProfile()

static HRESULT WINAPI fw_policy_get_CurrentProfile ( INetFwPolicy *  iface,
INetFwProfile **  profile 
)
static

Definition at line 952 of file policy.c.

955{
957
958 TRACE("%p, %p\n", This, profile);
959 return NetFwProfile_create( NULL, (void **)profile );
960}
#define NULL
Definition: types.h:112
HRESULT NetFwProfile_create(IUnknown *, LPVOID *)
Definition: profile.c:331
#define profile
Definition: kernel32.h:12

◆ fw_policy_GetIDsOfNames()

static HRESULT WINAPI fw_policy_GetIDsOfNames ( INetFwPolicy *  iface,
REFIID  riid,
LPOLESTR *  rgszNames,
UINT  cNames,
LCID  lcid,
DISPID *  rgDispId 
)
static

Definition at line 901 of file policy.c.

908{
911 HRESULT hr;
912
913 TRACE("%p %s %p %u %lu %p\n", This, debugstr_guid(riid), rgszNames, cNames, lcid, rgDispId);
914
916 if (SUCCEEDED(hr))
917 {
918 hr = ITypeInfo_GetIDsOfNames( typeinfo, rgszNames, cNames, rgDispId );
919 ITypeInfo_Release( typeinfo );
920 }
921 return hr;
922}
HRESULT get_typeinfo(enum type_id tid, ITypeInfo **ret)
Definition: apps.c:125
HRESULT hr
Definition: delayimp.cpp:582
LCID lcid
Definition: locale.c:5660
@ INetFwPolicy_tid
REFIID riid
Definition: atlbase.h:39
#define SUCCEEDED(hr)
Definition: intsafe.h:50
#define debugstr_guid
Definition: kernel32.h:35

◆ fw_policy_GetProfileByType()

static HRESULT WINAPI fw_policy_GetProfileByType ( INetFwPolicy *  iface,
NET_FW_PROFILE_TYPE  profileType,
INetFwProfile **  profile 
)
static

Definition at line 962 of file policy.c.

966{
968
969 FIXME("%p, %u, %p\n", This, profileType, profile);
970 return E_NOTIMPL;
971}
#define FIXME(fmt,...)
Definition: precomp.h:53
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ fw_policy_GetTypeInfo()

static HRESULT WINAPI fw_policy_GetTypeInfo ( INetFwPolicy *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 889 of file policy.c.

894{
896
897 TRACE("%p %u %lu %p\n", This, iTInfo, lcid, ppTInfo);
898 return get_typeinfo( INetFwPolicy_tid, ppTInfo );
899}

◆ fw_policy_GetTypeInfoCount()

static HRESULT WINAPI fw_policy_GetTypeInfoCount ( INetFwPolicy *  iface,
UINT *  pctinfo 
)
static

Definition at line 878 of file policy.c.

881{
883
884 TRACE("%p %p\n", This, pctinfo);
885 *pctinfo = 1;
886 return S_OK;
887}

◆ fw_policy_Invoke()

static HRESULT WINAPI fw_policy_Invoke ( INetFwPolicy *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT *  pVarResult,
EXCEPINFO *  pExcepInfo,
UINT *  puArgErr 
)
static

Definition at line 924 of file policy.c.

934{
937 HRESULT hr;
938
939 TRACE("%p %ld %s %ld %d %p %p %p %p\n", This, dispIdMember, debugstr_guid(riid),
940 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
941
943 if (SUCCEEDED(hr))
944 {
945 hr = ITypeInfo_Invoke( typeinfo, &This->INetFwPolicy_iface, dispIdMember,
946 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr );
947 ITypeInfo_Release( typeinfo );
948 }
949 return hr;
950}
WINBASEAPI _In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon_undoc.h:337

◆ fw_policy_QueryInterface()

static HRESULT WINAPI fw_policy_QueryInterface ( INetFwPolicy *  iface,
REFIID  riid,
void **  ppvObject 
)
static

Definition at line 854 of file policy.c.

858{
860
861 TRACE("%p %s %p\n", This, debugstr_guid( riid ), ppvObject );
862
863 if ( IsEqualGUID( riid, &IID_INetFwPolicy ) ||
866 {
867 *ppvObject = iface;
868 }
869 else
870 {
871 FIXME("interface %s not implemented\n", debugstr_guid(riid));
872 return E_NOINTERFACE;
873 }
874 INetFwPolicy_AddRef( iface );
875 return S_OK;
876}
const GUID IID_IUnknown
const GUID IID_IDispatch
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
#define E_NOINTERFACE
Definition: winerror.h:3479

◆ fw_policy_Release()

static ULONG WINAPI fw_policy_Release ( INetFwPolicy *  iface)
static

Definition at line 841 of file policy.c.

843{
846 if (!refs)
847 {
848 TRACE("destroying %p\n", fw_policy);
849 free( fw_policy );
850 }
851 return refs;
852}
#define InterlockedDecrement
Definition: armddk.h:52
#define free
Definition: debug_ros.c:5
LONG refs
Definition: port.c:62
long LONG
Definition: pedump.c:60

◆ fwpolicy2_AddRef()

static ULONG WINAPI fwpolicy2_AddRef ( INetFwPolicy2 *  iface)
static

Definition at line 1030 of file policy.c.

1031{
1034}
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53

◆ fwpolicy2_EnableRuleGroup()

static HRESULT WINAPI fwpolicy2_EnableRuleGroup ( INetFwPolicy2 *  iface,
LONG  bitmask,
BSTR  group,
VARIANT_BOOL  enable 
)
static

Definition at line 1214 of file policy.c.

1215{
1217
1218 FIXME("%p %ld %s %d\n", This, bitmask, debugstr_w(group), enable);
1219 return E_NOTIMPL;
1220}
GLboolean GLuint group
Definition: glext.h:11120
GLboolean enable
Definition: glext.h:11120
#define debugstr_w
Definition: kernel32.h:32

◆ fwpolicy2_get_BlockAllInboundTraffic()

static HRESULT WINAPI fwpolicy2_get_BlockAllInboundTraffic ( INetFwPolicy2 *  iface,
NET_FW_PROFILE_TYPE2  profileType,
VARIANT_BOOL *  block 
)
static

Definition at line 1143 of file policy.c.

1144{
1146
1147 FIXME("%p %d %p\n", This, profileType, block);
1148 return E_NOTIMPL;
1149}
static unsigned int block
Definition: xmlmemory.c:101

◆ fwpolicy2_get_CurrentProfileTypes()

static HRESULT WINAPI fwpolicy2_get_CurrentProfileTypes ( INetFwPolicy2 *  iface,
LONG *  profile 
)
static

Definition at line 1104 of file policy.c.

1105{
1107
1108 FIXME("%p %p\n", This, profile);
1109 return E_NOTIMPL;
1110}

◆ fwpolicy2_get_DefaultInboundAction()

static HRESULT WINAPI fwpolicy2_get_DefaultInboundAction ( INetFwPolicy2 *  iface,
NET_FW_PROFILE_TYPE2  profileType,
NET_FW_ACTION *  action 
)
static

Definition at line 1238 of file policy.c.

1239{
1241
1242 FIXME("%p %d %p\n", This, profileType, action);
1243 return E_NOTIMPL;
1244}
action
Definition: namespace.c:707

◆ fwpolicy2_get_DefaultOutboundAction()

static HRESULT WINAPI fwpolicy2_get_DefaultOutboundAction ( INetFwPolicy2 *  iface,
NET_FW_PROFILE_TYPE2  profileType,
NET_FW_ACTION *  action 
)
static

Definition at line 1254 of file policy.c.

1255{
1257
1258 FIXME("%p %d %p\n", This, profileType, action);
1259 return E_NOTIMPL;
1260}

◆ fwpolicy2_get_ExcludedInterfaces()

static HRESULT WINAPI fwpolicy2_get_ExcludedInterfaces ( INetFwPolicy2 *  iface,
NET_FW_PROFILE_TYPE2  profileType,
VARIANT *  interfaces 
)
static

Definition at line 1128 of file policy.c.

1129{
1131
1132 FIXME("%p %d %p\n", This, profileType, interfaces);
1133 return E_NOTIMPL;
1134}

◆ fwpolicy2_get_FirewallEnabled()

static HRESULT WINAPI fwpolicy2_get_FirewallEnabled ( INetFwPolicy2 *  iface,
NET_FW_PROFILE_TYPE2  profileType,
VARIANT_BOOL *  enabled 
)
static

Definition at line 1112 of file policy.c.

1113{
1115
1116 FIXME("%p %d %p\n", This, profileType, enabled);
1117 return E_NOTIMPL;
1118}
GLenum GLenum GLsizei const GLuint GLboolean enabled
Definition: glext.h:7750

◆ fwpolicy2_get_IsRuleGroupCurrentlyEnabled()

static HRESULT WINAPI fwpolicy2_get_IsRuleGroupCurrentlyEnabled ( INetFwPolicy2 *  iface,
BSTR  group,
VARIANT_BOOL *  enabled 
)
static

Definition at line 1270 of file policy.c.

1271{
1273
1274 FIXME("%p %s %p\n", This, debugstr_w(group), enabled);
1275 return E_NOTIMPL;
1276}

◆ fwpolicy2_get_LocalPolicyModifyState()

static HRESULT WINAPI fwpolicy2_get_LocalPolicyModifyState ( INetFwPolicy2 *  iface,
NET_FW_MODIFY_STATE *  modifyState 
)
static

Definition at line 1278 of file policy.c.

1279{
1281
1282 FIXME("%p %p\n", This, modifyState);
1283 return E_NOTIMPL;
1284}

◆ fwpolicy2_get_NotificationsDisabled()

static HRESULT WINAPI fwpolicy2_get_NotificationsDisabled ( INetFwPolicy2 *  iface,
NET_FW_PROFILE_TYPE2  profileType,
VARIANT_BOOL *  disabled 
)
static

Definition at line 1159 of file policy.c.

1160{
1162
1163 FIXME("%p %d %p\n", This, profileType, disabled);
1164 return E_NOTIMPL;
1165}

◆ fwpolicy2_get_Rules()

static HRESULT WINAPI fwpolicy2_get_Rules ( INetFwPolicy2 *  iface,
INetFwRules **  rules 
)
static

Definition at line 1191 of file policy.c.

1192{
1194
1195 TRACE("%p %p\n", This, rules);
1196
1197 if(!rules)
1198 return E_POINTER;
1199
1200 *rules = This->fw_policy2_rules;
1201 INetFwRules_AddRef(This->fw_policy2_rules);
1202
1203 return S_OK;
1204}
#define E_POINTER
Definition: winerror.h:3480

◆ fwpolicy2_get_ServiceRestriction()

static HRESULT WINAPI fwpolicy2_get_ServiceRestriction ( INetFwPolicy2 *  iface,
INetFwServiceRestriction **  ServiceRestriction 
)
static

Definition at line 1206 of file policy.c.

1207{
1209
1210 FIXME("%p %p\n", This, ServiceRestriction);
1211 return E_NOTIMPL;
1212}

◆ fwpolicy2_get_UnicastResponsesToMulticastBroadcastDisabled()

static HRESULT WINAPI fwpolicy2_get_UnicastResponsesToMulticastBroadcastDisabled ( INetFwPolicy2 *  iface,
NET_FW_PROFILE_TYPE2  profileType,
VARIANT_BOOL *  disabled 
)
static

Definition at line 1175 of file policy.c.

1176{
1178
1179 FIXME("%p %d %p\n", This, profileType, disabled);
1180 return E_NOTIMPL;
1181}

◆ fwpolicy2_GetIDsOfNames()

static HRESULT WINAPI fwpolicy2_GetIDsOfNames ( INetFwPolicy2 *  iface,
REFIID  riid,
LPOLESTR *  rgszNames,
UINT  cNames,
LCID  lcid,
DISPID *  rgDispId 
)
static

Definition at line 1066 of file policy.c.

1068{
1071 HRESULT hr;
1072
1073 TRACE("%p %s %p %u %lu %p\n", This, debugstr_guid(riid), rgszNames, cNames, lcid, rgDispId);
1074
1076 if (SUCCEEDED(hr))
1077 {
1078 hr = ITypeInfo_GetIDsOfNames( typeinfo, rgszNames, cNames, rgDispId );
1079 ITypeInfo_Release( typeinfo );
1080 }
1081 return hr;
1082}
@ INetFwPolicy2_tid

◆ fwpolicy2_GetTypeInfo()

static HRESULT WINAPI fwpolicy2_GetTypeInfo ( INetFwPolicy2 *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  info 
)
static

Definition at line 1058 of file policy.c.

1059{
1061
1062 TRACE("%p %u %lu %p\n", This, iTInfo, lcid, info);
1064}

◆ fwpolicy2_GetTypeInfoCount()

static HRESULT WINAPI fwpolicy2_GetTypeInfoCount ( INetFwPolicy2 *  iface,
UINT *  pctinfo 
)
static

Definition at line 1049 of file policy.c.

1050{
1052
1053 TRACE("%p %p\n", This, pctinfo);
1054 *pctinfo = 1;
1055 return S_OK;
1056}

◆ fwpolicy2_Invoke()

static HRESULT WINAPI fwpolicy2_Invoke ( INetFwPolicy2 *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT *  pVarResult,
EXCEPINFO *  pExcepInfo,
UINT *  puArgErr 
)
static

Definition at line 1084 of file policy.c.

1086{
1089 HRESULT hr;
1090
1091 TRACE("%p %ld %s %ld %d %p %p %p %p\n", This, dispIdMember, debugstr_guid(riid),
1092 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
1093
1095 if (SUCCEEDED(hr))
1096 {
1097 hr = ITypeInfo_Invoke( typeinfo, &This->INetFwPolicy2_iface, dispIdMember,
1098 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr );
1099 ITypeInfo_Release( typeinfo );
1100 }
1101 return hr;
1102}

◆ fwpolicy2_IsRuleGroupEnabled()

static HRESULT WINAPI fwpolicy2_IsRuleGroupEnabled ( INetFwPolicy2 *  iface,
LONG  bitmask,
BSTR  group,
VARIANT_BOOL *  enabled 
)
static

Definition at line 1222 of file policy.c.

1223{
1225
1226 FIXME("%p %ld %s %p\n", This, bitmask, debugstr_w(group), enabled);
1227 return E_NOTIMPL;
1228}

◆ fwpolicy2_put_BlockAllInboundTraffic()

static HRESULT WINAPI fwpolicy2_put_BlockAllInboundTraffic ( INetFwPolicy2 *  iface,
NET_FW_PROFILE_TYPE2  profileType,
VARIANT_BOOL  block 
)
static

Definition at line 1151 of file policy.c.

1152{
1154
1155 FIXME("%p %d %d\n", This, profileType, block);
1156 return E_NOTIMPL;
1157}

◆ fwpolicy2_put_DefaultInboundAction()

static HRESULT WINAPI fwpolicy2_put_DefaultInboundAction ( INetFwPolicy2 *  iface,
NET_FW_PROFILE_TYPE2  profileType,
NET_FW_ACTION  action 
)
static

Definition at line 1246 of file policy.c.

1247{
1249
1250 FIXME("%p %d %d\n", This, profileType, action);
1251 return E_NOTIMPL;
1252}

◆ fwpolicy2_put_DefaultOutboundAction()

static HRESULT WINAPI fwpolicy2_put_DefaultOutboundAction ( INetFwPolicy2 *  iface,
NET_FW_PROFILE_TYPE2  profileType,
NET_FW_ACTION  action 
)
static

Definition at line 1262 of file policy.c.

1263{
1265
1266 FIXME("%p %d %d\n", This, profileType, action);
1267 return E_NOTIMPL;
1268}

◆ fwpolicy2_put_ExcludedInterfaces()

static HRESULT WINAPI fwpolicy2_put_ExcludedInterfaces ( INetFwPolicy2 *  iface,
NET_FW_PROFILE_TYPE2  profileType,
VARIANT  interfaces 
)
static

Definition at line 1136 of file policy.c.

1137{
1139 FIXME("%p %d\n", This, profileType);
1140 return E_NOTIMPL;
1141}

◆ fwpolicy2_put_FirewallEnabled()

static HRESULT WINAPI fwpolicy2_put_FirewallEnabled ( INetFwPolicy2 *  iface,
NET_FW_PROFILE_TYPE2  profileType,
VARIANT_BOOL  enabled 
)
static

Definition at line 1120 of file policy.c.

1121{
1123
1124 FIXME("%p %d %d\n", This, profileType, enabled);
1125 return E_NOTIMPL;
1126}

◆ fwpolicy2_put_NotificationsDisabled()

static HRESULT WINAPI fwpolicy2_put_NotificationsDisabled ( INetFwPolicy2 *  iface,
NET_FW_PROFILE_TYPE2  profileType,
VARIANT_BOOL  disabled 
)
static

Definition at line 1167 of file policy.c.

1168{
1170
1171 FIXME("%p %d %d\n", This, profileType, disabled);
1172 return E_NOTIMPL;
1173}

◆ fwpolicy2_put_UnicastResponsesToMulticastBroadcastDisabled()

static HRESULT WINAPI fwpolicy2_put_UnicastResponsesToMulticastBroadcastDisabled ( INetFwPolicy2 *  iface,
NET_FW_PROFILE_TYPE2  profileType,
VARIANT_BOOL  disabled 
)
static

Definition at line 1183 of file policy.c.

1184{
1186
1187 FIXME("%p %d %d\n", This, profileType, disabled);
1188 return E_NOTIMPL;
1189}

◆ fwpolicy2_QueryInterface()

static HRESULT WINAPI fwpolicy2_QueryInterface ( INetFwPolicy2 *  iface,
REFIID  riid,
void **  out 
)
static

Definition at line 1004 of file policy.c.

1005{
1007
1008 TRACE("%p %s %p\n", This, debugstr_guid( riid ), out );
1009
1010 if ( IsEqualGUID( riid, &IID_INetFwPolicy2 ) ||
1013 {
1014 *out = iface;
1015 }
1016 else if( IsEqualGUID( riid, &IID_INetFwRules ) )
1017 {
1018 TRACE("INetFwRules not supported\n");
1019 return E_NOINTERFACE;
1020 }
1021 else
1022 {
1023 FIXME("interface %s not implemented\n", debugstr_guid(riid));
1024 return E_NOINTERFACE;
1025 }
1026 INetFwPolicy2_AddRef( iface );
1027 return S_OK;
1028}
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
Definition: wcsftime.cpp:383

◆ fwpolicy2_Release()

static ULONG WINAPI fwpolicy2_Release ( INetFwPolicy2 *  iface)
static

Definition at line 1036 of file policy.c.

1037{
1040 if (!refs)
1041 {
1042 INetFwRules_Release(fw_policy->fw_policy2_rules);
1043 TRACE("destroying %p\n", fw_policy);
1044 free( fw_policy );
1045 }
1046 return refs;
1047}

◆ fwpolicy2_RestoreLocalFirewallDefaults()

static HRESULT WINAPI fwpolicy2_RestoreLocalFirewallDefaults ( INetFwPolicy2 *  iface)
static

Definition at line 1230 of file policy.c.

1231{
1233
1234 FIXME("%p\n", This);
1235 return E_NOTIMPL;
1236}

◆ impl_from_INetFwPolicy()

static fw_policy * impl_from_INetFwPolicy ( INetFwPolicy *  iface)
inlinestatic

◆ impl_from_INetFwPolicy2()

◆ impl_from_INetFwRule()

◆ impl_from_INetFwRules()

◆ netfw_rule_AddRef()

static ULONG WINAPI netfw_rule_AddRef ( INetFwRule *  iface)
static

Definition at line 93 of file policy.c.

95{
97 return InterlockedIncrement( &This->refs );
98}
static fw_rule * impl_from_INetFwRule(INetFwRule *iface)
Definition: policy.c:64

◆ netfw_rule_get_Action()

static HRESULT WINAPI netfw_rule_get_Action ( INetFwRule *  iface,
NET_FW_ACTION *  action 
)
static

Definition at line 527 of file policy.c.

530{
532
533 FIXME("%p, %p\n", This, action);
534 return E_NOTIMPL;
535}

◆ netfw_rule_get_ApplicationName()

static HRESULT WINAPI netfw_rule_get_ApplicationName ( INetFwRule *  iface,
BSTR *  app 
)
static

Definition at line 227 of file policy.c.

230{
232
233 FIXME("%p, %p\n", This, app);
234 return E_NOTIMPL;
235}

◆ netfw_rule_get_Description()

static HRESULT WINAPI netfw_rule_get_Description ( INetFwRule *  iface,
BSTR *  desc 
)
static

Definition at line 207 of file policy.c.

210{
212
213 FIXME("%p, %p\n", This, desc);
214 return E_NOTIMPL;
215}
D3D11_SHADER_VARIABLE_DESC desc
Definition: reflection.c:1683

◆ netfw_rule_get_Direction()

static HRESULT WINAPI netfw_rule_get_Direction ( INetFwRule *  iface,
NET_FW_RULE_DIRECTION *  dir 
)
static

Definition at line 387 of file policy.c.

390{
392
393 FIXME("%p, %p\n", This, dir);
394 return E_NOTIMPL;
395}
unsigned int dir
Definition: maze.c:112

◆ netfw_rule_get_EdgeTraversal()

static HRESULT WINAPI netfw_rule_get_EdgeTraversal ( INetFwRule *  iface,
VARIANT_BOOL *  enabled 
)
static

Definition at line 507 of file policy.c.

510{
512
513 FIXME("%p, %p\n", This, enabled);
514 return E_NOTIMPL;
515}

◆ netfw_rule_get_Enabled()

static HRESULT WINAPI netfw_rule_get_Enabled ( INetFwRule *  iface,
VARIANT_BOOL *  enabled 
)
static

Definition at line 447 of file policy.c.

450{
452
453 FIXME("%p, %p\n", This, enabled);
454 return E_NOTIMPL;
455}

◆ netfw_rule_get_Grouping()

static HRESULT WINAPI netfw_rule_get_Grouping ( INetFwRule *  iface,
BSTR *  grouping 
)
static

Definition at line 467 of file policy.c.

470{
472
473 FIXME("%p, %p\n", This, grouping);
474 return E_NOTIMPL;
475}

◆ netfw_rule_get_IcmpTypesAndCodes()

static HRESULT WINAPI netfw_rule_get_IcmpTypesAndCodes ( INetFwRule *  iface,
BSTR *  codes 
)
static

Definition at line 367 of file policy.c.

370{
372
373 FIXME("%p, %p\n", This, codes);
374 return E_NOTIMPL;
375}

◆ netfw_rule_get_Interfaces()

static HRESULT WINAPI netfw_rule_get_Interfaces ( INetFwRule *  iface,
VARIANT *  interfaces 
)
static

Definition at line 407 of file policy.c.

410{
412
413 FIXME("%p, %p\n", This, interfaces);
414 return E_NOTIMPL;
415}

◆ netfw_rule_get_InterfaceTypes()

static HRESULT WINAPI netfw_rule_get_InterfaceTypes ( INetFwRule *  iface,
BSTR *  types 
)
static

Definition at line 427 of file policy.c.

430{
432
433 FIXME("%p, %p\n", This, types);
434 return E_NOTIMPL;
435}
Definition: cmds.c:130

◆ netfw_rule_get_LocalAddresses()

static HRESULT WINAPI netfw_rule_get_LocalAddresses ( INetFwRule *  iface,
BSTR *  addresses 
)
static

Definition at line 327 of file policy.c.

330{
332
333 FIXME("%p, %p\n", This, addresses);
334 return E_NOTIMPL;
335}

◆ netfw_rule_get_LocalPorts()

static HRESULT WINAPI netfw_rule_get_LocalPorts ( INetFwRule *  iface,
BSTR *  ports 
)
static

Definition at line 287 of file policy.c.

290{
292
293 FIXME("%p, %p\n", This, ports);
294 return E_NOTIMPL;
295}

◆ netfw_rule_get_Name()

static HRESULT WINAPI netfw_rule_get_Name ( INetFwRule *  iface,
BSTR *  name 
)
static

Definition at line 187 of file policy.c.

190{
192
193 FIXME("%p, %p\n", This, name);
194 return E_NOTIMPL;
195}
Definition: name.c:39

◆ netfw_rule_get_Profiles()

static HRESULT WINAPI netfw_rule_get_Profiles ( INetFwRule *  iface,
LONG *  profiles 
)
static

Definition at line 487 of file policy.c.

490{
492
493 FIXME("%p, %p\n", This, profiles);
494 return E_NOTIMPL;
495}

◆ netfw_rule_get_Protocol()

static HRESULT WINAPI netfw_rule_get_Protocol ( INetFwRule *  iface,
LONG *  protocol 
)
static

Definition at line 267 of file policy.c.

270{
272
273 FIXME("%p, %p\n", This, protocol);
274 return E_NOTIMPL;
275}

◆ netfw_rule_get_RemoteAddresses()

static HRESULT WINAPI netfw_rule_get_RemoteAddresses ( INetFwRule *  iface,
BSTR *  addresses 
)
static

Definition at line 347 of file policy.c.

350{
352
353 FIXME("%p, %p\n", This, addresses);
354 return E_NOTIMPL;
355}

◆ netfw_rule_get_RemotePorts()

static HRESULT WINAPI netfw_rule_get_RemotePorts ( INetFwRule *  iface,
BSTR *  ports 
)
static

Definition at line 307 of file policy.c.

310{
312
313 FIXME("%p, %p\n", This, ports);
314 return E_NOTIMPL;
315}

◆ netfw_rule_get_ServiceName()

static HRESULT WINAPI netfw_rule_get_ServiceName ( INetFwRule *  iface,
BSTR *  service 
)
static

Definition at line 247 of file policy.c.

250{
252
253 FIXME("%p, %p\n", This, service);
254 return E_NOTIMPL;
255}

◆ netfw_rule_GetIDsOfNames()

static HRESULT WINAPI netfw_rule_GetIDsOfNames ( INetFwRule *  iface,
REFIID  riid,
LPOLESTR *  rgszNames,
UINT  cNames,
LCID  lcid,
DISPID *  rgDispId 
)
static

Definition at line 136 of file policy.c.

143{
146 HRESULT hr;
147
148 TRACE("%p %s %p %u %lu %p\n", This, debugstr_guid(riid), rgszNames, cNames, lcid, rgDispId);
149
151 if (SUCCEEDED(hr))
152 {
153 hr = ITypeInfo_GetIDsOfNames( typeinfo, rgszNames, cNames, rgDispId );
154 ITypeInfo_Release( typeinfo );
155 }
156 return hr;
157}
@ INetFwRule_tid

◆ netfw_rule_GetTypeInfo()

static HRESULT WINAPI netfw_rule_GetTypeInfo ( INetFwRule *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 124 of file policy.c.

129{
131
132 TRACE("%p %u %lu %p\n", This, iTInfo, lcid, ppTInfo);
133 return get_typeinfo( INetFwRule_tid, ppTInfo );
134}

◆ netfw_rule_GetTypeInfoCount()

static HRESULT WINAPI netfw_rule_GetTypeInfoCount ( INetFwRule *  iface,
UINT *  pctinfo 
)
static

Definition at line 113 of file policy.c.

116{
118
119 TRACE("%p %p\n", This, pctinfo);
120 *pctinfo = 1;
121 return S_OK;
122}

◆ netfw_rule_Invoke()

static HRESULT WINAPI netfw_rule_Invoke ( INetFwRule *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT *  pVarResult,
EXCEPINFO *  pExcepInfo,
UINT *  puArgErr 
)
static

Definition at line 159 of file policy.c.

169{
172 HRESULT hr;
173
174 TRACE("%p %ld %s %ld %d %p %p %p %p\n", This, dispIdMember, debugstr_guid(riid),
175 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
176
178 if (SUCCEEDED(hr))
179 {
180 hr = ITypeInfo_Invoke( typeinfo, &This->INetFwRule_iface, dispIdMember,
181 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr );
182 ITypeInfo_Release( typeinfo );
183 }
184 return hr;
185}

◆ netfw_rule_put_Action()

static HRESULT WINAPI netfw_rule_put_Action ( INetFwRule *  iface,
NET_FW_ACTION  action 
)
static

Definition at line 537 of file policy.c.

540{
542
543 FIXME("%p, %u\n", This, action);
544 return S_OK;
545}

◆ netfw_rule_put_ApplicationName()

static HRESULT WINAPI netfw_rule_put_ApplicationName ( INetFwRule *  iface,
BSTR  app 
)
static

Definition at line 237 of file policy.c.

240{
242
243 FIXME("%p, %s\n", This, debugstr_w(app));
244 return S_OK;
245}

◆ netfw_rule_put_Description()

static HRESULT WINAPI netfw_rule_put_Description ( INetFwRule *  iface,
BSTR  desc 
)
static

Definition at line 217 of file policy.c.

220{
222
223 FIXME("%p, %s\n", This, debugstr_w(desc));
224 return S_OK;
225}

◆ netfw_rule_put_Direction()

static HRESULT WINAPI netfw_rule_put_Direction ( INetFwRule *  iface,
NET_FW_RULE_DIRECTION  dir 
)
static

Definition at line 397 of file policy.c.

400{
402
403 FIXME("%p, %u\n", This, dir);
404 return S_OK;
405}

◆ netfw_rule_put_EdgeTraversal()

static HRESULT WINAPI netfw_rule_put_EdgeTraversal ( INetFwRule *  iface,
VARIANT_BOOL  enabled 
)
static

Definition at line 517 of file policy.c.

520{
522
523 FIXME("%p, %#x\n", This, enabled);
524 return S_OK;
525}

◆ netfw_rule_put_Enabled()

static HRESULT WINAPI netfw_rule_put_Enabled ( INetFwRule *  iface,
VARIANT_BOOL  enabled 
)
static

Definition at line 457 of file policy.c.

460{
462
463 FIXME("%p, %#x\n", This, enabled);
464 return S_OK;
465}

◆ netfw_rule_put_Grouping()

static HRESULT WINAPI netfw_rule_put_Grouping ( INetFwRule *  iface,
BSTR  grouping 
)
static

Definition at line 477 of file policy.c.

480{
482
483 FIXME("%p, %s\n", This, debugstr_w(grouping));
484 return S_OK;
485}

◆ netfw_rule_put_IcmpTypesAndCodes()

static HRESULT WINAPI netfw_rule_put_IcmpTypesAndCodes ( INetFwRule *  iface,
BSTR  codes 
)
static

Definition at line 377 of file policy.c.

380{
382
383 FIXME("%p, %s\n", This, debugstr_w(codes));
384 return S_OK;
385}

◆ netfw_rule_put_Interfaces()

static HRESULT WINAPI netfw_rule_put_Interfaces ( INetFwRule *  iface,
VARIANT  interfaces 
)
static

Definition at line 417 of file policy.c.

420{
422
423 FIXME("%p, %s\n", This, debugstr_variant(&interfaces));
424 return S_OK;
425}
static const char * debugstr_variant(const VARIANT *var)
Definition: dom.c:505

◆ netfw_rule_put_InterfaceTypes()

static HRESULT WINAPI netfw_rule_put_InterfaceTypes ( INetFwRule *  iface,
BSTR  types 
)
static

Definition at line 437 of file policy.c.

440{
442
443 FIXME("%p, %s\n", This, debugstr_w(types));
444 return S_OK;
445}

◆ netfw_rule_put_LocalAddresses()

static HRESULT WINAPI netfw_rule_put_LocalAddresses ( INetFwRule *  iface,
BSTR  addresses 
)
static

Definition at line 337 of file policy.c.

340{
342
343 FIXME("%p, %s\n", This, debugstr_w(addresses));
344 return S_OK;
345}

◆ netfw_rule_put_LocalPorts()

static HRESULT WINAPI netfw_rule_put_LocalPorts ( INetFwRule *  iface,
BSTR  ports 
)
static

Definition at line 297 of file policy.c.

300{
302
303 FIXME("%p, %s\n", This, debugstr_w(ports));
304 return S_OK;
305}

◆ netfw_rule_put_Name()

static HRESULT WINAPI netfw_rule_put_Name ( INetFwRule *  iface,
BSTR  name 
)
static

Definition at line 197 of file policy.c.

200{
202
203 FIXME("%p, %s\n", This, debugstr_w(name));
204 return S_OK;
205}

◆ netfw_rule_put_Profiles()

static HRESULT WINAPI netfw_rule_put_Profiles ( INetFwRule *  iface,
LONG  profiles 
)
static

Definition at line 497 of file policy.c.

500{
502
503 FIXME("%p, %#lx\n", This, profiles);
504 return S_OK;
505}

◆ netfw_rule_put_Protocol()

static HRESULT WINAPI netfw_rule_put_Protocol ( INetFwRule *  iface,
LONG  protocol 
)
static

Definition at line 277 of file policy.c.

280{
282
283 FIXME("%p, %ld\n", This, protocol);
284 return S_OK;
285}

◆ netfw_rule_put_RemoteAddresses()

static HRESULT WINAPI netfw_rule_put_RemoteAddresses ( INetFwRule *  iface,
BSTR  addresses 
)
static

Definition at line 357 of file policy.c.

360{
362
363 FIXME("%p, %s\n", This, debugstr_w(addresses));
364 return S_OK;
365}

◆ netfw_rule_put_RemotePorts()

static HRESULT WINAPI netfw_rule_put_RemotePorts ( INetFwRule *  iface,
BSTR  ports 
)
static

Definition at line 317 of file policy.c.

320{
322
323 FIXME("%p, %s\n", This, debugstr_w(ports));
324 return S_OK;
325}

◆ netfw_rule_put_ServiceName()

static HRESULT WINAPI netfw_rule_put_ServiceName ( INetFwRule *  iface,
BSTR  service 
)
static

Definition at line 257 of file policy.c.

260{
262
263 FIXME("%p, %s\n", This, debugstr_w(service));
264 return S_OK;
265}

◆ netfw_rule_QueryInterface()

static HRESULT WINAPI netfw_rule_QueryInterface ( INetFwRule *  iface,
REFIID  riid,
void **  object 
)
static

Definition at line 69 of file policy.c.

73{
75
76 TRACE("%p %s %p\n", This, debugstr_guid( riid ), object );
77
78 if ( IsEqualGUID( riid, &IID_INetFwRule ) ||
81 {
82 *object = iface;
83 }
84 else
85 {
86 FIXME("interface %s not implemented\n", debugstr_guid(riid));
87 return E_NOINTERFACE;
88 }
89 INetFwRule_AddRef( iface );
90 return S_OK;
91}

◆ netfw_rule_Release()

static ULONG WINAPI netfw_rule_Release ( INetFwRule *  iface)
static

Definition at line 100 of file policy.c.

102{
105 if (!refs)
106 {
107 TRACE("destroying %p\n", This);
108 free( This );
109 }
110 return refs;
111}

◆ netfw_rules_Add()

static HRESULT WINAPI netfw_rules_Add ( INetFwRules *  iface,
INetFwRule *  rule 
)
static

Definition at line 755 of file policy.c.

758{
760
761 FIXME("%p, %p\n", This, rule);
762 return S_OK;
763}
static fw_rules * impl_from_INetFwRules(INetFwRules *iface)
Definition: policy.c:618

◆ netfw_rules_AddRef()

static ULONG WINAPI netfw_rules_AddRef ( INetFwRules *  iface)
static

Definition at line 647 of file policy.c.

649{
651 return InterlockedIncrement( &This->refs );
652}

◆ netfw_rules_get__NewEnum()

static HRESULT WINAPI netfw_rules_get__NewEnum ( INetFwRules *  iface,
IUnknown **  newEnum 
)
static

Definition at line 786 of file policy.c.

789{
791
792 FIXME("%p, %p\n", This, newEnum);
793
794 if (!newEnum) return E_POINTER;
795 *newEnum = NULL;
796
797 return E_NOTIMPL;
798}

◆ netfw_rules_get_Count()

static HRESULT WINAPI netfw_rules_get_Count ( INetFwRules *  iface,
LONG *  count 
)
static

Definition at line 741 of file policy.c.

744{
746
747 FIXME("%p, %p\n", This, count);
748
749 if (count)
750 *count = 0;
751
752 return S_OK;
753}
GLuint GLuint GLsizei count
Definition: gl.h:1545

◆ netfw_rules_GetIDsOfNames()

static HRESULT WINAPI netfw_rules_GetIDsOfNames ( INetFwRules *  iface,
REFIID  riid,
LPOLESTR *  rgszNames,
UINT  cNames,
LCID  lcid,
DISPID *  rgDispId 
)
static

Definition at line 690 of file policy.c.

697{
700 HRESULT hr;
701
702 TRACE("%p %s %p %u %lu %p\n", This, debugstr_guid(riid), rgszNames, cNames, lcid, rgDispId);
703
705 if (SUCCEEDED(hr))
706 {
707 hr = ITypeInfo_GetIDsOfNames( typeinfo, rgszNames, cNames, rgDispId );
708 ITypeInfo_Release( typeinfo );
709 }
710 return hr;
711}
@ INetFwRules_tid

◆ netfw_rules_GetTypeInfo()

static HRESULT WINAPI netfw_rules_GetTypeInfo ( INetFwRules *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 678 of file policy.c.

683{
685
686 TRACE("%p %u %lu %p\n", This, iTInfo, lcid, ppTInfo);
687 return get_typeinfo( INetFwRules_tid, ppTInfo );
688}

◆ netfw_rules_GetTypeInfoCount()

static HRESULT WINAPI netfw_rules_GetTypeInfoCount ( INetFwRules *  iface,
UINT *  pctinfo 
)
static

Definition at line 667 of file policy.c.

670{
672
673 TRACE("%p %p\n", This, pctinfo);
674 *pctinfo = 1;
675 return S_OK;
676}

◆ netfw_rules_Invoke()

static HRESULT WINAPI netfw_rules_Invoke ( INetFwRules *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT *  pVarResult,
EXCEPINFO *  pExcepInfo,
UINT *  puArgErr 
)
static

Definition at line 713 of file policy.c.

723{
726 HRESULT hr;
727
728 TRACE("%p %ld %s %ld %d %p %p %p %p\n", This, dispIdMember, debugstr_guid(riid),
729 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
730
732 if (SUCCEEDED(hr))
733 {
734 hr = ITypeInfo_Invoke( typeinfo, &This->INetFwRules_iface, dispIdMember,
735 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr );
736 ITypeInfo_Release( typeinfo );
737 }
738 return hr;
739}

◆ netfw_rules_Item()

static HRESULT WINAPI netfw_rules_Item ( INetFwRules *  iface,
BSTR  name,
INetFwRule **  rule 
)
static

Definition at line 775 of file policy.c.

779{
781
782 FIXME("%p, %s, %p\n", This, debugstr_w(name), rule);
783 return E_NOTIMPL;
784}

◆ netfw_rules_QueryInterface()

static HRESULT WINAPI netfw_rules_QueryInterface ( INetFwRules *  iface,
REFIID  riid,
void **  object 
)
static

Definition at line 623 of file policy.c.

627{
629
630 TRACE("%p %s %p\n", This, debugstr_guid( riid ), object );
631
632 if ( IsEqualGUID( riid, &IID_INetFwRules ) ||
635 {
636 *object = iface;
637 }
638 else
639 {
640 FIXME("interface %s not implemented\n", debugstr_guid(riid));
641 return E_NOINTERFACE;
642 }
643 INetFwRules_AddRef( iface );
644 return S_OK;
645}

◆ netfw_rules_Release()

static ULONG WINAPI netfw_rules_Release ( INetFwRules *  iface)
static

Definition at line 654 of file policy.c.

656{
659 if (!refs)
660 {
661 TRACE("destroying %p\n", This);
662 free( This );
663 }
664 return refs;
665}

◆ netfw_rules_Remove()

static HRESULT WINAPI netfw_rules_Remove ( INetFwRules *  iface,
BSTR  name 
)
static

Definition at line 765 of file policy.c.

768{
770
771 FIXME("%p, %s\n", This, debugstr_w(name));
772 return S_OK;
773}

◆ NetFwPolicy2_create()

HRESULT NetFwPolicy2_create ( IUnknown *  outer,
void **  obj 
)

Definition at line 1319 of file policy.c.

1320{
1321 fw_policy2 *fp;
1322
1323 TRACE("(%p,%p)\n", outer, obj);
1324
1325 fp = malloc( sizeof(*fp) );
1326 if (!fp) return E_OUTOFMEMORY;
1327
1329 fp->refs = 1;
1330
1331 *obj = &fp->INetFwPolicy2_iface;
1332
1334 {
1335 free( fp );
1336 return E_OUTOFMEMORY;
1337 }
1338
1339 TRACE("returning iface %p\n", *obj);
1340 return S_OK;
1341}
static const struct INetFwPolicy2Vtbl fw_policy2_vtbl
Definition: policy.c:1286
static HRESULT create_INetFwRules(INetFwRules **object)
Definition: policy.c:816
#define FAILED(hr)
Definition: intsafe.h:51
static IUnknown * outer
Definition: compobj.c:82
INetFwRules * fw_policy2_rules
Definition: policy.c:49
LONG refs
Definition: policy.c:50
INetFwPolicy2 INetFwPolicy2_iface
Definition: policy.c:48

◆ NetFwPolicy_create()

HRESULT NetFwPolicy_create ( IUnknown *  pUnkOuter,
LPVOID *  ppObj 
)

Definition at line 986 of file policy.c.

987{
988 fw_policy *fp;
989
990 TRACE("(%p,%p)\n", pUnkOuter, ppObj);
991
992 fp = malloc( sizeof(*fp) );
993 if (!fp) return E_OUTOFMEMORY;
994
996 fp->refs = 1;
997
998 *ppObj = &fp->INetFwPolicy_iface;
999
1000 TRACE("returning iface %p\n", *ppObj);
1001 return S_OK;
1002}
static const struct INetFwPolicyVtbl fw_policy_vtbl
Definition: policy.c:973
INetFwPolicy INetFwPolicy_iface
Definition: policy.c:37

Referenced by fw_manager_get_LocalPolicy().

◆ NetFwRule_create()

HRESULT NetFwRule_create ( IUnknown *  outer,
void **  obj 
)

Definition at line 594 of file policy.c.

595{
596 fw_rule *rule;
597
598 TRACE("(%p)\n", obj);
599
600 rule = malloc( sizeof(*rule) );
601 if (!rule) return E_OUTOFMEMORY;
602
603 rule->INetFwRule_iface.lpVtbl = &fw_rule_vtbl;
604 rule->refs = 1;
605
606 *obj = &rule->INetFwRule_iface;
607
608 TRACE("returning iface %p\n", *obj);
609 return S_OK;
610}
static const struct INetFwRuleVtbl fw_rule_vtbl
Definition: policy.c:547
LONG refs
Definition: policy.c:61
INetFwRule INetFwRule_iface
Definition: policy.c:60

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( hnetcfg  )

Variable Documentation

◆ fw_policy2_vtbl

const struct INetFwPolicy2Vtbl fw_policy2_vtbl
static

Definition at line 1286 of file policy.c.

Referenced by NetFwPolicy2_create().

◆ fw_policy_vtbl

const struct INetFwPolicyVtbl fw_policy_vtbl
static
Initial value:
=
{
}
static HRESULT WINAPI fw_policy_GetProfileByType(INetFwPolicy *iface, NET_FW_PROFILE_TYPE profileType, INetFwProfile **profile)
Definition: policy.c:962
static ULONG WINAPI fw_policy_AddRef(INetFwPolicy *iface)
Definition: policy.c:834
static HRESULT WINAPI fw_policy_GetTypeInfo(INetFwPolicy *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: policy.c:889
static HRESULT WINAPI fw_policy_QueryInterface(INetFwPolicy *iface, REFIID riid, void **ppvObject)
Definition: policy.c:854
static HRESULT WINAPI fw_policy_get_CurrentProfile(INetFwPolicy *iface, INetFwProfile **profile)
Definition: policy.c:952
static HRESULT WINAPI fw_policy_GetIDsOfNames(INetFwPolicy *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: policy.c:901
static HRESULT WINAPI fw_policy_GetTypeInfoCount(INetFwPolicy *iface, UINT *pctinfo)
Definition: policy.c:878
static ULONG WINAPI fw_policy_Release(INetFwPolicy *iface)
Definition: policy.c:841
static HRESULT WINAPI fw_policy_Invoke(INetFwPolicy *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: policy.c:924

Definition at line 973 of file policy.c.

Referenced by NetFwPolicy_create().

◆ fw_rule_vtbl

const struct INetFwRuleVtbl fw_rule_vtbl
static

Definition at line 547 of file policy.c.

Referenced by NetFwRule_create().

◆ fw_rules_vtbl

const struct INetFwRulesVtbl fw_rules_vtbl
static
Initial value:
=
{
}
static ULONG WINAPI netfw_rules_Release(INetFwRules *iface)
Definition: policy.c:654
static HRESULT WINAPI netfw_rules_GetTypeInfoCount(INetFwRules *iface, UINT *pctinfo)
Definition: policy.c:667
static HRESULT WINAPI netfw_rules_Remove(INetFwRules *iface, BSTR name)
Definition: policy.c:765
static ULONG WINAPI netfw_rules_AddRef(INetFwRules *iface)
Definition: policy.c:647
static HRESULT WINAPI netfw_rules_GetTypeInfo(INetFwRules *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: policy.c:678
static HRESULT WINAPI netfw_rules_Item(INetFwRules *iface, BSTR name, INetFwRule **rule)
Definition: policy.c:775
static HRESULT WINAPI netfw_rules_get__NewEnum(INetFwRules *iface, IUnknown **newEnum)
Definition: policy.c:786
static HRESULT WINAPI netfw_rules_GetIDsOfNames(INetFwRules *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: policy.c:690
static HRESULT WINAPI netfw_rules_get_Count(INetFwRules *iface, LONG *count)
Definition: policy.c:741
static HRESULT WINAPI netfw_rules_QueryInterface(INetFwRules *iface, REFIID riid, void **object)
Definition: policy.c:623
static HRESULT WINAPI netfw_rules_Add(INetFwRules *iface, INetFwRule *rule)
Definition: policy.c:755
static HRESULT WINAPI netfw_rules_Invoke(INetFwRules *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: policy.c:713

Definition at line 800 of file policy.c.

Referenced by create_INetFwRules().