ReactOS  0.4.15-dev-1150-g593bcce
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_rules
 

Macros

#define COBJMACROS
 

Typedefs

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

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (hnetcfg)
 
static fw_policyimpl_from_INetFwPolicy (INetFwPolicy *iface)
 
static fw_policy2impl_from_INetFwPolicy2 (INetFwPolicy2 *iface)
 
static fw_rulesimpl_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 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_rules

Function Documentation

◆ create_INetFwRules()

static HRESULT create_INetFwRules ( INetFwRules **  object)
static

Definition at line 266 of file policy.c.

267 {
268  fw_rules *rules;
269 
270  TRACE("(%p)\n", object);
271 
272  rules = HeapAlloc( GetProcessHeap(), 0, sizeof(*rules) );
273  if (!rules) return E_OUTOFMEMORY;
274 
275  rules->INetFwRules_iface.lpVtbl = &fw_rules_vtbl;
276  rules->refs = 1;
277 
278  *object = &rules->INetFwRules_iface;
279 
280  TRACE("returning iface %p\n", *object);
281  return S_OK;
282 }
static const struct INetFwRulesVtbl fw_rules_vtbl
Definition: policy.c:250
INetFwRules INetFwRules_iface
Definition: policy.c:60
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:484
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
#define S_OK
Definition: intsafe.h:51
LONG refs
Definition: policy.c:61

Referenced by NetFwPolicy2_create().

◆ fw_policy_AddRef()

static ULONG WINAPI fw_policy_AddRef ( INetFwPolicy iface)
static

Definition at line 284 of file policy.c.

286 {
288  return InterlockedIncrement( &fw_policy->refs );
289 }
static fw_policy * impl_from_INetFwPolicy(INetFwPolicy *iface)
Definition: policy.c:41
LONG refs
Definition: policy.c:38
#define InterlockedIncrement
Definition: armddk.h:53

◆ fw_policy_get_CurrentProfile()

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

Definition at line 402 of file policy.c.

405 {
407 
408  TRACE("%p, %p\n", This, profile);
409  return NetFwProfile_create( NULL, (void **)profile );
410 }
HRESULT NetFwProfile_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN
Definition: profile.c:331
static fw_policy * impl_from_INetFwPolicy(INetFwPolicy *iface)
Definition: policy.c:41
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#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 351 of file policy.c.

358 {
361  HRESULT hr;
362 
363  TRACE("%p %s %p %u %u %p\n", This, debugstr_guid(riid), rgszNames, cNames, lcid, rgDispId);
364 
366  if (SUCCEEDED(hr))
367  {
368  hr = ITypeInfo_GetIDsOfNames( typeinfo, rgszNames, cNames, rgDispId );
369  ITypeInfo_Release( typeinfo );
370  }
371  return hr;
372 }
HRESULT hr
Definition: shlfolder.c:183
REFIID riid
Definition: precomp.h:44
static fw_policy * impl_from_INetFwPolicy(INetFwPolicy *iface)
Definition: policy.c:41
HRESULT get_typeinfo(enum type_id tid, ITypeInfo **ret)
Definition: apps.c:124
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
LONG HRESULT
Definition: typedefs.h:79
static ITypeInfo * typeinfo[last_tid]
Definition: apps.c:109
#define SUCCEEDED(hr)
Definition: intsafe.h:49

◆ fw_policy_GetProfileByType()

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

Definition at line 412 of file policy.c.

416 {
418 
419  FIXME("%p, %u, %p\n", This, profileType, profile);
420  return E_NOTIMPL;
421 }
static fw_policy * impl_from_INetFwPolicy(INetFwPolicy *iface)
Definition: policy.c:41
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99
#define profile
Definition: kernel32.h:12

◆ fw_policy_GetTypeInfo()

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

Definition at line 339 of file policy.c.

344 {
346 
347  TRACE("%p %u %u %p\n", This, iTInfo, lcid, ppTInfo);
348  return get_typeinfo( INetFwPolicy_tid, ppTInfo );
349 }
static fw_policy * impl_from_INetFwPolicy(INetFwPolicy *iface)
Definition: policy.c:41
HRESULT get_typeinfo(enum type_id tid, ITypeInfo **ret)
Definition: apps.c:124
#define TRACE(s)
Definition: solgame.cpp:4

◆ fw_policy_GetTypeInfoCount()

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

Definition at line 328 of file policy.c.

331 {
333 
334  TRACE("%p %p\n", This, pctinfo);
335  *pctinfo = 1;
336  return S_OK;
337 }
static fw_policy * impl_from_INetFwPolicy(INetFwPolicy *iface)
Definition: policy.c:41
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:51

◆ 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 374 of file policy.c.

384 {
387  HRESULT hr;
388 
389  TRACE("%p %d %s %d %d %p %p %p %p\n", This, dispIdMember, debugstr_guid(riid),
390  lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
391 
393  if (SUCCEEDED(hr))
394  {
395  hr = ITypeInfo_Invoke( typeinfo, &This->INetFwPolicy_iface, dispIdMember,
396  wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr );
397  ITypeInfo_Release( typeinfo );
398  }
399  return hr;
400 }
HRESULT hr
Definition: shlfolder.c:183
REFIID riid
Definition: precomp.h:44
static fw_policy * impl_from_INetFwPolicy(INetFwPolicy *iface)
Definition: policy.c:41
HRESULT get_typeinfo(enum type_id tid, ITypeInfo **ret)
Definition: apps.c:124
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
LONG HRESULT
Definition: typedefs.h:79
static ITypeInfo * typeinfo[last_tid]
Definition: apps.c:109
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:534
#define SUCCEEDED(hr)
Definition: intsafe.h:49

◆ fw_policy_QueryInterface()

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

Definition at line 304 of file policy.c.

308 {
310 
311  TRACE("%p %s %p\n", This, debugstr_guid( riid ), ppvObject );
312 
313  if ( IsEqualGUID( riid, &IID_INetFwPolicy ) ||
316  {
317  *ppvObject = iface;
318  }
319  else
320  {
321  FIXME("interface %s not implemented\n", debugstr_guid(riid));
322  return E_NOINTERFACE;
323  }
324  INetFwPolicy_AddRef( iface );
325  return S_OK;
326 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
static fw_policy * impl_from_INetFwPolicy(INetFwPolicy *iface)
Definition: policy.c:41
#define FIXME(fmt,...)
Definition: debug.h:111
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IUnknown
const GUID IID_IDispatch
REFIID LPVOID * ppvObject
Definition: precomp.h:44
#define S_OK
Definition: intsafe.h:51
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112

◆ fw_policy_Release()

static ULONG WINAPI fw_policy_Release ( INetFwPolicy iface)
static

Definition at line 291 of file policy.c.

293 {
296  if (!refs)
297  {
298  TRACE("destroying %p\n", fw_policy);
300  }
301  return refs;
302 }
static fw_policy * impl_from_INetFwPolicy(INetFwPolicy *iface)
Definition: policy.c:41
long LONG
Definition: pedump.c:60
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:484
#define InterlockedDecrement
Definition: armddk.h:52
LONG refs
Definition: policy.c:38
#define HeapFree(x, y, z)
Definition: compat.h:483

◆ fwpolicy2_AddRef()

static ULONG WINAPI fwpolicy2_AddRef ( INetFwPolicy2 iface)
static

Definition at line 480 of file policy.c.

481 {
483  return InterlockedIncrement( &fw_policy->refs );
484 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
LONG refs
Definition: policy.c:38
#define InterlockedIncrement
Definition: armddk.h:53

◆ fwpolicy2_EnableRuleGroup()

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

Definition at line 664 of file policy.c.

665 {
667 
668  FIXME("%p %d %s %d\n", This, bitmask, debugstr_w(group), enable);
669  return E_NOTIMPL;
670 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:111
GLboolean GLuint group
Definition: glext.h:11120
GLboolean enable
Definition: glext.h:11120
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ fwpolicy2_get_BlockAllInboundTraffic()

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

Definition at line 593 of file policy.c.

594 {
596 
597  FIXME("%p %d %p\n", This, profileType, block);
598  return E_NOTIMPL;
599 }
static unsigned int block
Definition: xmlmemory.c:118
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ fwpolicy2_get_CurrentProfileTypes()

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

Definition at line 554 of file policy.c.

555 {
557 
558  FIXME("%p %p\n", This, profile);
559  return E_NOTIMPL;
560 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99
#define profile
Definition: kernel32.h:12

◆ fwpolicy2_get_DefaultInboundAction()

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

Definition at line 688 of file policy.c.

689 {
691 
692  FIXME("%p %d %p\n", This, profileType, action);
693  return E_NOTIMPL;
694 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
#define FIXME(fmt,...)
Definition: debug.h:111
const WCHAR * action
Definition: action.c:7783
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ fwpolicy2_get_DefaultOutboundAction()

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

Definition at line 704 of file policy.c.

705 {
707 
708  FIXME("%p %d %p\n", This, profileType, action);
709  return E_NOTIMPL;
710 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
#define FIXME(fmt,...)
Definition: debug.h:111
const WCHAR * action
Definition: action.c:7783
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ fwpolicy2_get_ExcludedInterfaces()

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

Definition at line 578 of file policy.c.

579 {
581 
582  FIXME("%p %d %p\n", This, profileType, interfaces);
583  return E_NOTIMPL;
584 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ fwpolicy2_get_FirewallEnabled()

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

Definition at line 562 of file policy.c.

563 {
565 
566  FIXME("%p %d %p\n", This, profileType, enabled);
567  return E_NOTIMPL;
568 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
GLenum GLenum GLsizei const GLuint GLboolean enabled
Definition: glext.h:7750
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ fwpolicy2_get_IsRuleGroupCurrentlyEnabled()

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

Definition at line 720 of file policy.c.

721 {
723 
724  FIXME("%p %s %p\n", This, debugstr_w(group), enabled);
725  return E_NOTIMPL;
726 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
GLenum GLenum GLsizei const GLuint GLboolean enabled
Definition: glext.h:7750
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:111
GLboolean GLuint group
Definition: glext.h:11120
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ fwpolicy2_get_LocalPolicyModifyState()

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

Definition at line 728 of file policy.c.

729 {
731 
732  FIXME("%p %p\n", This, modifyState);
733  return E_NOTIMPL;
734 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ fwpolicy2_get_NotificationsDisabled()

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

Definition at line 609 of file policy.c.

610 {
612 
613  FIXME("%p %d %p\n", This, profileType, disabled);
614  return E_NOTIMPL;
615 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ fwpolicy2_get_Rules()

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

Definition at line 641 of file policy.c.

642 {
644 
645  TRACE("%p %p\n", This, rules);
646 
647  if(!rules)
648  return E_POINTER;
649 
650  *rules = This->fw_policy2_rules;
651  INetFwRules_AddRef(This->fw_policy2_rules);
652 
653  return S_OK;
654 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:51
#define E_POINTER
Definition: winerror.h:2365

◆ fwpolicy2_get_ServiceRestriction()

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

Definition at line 656 of file policy.c.

657 {
659 
660  FIXME("%p %p\n", This, ServiceRestriction);
661  return E_NOTIMPL;
662 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ fwpolicy2_get_UnicastResponsesToMulticastBroadcastDisabled()

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

Definition at line 625 of file policy.c.

626 {
628 
629  FIXME("%p %d %p\n", This, profileType, disabled);
630  return E_NOTIMPL;
631 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ fwpolicy2_GetIDsOfNames()

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

Definition at line 516 of file policy.c.

518 {
521  HRESULT hr;
522 
523  TRACE("%p %s %p %u %u %p\n", This, debugstr_guid(riid), rgszNames, cNames, lcid, rgDispId);
524 
526  if (SUCCEEDED(hr))
527  {
528  hr = ITypeInfo_GetIDsOfNames( typeinfo, rgszNames, cNames, rgDispId );
529  ITypeInfo_Release( typeinfo );
530  }
531  return hr;
532 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
HRESULT hr
Definition: shlfolder.c:183
REFIID riid
Definition: precomp.h:44
HRESULT get_typeinfo(enum type_id tid, ITypeInfo **ret)
Definition: apps.c:124
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
LONG HRESULT
Definition: typedefs.h:79
static ITypeInfo * typeinfo[last_tid]
Definition: apps.c:109
#define SUCCEEDED(hr)
Definition: intsafe.h:49

◆ fwpolicy2_GetTypeInfo()

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

Definition at line 508 of file policy.c.

509 {
511 
512  TRACE("%p %u %u %p\n", This, iTInfo, lcid, info);
514 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
HRESULT get_typeinfo(enum type_id tid, ITypeInfo **ret)
Definition: apps.c:124
#define TRACE(s)
Definition: solgame.cpp:4

◆ fwpolicy2_GetTypeInfoCount()

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

Definition at line 499 of file policy.c.

500 {
502 
503  TRACE("%p %p\n", This, pctinfo);
504  *pctinfo = 1;
505  return S_OK;
506 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:51

◆ 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 534 of file policy.c.

536 {
539  HRESULT hr;
540 
541  TRACE("%p %d %s %d %d %p %p %p %p\n", This, dispIdMember, debugstr_guid(riid),
542  lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
543 
545  if (SUCCEEDED(hr))
546  {
547  hr = ITypeInfo_Invoke( typeinfo, &This->INetFwPolicy2_iface, dispIdMember,
548  wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr );
549  ITypeInfo_Release( typeinfo );
550  }
551  return hr;
552 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
HRESULT hr
Definition: shlfolder.c:183
REFIID riid
Definition: precomp.h:44
HRESULT get_typeinfo(enum type_id tid, ITypeInfo **ret)
Definition: apps.c:124
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
LONG HRESULT
Definition: typedefs.h:79
static ITypeInfo * typeinfo[last_tid]
Definition: apps.c:109
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:534
#define SUCCEEDED(hr)
Definition: intsafe.h:49

◆ fwpolicy2_IsRuleGroupEnabled()

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

Definition at line 672 of file policy.c.

673 {
675 
676  FIXME("%p %d %s %p\n", This, bitmask, debugstr_w(group), enabled);
677  return E_NOTIMPL;
678 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
GLenum GLenum GLsizei const GLuint GLboolean enabled
Definition: glext.h:7750
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:111
GLboolean GLuint group
Definition: glext.h:11120
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ fwpolicy2_put_BlockAllInboundTraffic()

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

Definition at line 601 of file policy.c.

602 {
604 
605  FIXME("%p %d %d\n", This, profileType, block);
606  return E_NOTIMPL;
607 }
static unsigned int block
Definition: xmlmemory.c:118
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ fwpolicy2_put_DefaultInboundAction()

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

Definition at line 696 of file policy.c.

697 {
699 
700  FIXME("%p %d %d\n", This, profileType, action);
701  return E_NOTIMPL;
702 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
#define FIXME(fmt,...)
Definition: debug.h:111
const WCHAR * action
Definition: action.c:7783
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ fwpolicy2_put_DefaultOutboundAction()

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

Definition at line 712 of file policy.c.

713 {
715 
716  FIXME("%p %d %d\n", This, profileType, action);
717  return E_NOTIMPL;
718 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
#define FIXME(fmt,...)
Definition: debug.h:111
const WCHAR * action
Definition: action.c:7783
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ fwpolicy2_put_ExcludedInterfaces()

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

Definition at line 586 of file policy.c.

587 {
589  FIXME("%p %d\n", This, profileType);
590  return E_NOTIMPL;
591 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ fwpolicy2_put_FirewallEnabled()

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

Definition at line 570 of file policy.c.

571 {
573 
574  FIXME("%p %d %d\n", This, profileType, enabled);
575  return E_NOTIMPL;
576 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
GLenum GLenum GLsizei const GLuint GLboolean enabled
Definition: glext.h:7750
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ fwpolicy2_put_NotificationsDisabled()

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

Definition at line 617 of file policy.c.

618 {
620 
621  FIXME("%p %d %d\n", This, profileType, disabled);
622  return E_NOTIMPL;
623 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ fwpolicy2_put_UnicastResponsesToMulticastBroadcastDisabled()

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

Definition at line 633 of file policy.c.

634 {
636 
637  FIXME("%p %d %d\n", This, profileType, disabled);
638  return E_NOTIMPL;
639 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ fwpolicy2_QueryInterface()

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

Definition at line 454 of file policy.c.

455 {
457 
458  TRACE("%p %s %p\n", This, debugstr_guid( riid ), out );
459 
460  if ( IsEqualGUID( riid, &IID_INetFwPolicy2 ) ||
463  {
464  *out = iface;
465  }
466  else if( IsEqualGUID( riid, &IID_INetFwRules ) )
467  {
468  TRACE("INetFwRules not supported\n");
469  return E_NOINTERFACE;
470  }
471  else
472  {
473  FIXME("interface %s not implemented\n", debugstr_guid(riid));
474  return E_NOINTERFACE;
475  }
476  INetFwPolicy2_AddRef( iface );
477  return S_OK;
478 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
#define FIXME(fmt,...)
Definition: debug.h:111
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IUnknown
static FILE * out
Definition: regtests2xml.c:44
const GUID IID_IDispatch
#define S_OK
Definition: intsafe.h:51
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112

◆ fwpolicy2_Release()

static ULONG WINAPI fwpolicy2_Release ( INetFwPolicy2 iface)
static

Definition at line 486 of file policy.c.

487 {
490  if (!refs)
491  {
492  INetFwRules_Release(fw_policy->fw_policy2_rules);
493  TRACE("destroying %p\n", fw_policy);
495  }
496  return refs;
497 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
long LONG
Definition: pedump.c:60
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:484
#define InterlockedDecrement
Definition: armddk.h:52
LONG refs
Definition: policy.c:38
#define HeapFree(x, y, z)
Definition: compat.h:483

◆ fwpolicy2_RestoreLocalFirewallDefaults()

static HRESULT WINAPI fwpolicy2_RestoreLocalFirewallDefaults ( INetFwPolicy2 iface)
static

Definition at line 680 of file policy.c.

681 {
683 
684  FIXME("%p\n", This);
685  return E_NOTIMPL;
686 }
static fw_policy2 * impl_from_INetFwPolicy2(INetFwPolicy2 *iface)
Definition: policy.c:53
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ impl_from_INetFwPolicy()

static fw_policy* impl_from_INetFwPolicy ( INetFwPolicy iface)
inlinestatic

Definition at line 41 of file policy.c.

42 {
43  return CONTAINING_RECORD(iface, fw_policy, INetFwPolicy_iface);
44 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by fw_policy_AddRef(), fw_policy_get_CurrentProfile(), fw_policy_GetIDsOfNames(), fw_policy_GetProfileByType(), fw_policy_GetTypeInfo(), fw_policy_GetTypeInfoCount(), fw_policy_Invoke(), fw_policy_QueryInterface(), and fw_policy_Release().

◆ impl_from_INetFwPolicy2()

static fw_policy2* impl_from_INetFwPolicy2 ( INetFwPolicy2 iface)
inlinestatic

◆ impl_from_INetFwRules()

static fw_rules* impl_from_INetFwRules ( INetFwRules iface)
inlinestatic

Definition at line 64 of file policy.c.

65 {
66  return CONTAINING_RECORD(iface, fw_rules, INetFwRules_iface);
67 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by netfw_rules_Add(), netfw_rules_AddRef(), netfw_rules_get__NewEnum(), netfw_rules_get_Count(), netfw_rules_GetIDsOfNames(), netfw_rules_GetTypeInfo(), netfw_rules_GetTypeInfoCount(), netfw_rules_Invoke(), netfw_rules_Item(), netfw_rules_QueryInterface(), netfw_rules_Release(), and netfw_rules_Remove().

◆ netfw_rules_Add()

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

Definition at line 201 of file policy.c.

204 {
205  fw_rules *This = impl_from_INetFwRules( iface );
206 
207  FIXME("%p, %p\n", This, rule);
208  return E_NOTIMPL;
209 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99
static fw_rules * impl_from_INetFwRules(INetFwRules *iface)
Definition: policy.c:64

◆ netfw_rules_AddRef()

static ULONG WINAPI netfw_rules_AddRef ( INetFwRules iface)
static

Definition at line 93 of file policy.c.

95 {
97  return InterlockedIncrement( &This->refs );
98 }
#define InterlockedIncrement
Definition: armddk.h:53
static fw_rules * impl_from_INetFwRules(INetFwRules *iface)
Definition: policy.c:64

◆ netfw_rules_get__NewEnum()

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

Definition at line 236 of file policy.c.

239 {
240  fw_rules *This = impl_from_INetFwRules( iface );
241 
242  FIXME("%p, %p\n", This, newEnum);
243 
244  if (!newEnum) return E_POINTER;
245  *newEnum = NULL;
246 
247  return E_NOTIMPL;
248 }
#define FIXME(fmt,...)
Definition: debug.h:111
smooth NULL
Definition: ftsmooth.c:416
#define E_NOTIMPL
Definition: ddrawi.h:99
#define E_POINTER
Definition: winerror.h:2365
static fw_rules * impl_from_INetFwRules(INetFwRules *iface)
Definition: policy.c:64

◆ netfw_rules_get_Count()

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

Definition at line 187 of file policy.c.

190 {
191  fw_rules *This = impl_from_INetFwRules( iface );
192 
193  FIXME("%p, %p\n", This, count);
194 
195  if (count)
196  *count = 0;
197 
198  return S_OK;
199 }
GLuint GLuint GLsizei count
Definition: gl.h:1545
#define FIXME(fmt,...)
Definition: debug.h:111
#define S_OK
Definition: intsafe.h:51
static fw_rules * impl_from_INetFwRules(INetFwRules *iface)
Definition: policy.c:64

◆ 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 136 of file policy.c.

143 {
144  fw_rules *This = impl_from_INetFwRules( iface );
146  HRESULT hr;
147 
148  TRACE("%p %s %p %u %u %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 }
HRESULT hr
Definition: shlfolder.c:183
REFIID riid
Definition: precomp.h:44
HRESULT get_typeinfo(enum type_id tid, ITypeInfo **ret)
Definition: apps.c:124
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
LONG HRESULT
Definition: typedefs.h:79
static ITypeInfo * typeinfo[last_tid]
Definition: apps.c:109
static fw_rules * impl_from_INetFwRules(INetFwRules *iface)
Definition: policy.c:64
#define SUCCEEDED(hr)
Definition: intsafe.h:49

◆ netfw_rules_GetTypeInfo()

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

Definition at line 124 of file policy.c.

129 {
130  fw_rules *This = impl_from_INetFwRules( iface );
131 
132  TRACE("%p %u %u %p\n", This, iTInfo, lcid, ppTInfo);
133  return get_typeinfo( INetFwRules_tid, ppTInfo );
134 }
HRESULT get_typeinfo(enum type_id tid, ITypeInfo **ret)
Definition: apps.c:124
#define TRACE(s)
Definition: solgame.cpp:4
static fw_rules * impl_from_INetFwRules(INetFwRules *iface)
Definition: policy.c:64

◆ netfw_rules_GetTypeInfoCount()

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

Definition at line 113 of file policy.c.

116 {
117  fw_rules *This = impl_from_INetFwRules( iface );
118 
119  TRACE("%p %p\n", This, pctinfo);
120  *pctinfo = 1;
121  return S_OK;
122 }
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:51
static fw_rules * impl_from_INetFwRules(INetFwRules *iface)
Definition: policy.c:64

◆ 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 159 of file policy.c.

169 {
170  fw_rules *This = impl_from_INetFwRules( iface );
172  HRESULT hr;
173 
174  TRACE("%p %d %s %d %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->INetFwRules_iface, dispIdMember,
181  wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr );
182  ITypeInfo_Release( typeinfo );
183  }
184  return hr;
185 }
HRESULT hr
Definition: shlfolder.c:183
REFIID riid
Definition: precomp.h:44
HRESULT get_typeinfo(enum type_id tid, ITypeInfo **ret)
Definition: apps.c:124
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
LONG HRESULT
Definition: typedefs.h:79
static ITypeInfo * typeinfo[last_tid]
Definition: apps.c:109
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:534
static fw_rules * impl_from_INetFwRules(INetFwRules *iface)
Definition: policy.c:64
#define SUCCEEDED(hr)
Definition: intsafe.h:49

◆ netfw_rules_Item()

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

Definition at line 221 of file policy.c.

225 {
226  fw_rules *This = impl_from_INetFwRules( iface );
227 
228  FIXME("%p, %s, %p\n", This, debugstr_w(name), rule);
229 #ifdef __REACTOS__
230  return S_OK; /* CORE-16372 Jansen's hack */
231 #else
232  return E_NOTIMPL;
233 #endif
234 }
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:111
#define S_OK
Definition: intsafe.h:51
#define E_NOTIMPL
Definition: ddrawi.h:99
Definition: name.c:38
static fw_rules * impl_from_INetFwRules(INetFwRules *iface)
Definition: policy.c:64

◆ netfw_rules_QueryInterface()

static HRESULT WINAPI netfw_rules_QueryInterface ( INetFwRules 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_INetFwRules ) ||
81  {
82  *object = iface;
83  }
84  else
85  {
86  FIXME("interface %s not implemented\n", debugstr_guid(riid));
87  return E_NOINTERFACE;
88  }
89  INetFwRules_AddRef( iface );
90  return S_OK;
91 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
#define FIXME(fmt,...)
Definition: debug.h:111
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IUnknown
const GUID IID_IDispatch
#define S_OK
Definition: intsafe.h:51
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112
static fw_rules * impl_from_INetFwRules(INetFwRules *iface)
Definition: policy.c:64

◆ netfw_rules_Release()

static ULONG WINAPI netfw_rules_Release ( INetFwRules iface)
static

Definition at line 100 of file policy.c.

102 {
103  fw_rules *This = impl_from_INetFwRules( iface );
104  LONG refs = InterlockedDecrement( &This->refs );
105  if (!refs)
106  {
107  TRACE("destroying %p\n", This);
108  HeapFree( GetProcessHeap(), 0, This );
109  }
110  return refs;
111 }
long LONG
Definition: pedump.c:60
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:484
#define InterlockedDecrement
Definition: armddk.h:52
static fw_rules * impl_from_INetFwRules(INetFwRules *iface)
Definition: policy.c:64
#define HeapFree(x, y, z)
Definition: compat.h:483

◆ netfw_rules_Remove()

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

Definition at line 211 of file policy.c.

214 {
215  fw_rules *This = impl_from_INetFwRules( iface );
216 
217  FIXME("%p, %s\n", This, debugstr_w(name));
218  return E_NOTIMPL;
219 }
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99
Definition: name.c:38
static fw_rules * impl_from_INetFwRules(INetFwRules *iface)
Definition: policy.c:64

◆ NetFwPolicy2_create()

HRESULT NetFwPolicy2_create ( IUnknown outer,
void **  obj 
)

Definition at line 769 of file policy.c.

770 {
771  fw_policy2 *fp;
772 
773  TRACE("(%p,%p)\n", outer, obj);
774 
775  fp = HeapAlloc( GetProcessHeap(), 0, sizeof(*fp) );
776  if (!fp) return E_OUTOFMEMORY;
777 
778  fp->INetFwPolicy2_iface.lpVtbl = &fw_policy2_vtbl;
779  fp->refs = 1;
780 
781  *obj = &fp->INetFwPolicy2_iface;
782 
784  {
785  HeapFree( GetProcessHeap(), 0, fp );
786  return E_OUTOFMEMORY;
787  }
788 
789  TRACE("returning iface %p\n", *obj);
790  return S_OK;
791 }
INetFwRules * fw_policy2_rules
Definition: policy.c:49
LONG refs
Definition: policy.c:50
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:484
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
#define S_OK
Definition: intsafe.h:51
static HRESULT create_INetFwRules(INetFwRules **object)
Definition: policy.c:266
INetFwPolicy2 INetFwPolicy2_iface
Definition: policy.c:48
static const struct INetFwPolicy2Vtbl fw_policy2_vtbl
Definition: policy.c:736
#define HeapFree(x, y, z)
Definition: compat.h:483

◆ NetFwPolicy_create()

HRESULT NetFwPolicy_create ( IUnknown pUnkOuter,
LPVOID ppObj 
)

Definition at line 436 of file policy.c.

437 {
438  fw_policy *fp;
439 
440  TRACE("(%p,%p)\n", pUnkOuter, ppObj);
441 
442  fp = HeapAlloc( GetProcessHeap(), 0, sizeof(*fp) );
443  if (!fp) return E_OUTOFMEMORY;
444 
445  fp->INetFwPolicy_iface.lpVtbl = &fw_policy_vtbl;
446  fp->refs = 1;
447 
448  *ppObj = &fp->INetFwPolicy_iface;
449 
450  TRACE("returning iface %p\n", *ppObj);
451  return S_OK;
452 }
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:484
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
LONG refs
Definition: policy.c:38
#define S_OK
Definition: intsafe.h:51
static const struct INetFwPolicyVtbl fw_policy_vtbl
Definition: policy.c:423
INetFwPolicy INetFwPolicy_iface
Definition: policy.c:37

Referenced by fw_manager_get_LocalPolicy().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( hnetcfg  )

Variable Documentation

◆ fw_policy2_vtbl

const struct INetFwPolicy2Vtbl fw_policy2_vtbl
static

Definition at line 736 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_get_CurrentProfile(INetFwPolicy *iface, INetFwProfile **profile)
Definition: policy.c:402
static HRESULT WINAPI fw_policy_GetTypeInfo(INetFwPolicy *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: policy.c:339
static HRESULT WINAPI fw_policy_GetIDsOfNames(INetFwPolicy *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: policy.c:351
static HRESULT WINAPI fw_policy_QueryInterface(INetFwPolicy *iface, REFIID riid, void **ppvObject)
Definition: policy.c:304
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:374
static HRESULT WINAPI fw_policy_GetProfileByType(INetFwPolicy *iface, NET_FW_PROFILE_TYPE profileType, INetFwProfile **profile)
Definition: policy.c:412
static HRESULT WINAPI fw_policy_GetTypeInfoCount(INetFwPolicy *iface, UINT *pctinfo)
Definition: policy.c:328
static ULONG WINAPI fw_policy_AddRef(INetFwPolicy *iface)
Definition: policy.c:284
static ULONG WINAPI fw_policy_Release(INetFwPolicy *iface)
Definition: policy.c:291

Definition at line 423 of file policy.c.

Referenced by NetFwPolicy_create().

◆ fw_rules_vtbl

const struct INetFwRulesVtbl fw_rules_vtbl
static
Initial value:
=
{
}
static HRESULT WINAPI netfw_rules_QueryInterface(INetFwRules *iface, REFIID riid, void **object)
Definition: policy.c:69
static HRESULT WINAPI netfw_rules_Remove(INetFwRules *iface, BSTR name)
Definition: policy.c:211
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:159
static ULONG WINAPI netfw_rules_AddRef(INetFwRules *iface)
Definition: policy.c:93
static HRESULT WINAPI netfw_rules_get__NewEnum(INetFwRules *iface, IUnknown **newEnum)
Definition: policy.c:236
static HRESULT WINAPI netfw_rules_Item(INetFwRules *iface, BSTR name, INetFwRule **rule)
Definition: policy.c:221
static HRESULT WINAPI netfw_rules_Add(INetFwRules *iface, INetFwRule *rule)
Definition: policy.c:201
static HRESULT WINAPI netfw_rules_GetIDsOfNames(INetFwRules *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: policy.c:136
static HRESULT WINAPI netfw_rules_GetTypeInfo(INetFwRules *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: policy.c:124
static HRESULT WINAPI netfw_rules_get_Count(INetFwRules *iface, LONG *count)
Definition: policy.c:187
static HRESULT WINAPI netfw_rules_GetTypeInfoCount(INetFwRules *iface, UINT *pctinfo)
Definition: policy.c:113
static ULONG WINAPI netfw_rules_Release(INetFwRules *iface)
Definition: policy.c:100

Definition at line 250 of file policy.c.

Referenced by create_INetFwRules().