ReactOS  0.4.14-dev-384-g5b37caa
hnetcfg_private.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  type_id {
  INetFwAuthorizedApplication_tid, INetFwAuthorizedApplications_tid, INetFwMgr_tid, INetFwOpenPort_tid,
  INetFwOpenPorts_tid, INetFwPolicy_tid, INetFwPolicy2_tid, INetFwProfile_tid,
  INetFwRules_tid, IUPnPNAT_tid, last_tid, ISWbemLocator_tid,
  ISWbemObject_tid, ISWbemObjectSet_tid, ISWbemProperty_tid, ISWbemPropertySet_tid,
  ISWbemServices_tid, ISWbemSecurity_tid, last_tid, IWinHttpRequest_tid,
  last_tid
}
 

Functions

HRESULT get_typeinfo (enum type_id, ITypeInfo **) DECLSPEC_HIDDEN
 
void release_typelib (void) DECLSPEC_HIDDEN
 
HRESULT NetFwMgr_create (IUnknown *, LPVOID *) DECLSPEC_HIDDEN
 
HRESULT NetFwPolicy_create (IUnknown *, LPVOID *) DECLSPEC_HIDDEN
 
HRESULT NetFwPolicy2_create (IUnknown *, void **) DECLSPEC_HIDDEN
 
HRESULT NetFwProfile_create (IUnknown *, LPVOID *) DECLSPEC_HIDDEN
 
HRESULT NetFwAuthorizedApplication_create (IUnknown *, LPVOID *) DECLSPEC_HIDDEN
 
HRESULT NetFwAuthorizedApplications_create (IUnknown *, LPVOID *) DECLSPEC_HIDDEN
 
HRESULT NetFwOpenPorts_create (IUnknown *, LPVOID *) DECLSPEC_HIDDEN
 
HRESULT NetFwOpenPort_create (IUnknown *, LPVOID *) DECLSPEC_HIDDEN
 
HRESULT NetFwServices_create (IUnknown *, LPVOID *) DECLSPEC_HIDDEN
 
HRESULT IUPnPNAT_create (IUnknown *, void **) DECLSPEC_HIDDEN
 

Variables

enum type_id helpstring
 

Enumeration Type Documentation

◆ type_id

Enumerator
INetFwAuthorizedApplication_tid 
INetFwAuthorizedApplications_tid 
INetFwMgr_tid 
INetFwOpenPort_tid 
INetFwOpenPorts_tid 
INetFwPolicy_tid 
INetFwPolicy2_tid 
INetFwProfile_tid 
INetFwRules_tid 
IUPnPNAT_tid 
last_tid 
ISWbemLocator_tid 
ISWbemObject_tid 
ISWbemObjectSet_tid 
ISWbemProperty_tid 
ISWbemPropertySet_tid 
ISWbemServices_tid 
ISWbemSecurity_tid 
last_tid 
IWinHttpRequest_tid 
last_tid 

Definition at line 21 of file hnetcfg_private.h.

Function Documentation

◆ get_typeinfo()

HRESULT get_typeinfo ( enum  type_id,
ITypeInfo **   
)

Definition at line 124 of file apps.c.

125 {
126  HRESULT hr;
127 
128  if (!typelib)
129  {
130  ITypeLib *lib;
131 
132  hr = LoadRegTypeLib( &LIBID_NetFwPublicTypeLib, 1, 0, LOCALE_SYSTEM_DEFAULT, &lib );
133  if (FAILED(hr))
134  {
135  ERR("LoadRegTypeLib failed: %08x\n", hr);
136  return hr;
137  }
138  if (InterlockedCompareExchangePointer( (void **)&typelib, lib, NULL ))
139  ITypeLib_Release( lib );
140  }
141  if (!typeinfo[tid])
142  {
143  ITypeInfo *info;
144 
145  hr = ITypeLib_GetTypeInfoOfGuid( typelib, tid_id[tid], &info );
146  if (FAILED(hr))
147  {
148  ERR("GetTypeInfoOfGuid(%s) failed: %08x\n", debugstr_guid(tid_id[tid]), hr);
149  return hr;
150  }
152  ITypeInfo_Release( info );
153  }
154  *ret = typeinfo[tid];
155  ITypeInfo_AddRef(typeinfo[tid]);
156  return S_OK;
157 }
static REFIID tid_id[]
Definition: apps.c:111
HRESULT hr
Definition: shlfolder.c:183
static ITypeLib * typelib
Definition: apps.c:108
struct _test_info info[]
Definition: SetCursorPos.c:19
#define InterlockedCompareExchangePointer
Definition: interlocked.h:129
smooth NULL
Definition: ftsmooth.c:416
#define debugstr_guid
Definition: kernel32.h:35
LONG HRESULT
Definition: typedefs.h:77
#define LOCALE_SYSTEM_DEFAULT
int ret
#define ERR(fmt,...)
Definition: debug.h:109
#define S_OK
Definition: intsafe.h:59
HRESULT WINAPI LoadRegTypeLib(REFGUID rguid, WORD wVerMajor, WORD wVerMinor, LCID lcid, ITypeLib **ppTLib)
Definition: typelib.c:534
static TfClientId tid

Referenced by dictionary_GetIDsOfNames(), dictionary_GetTypeInfo(), dictionary_Invoke(), drive_GetIDsOfNames(), drive_GetTypeInfo(), drive_Invoke(), drivecoll_GetIDsOfNames(), drivecoll_GetTypeInfo(), drivecoll_Invoke(), file_GetIDsOfNames(), file_GetTypeInfo(), file_Invoke(), filecoll_GetIDsOfNames(), filecoll_GetTypeInfo(), filecoll_Invoke(), filesys_GetIDsOfNames(), filesys_GetTypeInfo(), filesys_Invoke(), folder_GetIDsOfNames(), folder_GetTypeInfo(), folder_Invoke(), foldercoll_GetIDsOfNames(), foldercoll_GetTypeInfo(), foldercoll_Invoke(), fw_app_GetIDsOfNames(), fw_app_GetTypeInfo(), fw_app_Invoke(), fw_apps_GetIDsOfNames(), fw_apps_GetTypeInfo(), fw_apps_Invoke(), fw_manager_GetIDsOfNames(), fw_manager_GetTypeInfo(), fw_manager_Invoke(), fw_policy_GetIDsOfNames(), fw_policy_GetTypeInfo(), fw_policy_Invoke(), fw_port_GetIDsOfNames(), fw_port_GetTypeInfo(), fw_port_Invoke(), fw_ports_GetIDsOfNames(), fw_ports_GetTypeInfo(), fw_ports_Invoke(), fw_profile_GetIDsOfNames(), fw_profile_GetTypeInfo(), fw_profile_Invoke(), fwpolicy2_GetIDsOfNames(), fwpolicy2_GetTypeInfo(), fwpolicy2_Invoke(), init_global(), InternetExplorer_GetIDsOfNames(), InternetExplorer_GetTypeInfo(), InternetExplorer_Invoke(), MsiActiveScriptSite_GetItemInfo(), netfw_rules_GetIDsOfNames(), netfw_rules_GetTypeInfo(), netfw_rules_Invoke(), ProvideClassInfo_GetClassInfo(), textstream_GetIDsOfNames(), textstream_GetTypeInfo(), textstream_Invoke(), upnpnat_GetIDsOfNames(), upnpnat_GetTypeInfo(), upnpnat_Invoke(), VBSAXAttributes_GetIDsOfNames(), VBSAXAttributes_GetTypeInfo(), VBSAXAttributes_Invoke(), WebBrowser_GetIDsOfNames(), WebBrowser_GetTypeInfo(), WebBrowser_Invoke(), WshCollection_GetIDsOfNames(), WshCollection_GetTypeInfo(), WshCollection_Invoke(), WshEnvironment_GetIDsOfNames(), WshEnvironment_GetTypeInfo(), WshEnvironment_Invoke(), WshExec_GetIDsOfNames(), WshExec_GetTypeInfo(), WshExec_Invoke(), WshShell3_GetIDsOfNames(), WshShell3_GetTypeInfo(), WshShell3_Invoke(), WshShortcut_GetIDsOfNames(), WshShortcut_GetTypeInfo(), and WshShortcut_Invoke().

◆ IUPnPNAT_create()

HRESULT IUPnPNAT_create ( IUnknown ,
void **   
)

Definition at line 759 of file port.c.

760 {
761  upnpnat *nat;
762 
763  TRACE("(%p,%p)\n", outer, object);
764 
765  nat = heap_alloc( sizeof(*nat) );
766  if (!nat) return E_OUTOFMEMORY;
767 
768  nat->IUPnPNAT_iface.lpVtbl = &upnpnat_vtbl;
769  nat->ref = 1;
770 
771  *object = &nat->IUPnPNAT_iface;
772 
773  TRACE("returning iface %p\n", *object);
774  return S_OK;
775 }
Definition: port.c:607
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define TRACE(s)
Definition: solgame.cpp:4
LONG ref
Definition: port.c:610
#define S_OK
Definition: intsafe.h:59
IUPnPNAT IUPnPNAT_iface
Definition: port.c:609
static const IUPnPNATVtbl upnpnat_vtbl
Definition: port.c:744

◆ NetFwAuthorizedApplication_create()

HRESULT NetFwAuthorizedApplication_create ( IUnknown ,
LPVOID  
)

Definition at line 432 of file apps.c.

433 {
434  fw_app *fa;
435 
436  TRACE("(%p,%p)\n", pUnkOuter, ppObj);
437 
438  fa = HeapAlloc( GetProcessHeap(), 0, sizeof(*fa) );
439  if (!fa) return E_OUTOFMEMORY;
440 
441  fa->INetFwAuthorizedApplication_iface.lpVtbl = &fw_app_vtbl;
442  fa->refs = 1;
443  fa->filename = NULL;
444 
445  *ppObj = &fa->INetFwAuthorizedApplication_iface;
446 
447  TRACE("returning iface %p\n", *ppObj);
448  return S_OK;
449 }
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
Definition: apps.c:40
#define GetProcessHeap()
Definition: compat.h:403
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
static const struct INetFwAuthorizedApplicationVtbl fw_app_vtbl
Definition: apps.c:409
#define S_OK
Definition: intsafe.h:59
f_args fa
Definition: format.c:280

Referenced by fw_apps_Item().

◆ NetFwAuthorizedApplications_create()

HRESULT NetFwAuthorizedApplications_create ( IUnknown ,
LPVOID  
)

Definition at line 645 of file apps.c.

646 {
647  fw_apps *fa;
648 
649  TRACE("(%p,%p)\n", pUnkOuter, ppObj);
650 
651  fa = HeapAlloc( GetProcessHeap(), 0, sizeof(*fa) );
652  if (!fa) return E_OUTOFMEMORY;
653 
654  fa->INetFwAuthorizedApplications_iface.lpVtbl = &fw_apps_vtbl;
655  fa->refs = 1;
656 
657  *ppObj = &fa->INetFwAuthorizedApplications_iface;
658 
659  TRACE("returning iface %p\n", *ppObj);
660  return S_OK;
661 }
static const struct INetFwAuthorizedApplicationsVtbl fw_apps_vtbl
Definition: apps.c:629
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
Definition: apps.c:450
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:403
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
#define S_OK
Definition: intsafe.h:59
f_args fa
Definition: format.c:280

Referenced by fw_profile_get_AuthorizedApplications().

◆ NetFwMgr_create()

HRESULT NetFwMgr_create ( IUnknown ,
LPVOID  
)

Definition at line 241 of file manager.c.

242 {
243  fw_manager *fm;
244 
245  TRACE("(%p,%p)\n", pUnkOuter, ppObj);
246 
247  fm = HeapAlloc( GetProcessHeap(), 0, sizeof(*fm) );
248  if (!fm) return E_OUTOFMEMORY;
249 
250  fm->INetFwMgr_iface.lpVtbl = &fw_manager_vtbl;
251  fm->refs = 1;
252 
253  *ppObj = &fm->INetFwMgr_iface;
254 
255  TRACE("returning iface %p\n", *ppObj);
256  return S_OK;
257 }
static const struct INetFwMgrVtbl fw_manager_vtbl
Definition: manager.c:225
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:403
INetFwMgr INetFwMgr_iface
Definition: manager.c:37
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
#define S_OK
Definition: intsafe.h:59
LONG refs
Definition: manager.c:38

◆ NetFwOpenPort_create()

HRESULT NetFwOpenPort_create ( IUnknown ,
LPVOID  
)

Definition at line 360 of file port.c.

361 {
362  fw_port *fp;
363 
364  TRACE("(%p,%p)\n", pUnkOuter, ppObj);
365 
366  fp = HeapAlloc( GetProcessHeap(), 0, sizeof(*fp) );
367  if (!fp) return E_OUTOFMEMORY;
368 
369  fp->INetFwOpenPort_iface.lpVtbl = &fw_port_vtbl;
370  fp->refs = 1;
371  fp->name = NULL;
373  fp->port = 0;
374 
375  *ppObj = &fp->INetFwOpenPort_iface;
376 
377  TRACE("returning iface %p\n", *ppObj);
378  return S_OK;
379 }
static const struct INetFwOpenPortVtbl fw_port_vtbl
Definition: port.c:334
Definition: port.c:37
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
smooth NULL
Definition: ftsmooth.c:416
BSTR name
Definition: port.c:41
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:403
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
LONG refs
Definition: port.c:40
NET_FW_IP_PROTOCOL protocol
Definition: port.c:42
#define S_OK
Definition: intsafe.h:59
LONG port
Definition: port.c:43
INetFwOpenPort INetFwOpenPort_iface
Definition: port.c:39

Referenced by fw_ports_Item().

◆ NetFwOpenPorts_create()

HRESULT NetFwOpenPorts_create ( IUnknown ,
LPVOID  
)

Definition at line 589 of file port.c.

590 {
591  fw_ports *fp;
592 
593  TRACE("(%p,%p)\n", pUnkOuter, ppObj);
594 
595  fp = HeapAlloc( GetProcessHeap(), 0, sizeof(*fp) );
596  if (!fp) return E_OUTOFMEMORY;
597 
598  fp->INetFwOpenPorts_iface.lpVtbl = &fw_ports_vtbl;
599  fp->refs = 1;
600 
601  *ppObj = &fp->INetFwOpenPorts_iface;
602 
603  TRACE("returning iface %p\n", *ppObj);
604  return S_OK;
605 }
LONG refs
Definition: port.c:384
INetFwOpenPorts INetFwOpenPorts_iface
Definition: port.c:383
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
Definition: port.c:381
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:403
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
static const struct INetFwOpenPortsVtbl fw_ports_vtbl
Definition: port.c:573
#define S_OK
Definition: intsafe.h:59

Referenced by fw_profile_get_GloballyOpenPorts(), and fw_service_get_GloballyOpenPorts().

◆ NetFwPolicy2_create()

HRESULT NetFwPolicy2_create ( IUnknown ,
void **   
)

Definition at line 765 of file policy.c.

766 {
767  fw_policy2 *fp;
768 
769  TRACE("(%p,%p)\n", outer, obj);
770 
771  fp = HeapAlloc( GetProcessHeap(), 0, sizeof(*fp) );
772  if (!fp) return E_OUTOFMEMORY;
773 
774  fp->INetFwPolicy2_iface.lpVtbl = &fw_policy2_vtbl;
775  fp->refs = 1;
776 
777  *obj = &fp->INetFwPolicy2_iface;
778 
780  {
781  HeapFree( GetProcessHeap(), 0, fp );
782  return E_OUTOFMEMORY;
783  }
784 
785  TRACE("returning iface %p\n", *obj);
786  return S_OK;
787 }
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:403
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
#define S_OK
Definition: intsafe.h:59
static HRESULT create_INetFwRules(INetFwRules **object)
Definition: policy.c:262
INetFwPolicy2 INetFwPolicy2_iface
Definition: policy.c:48
static const struct INetFwPolicy2Vtbl fw_policy2_vtbl
Definition: policy.c:732
#define HeapFree(x, y, z)
Definition: compat.h:402

◆ NetFwPolicy_create()

HRESULT NetFwPolicy_create ( IUnknown ,
LPVOID  
)

Definition at line 432 of file policy.c.

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

Referenced by fw_manager_get_LocalPolicy().

◆ NetFwProfile_create()

HRESULT NetFwProfile_create ( IUnknown ,
LPVOID  
)

Definition at line 331 of file profile.c.

332 {
333  fw_profile *fp;
334 
335  TRACE("(%p,%p)\n", pUnkOuter, ppObj);
336 
337  fp = HeapAlloc( GetProcessHeap(), 0, sizeof(*fp) );
338  if (!fp) return E_OUTOFMEMORY;
339 
340  fp->INetFwProfile_iface.lpVtbl = &fw_profile_vtbl;
341  fp->refs = 1;
342 
343  *ppObj = &fp->INetFwProfile_iface;
344 
345  TRACE("returning iface %p\n", *ppObj);
346  return S_OK;
347 }
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:403
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
INetFwProfile INetFwProfile_iface
Definition: profile.c:37
#define S_OK
Definition: intsafe.h:59
static const struct INetFwProfileVtbl fw_profile_vtbl
Definition: profile.c:306
LONG refs
Definition: profile.c:38

Referenced by fw_policy_get_CurrentProfile().

◆ NetFwServices_create()

HRESULT NetFwServices_create ( IUnknown ,
LPVOID  
)

Definition at line 461 of file service.c.

462 {
463  fw_services *fp;
464 
465  TRACE("(%p,%p)\n", pUnkOuter, ppObj);
466 
467  fp = HeapAlloc( GetProcessHeap(), 0, sizeof(*fp) );
468  if (!fp) return E_OUTOFMEMORY;
469 
471  fp->refs = 1;
472 
473  *ppObj = &fp->INetFwServices_iface;
474 
475  TRACE("returning iface %p\n", *ppObj);
476  return S_OK;
477 }
LONG refs
Definition: service.c:308
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:403
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
#define S_OK
Definition: intsafe.h:59
static const struct INetFwServicesVtbl fw_services_vtbl
Definition: service.c:447
INetFwServices INetFwServices_iface
Definition: service.c:307

Referenced by fw_profile_get_Services().

◆ release_typelib()

void release_typelib ( void  )

Definition at line 159 of file apps.c.

160 {
161  unsigned i;
162 
163  for (i = 0; i < ARRAY_SIZE(typeinfo); i++)
164  if (typeinfo[i])
165  ITypeInfo_Release(typeinfo[i]);
166 
167  if (typelib)
168  ITypeLib_Release(typelib);
169 }
static ITypeLib * typelib
Definition: apps.c:108
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define ARRAY_SIZE(a)
Definition: main.h:24

Variable Documentation

◆ helpstring

enum type_id helpstring