ReactOS 0.4.15-dev-7674-gc0b4db1
apps.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 "natupnp.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "hnetcfg_private.h"
Include dependency graph for apps.c:

Go to the source code of this file.

Classes

struct  fw_app
 
struct  fw_apps
 

Macros

#define COBJMACROS
 

Typedefs

typedef struct fw_app fw_app
 
typedef struct fw_apps fw_apps
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (hnetcfg)
 
static fw_appimpl_from_INetFwAuthorizedApplication (INetFwAuthorizedApplication *iface)
 
static ULONG WINAPI fw_app_AddRef (INetFwAuthorizedApplication *iface)
 
static ULONG WINAPI fw_app_Release (INetFwAuthorizedApplication *iface)
 
static HRESULT WINAPI fw_app_QueryInterface (INetFwAuthorizedApplication *iface, REFIID riid, void **ppvObject)
 
static HRESULT WINAPI fw_app_GetTypeInfoCount (INetFwAuthorizedApplication *iface, UINT *pctinfo)
 
HRESULT get_typeinfo (enum type_id tid, ITypeInfo **ret)
 
void release_typelib (void)
 
static HRESULT WINAPI fw_app_GetTypeInfo (INetFwAuthorizedApplication *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI fw_app_GetIDsOfNames (INetFwAuthorizedApplication *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI fw_app_Invoke (INetFwAuthorizedApplication *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI fw_app_get_Name (INetFwAuthorizedApplication *iface, BSTR *name)
 
static HRESULT WINAPI fw_app_put_Name (INetFwAuthorizedApplication *iface, BSTR name)
 
static HRESULT WINAPI fw_app_get_ProcessImageFileName (INetFwAuthorizedApplication *iface, BSTR *imageFileName)
 
static HRESULT WINAPI fw_app_put_ProcessImageFileName (INetFwAuthorizedApplication *iface, BSTR image)
 
static HRESULT WINAPI fw_app_get_IpVersion (INetFwAuthorizedApplication *iface, NET_FW_IP_VERSION *ipVersion)
 
static HRESULT WINAPI fw_app_put_IpVersion (INetFwAuthorizedApplication *iface, NET_FW_IP_VERSION ipVersion)
 
static HRESULT WINAPI fw_app_get_Scope (INetFwAuthorizedApplication *iface, NET_FW_SCOPE *scope)
 
static HRESULT WINAPI fw_app_put_Scope (INetFwAuthorizedApplication *iface, NET_FW_SCOPE scope)
 
static HRESULT WINAPI fw_app_get_RemoteAddresses (INetFwAuthorizedApplication *iface, BSTR *remoteAddrs)
 
static HRESULT WINAPI fw_app_put_RemoteAddresses (INetFwAuthorizedApplication *iface, BSTR remoteAddrs)
 
static HRESULT WINAPI fw_app_get_Enabled (INetFwAuthorizedApplication *iface, VARIANT_BOOL *enabled)
 
static HRESULT WINAPI fw_app_put_Enabled (INetFwAuthorizedApplication *iface, VARIANT_BOOL enabled)
 
HRESULT NetFwAuthorizedApplication_create (IUnknown *pUnkOuter, LPVOID *ppObj)
 
static fw_appsimpl_from_INetFwAuthorizedApplications (INetFwAuthorizedApplications *iface)
 
static ULONG WINAPI fw_apps_AddRef (INetFwAuthorizedApplications *iface)
 
static ULONG WINAPI fw_apps_Release (INetFwAuthorizedApplications *iface)
 
static HRESULT WINAPI fw_apps_QueryInterface (INetFwAuthorizedApplications *iface, REFIID riid, void **ppvObject)
 
static HRESULT WINAPI fw_apps_GetTypeInfoCount (INetFwAuthorizedApplications *iface, UINT *pctinfo)
 
static HRESULT WINAPI fw_apps_GetTypeInfo (INetFwAuthorizedApplications *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI fw_apps_GetIDsOfNames (INetFwAuthorizedApplications *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI fw_apps_Invoke (INetFwAuthorizedApplications *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI fw_apps_get_Count (INetFwAuthorizedApplications *iface, LONG *count)
 
static HRESULT WINAPI fw_apps_Add (INetFwAuthorizedApplications *iface, INetFwAuthorizedApplication *app)
 
static HRESULT WINAPI fw_apps_Remove (INetFwAuthorizedApplications *iface, BSTR imageFileName)
 
static HRESULT WINAPI fw_apps_Item (INetFwAuthorizedApplications *iface, BSTR imageFileName, INetFwAuthorizedApplication **app)
 
static HRESULT WINAPI fw_apps_get__NewEnum (INetFwAuthorizedApplications *iface, IUnknown **newEnum)
 
HRESULT NetFwAuthorizedApplications_create (IUnknown *pUnkOuter, LPVOID *ppObj)
 

Variables

static ITypeLibtypelib
 
static ITypeInfotypeinfo [last_tid]
 
static REFIID tid_id []
 
static const struct INetFwAuthorizedApplicationVtbl fw_app_vtbl
 
static const struct INetFwAuthorizedApplicationsVtbl fw_apps_vtbl
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Definition at line 22 of file apps.c.

Typedef Documentation

◆ fw_app

typedef struct fw_app fw_app

◆ fw_apps

Function Documentation

◆ fw_app_AddRef()

static ULONG WINAPI fw_app_AddRef ( INetFwAuthorizedApplication iface)
static

Definition at line 52 of file apps.c.

54{
57}
static fw_app * impl_from_INetFwAuthorizedApplication(INetFwAuthorizedApplication *iface)
Definition: apps.c:47
#define InterlockedIncrement
Definition: armddk.h:53
Definition: apps.c:41
LONG refs
Definition: apps.c:43

◆ fw_app_get_Enabled()

static HRESULT WINAPI fw_app_get_Enabled ( INetFwAuthorizedApplication iface,
VARIANT_BOOL enabled 
)
static

Definition at line 387 of file apps.c.

390{
392
393 FIXME("%p, %p\n", This, enabled);
394
395 *enabled = VARIANT_FALSE;
396 return S_OK;
397}
#define FIXME(fmt,...)
Definition: debug.h:111
GLenum GLenum GLsizei const GLuint GLboolean enabled
Definition: glext.h:7750
#define S_OK
Definition: intsafe.h:52

◆ fw_app_get_IpVersion()

static HRESULT WINAPI fw_app_get_IpVersion ( INetFwAuthorizedApplication iface,
NET_FW_IP_VERSION ipVersion 
)
static

Definition at line 323 of file apps.c.

326{
328
329 TRACE("%p, %p\n", This, ipVersion);
330
331 if (!ipVersion)
332 return E_POINTER;
333 *ipVersion = NET_FW_IP_VERSION_ANY;
334 return S_OK;
335}
@ NET_FW_IP_VERSION_ANY
Definition: icftypes.idl:44
#define TRACE(s)
Definition: solgame.cpp:4
#define E_POINTER
Definition: winerror.h:2365

◆ fw_app_get_Name()

static HRESULT WINAPI fw_app_get_Name ( INetFwAuthorizedApplication iface,
BSTR name 
)
static

Definition at line 234 of file apps.c.

237{
239
240 FIXME("%p, %p\n", This, name);
241 return E_NOTIMPL;
242}
#define E_NOTIMPL
Definition: ddrawi.h:99
Definition: name.c:39

◆ fw_app_get_ProcessImageFileName()

static HRESULT WINAPI fw_app_get_ProcessImageFileName ( INetFwAuthorizedApplication iface,
BSTR imageFileName 
)
static

Definition at line 254 of file apps.c.

257{
259
260 FIXME("%p, %p\n", This, imageFileName);
261
262 if (!imageFileName)
263 return E_POINTER;
264
265 *imageFileName = SysAllocString( This->filename );
266 return *imageFileName || !This->filename ? S_OK : E_OUTOFMEMORY;
267}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:238

◆ fw_app_get_RemoteAddresses()

static HRESULT WINAPI fw_app_get_RemoteAddresses ( INetFwAuthorizedApplication iface,
BSTR remoteAddrs 
)
static

Definition at line 367 of file apps.c.

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

◆ fw_app_get_Scope()

static HRESULT WINAPI fw_app_get_Scope ( INetFwAuthorizedApplication iface,
NET_FW_SCOPE scope 
)
static

Definition at line 347 of file apps.c.

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

◆ fw_app_GetIDsOfNames()

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

Definition at line 183 of file apps.c.

190{
193 HRESULT hr;
194
195 TRACE("%p %s %p %u %u %p\n", This, debugstr_guid(riid), rgszNames, cNames, lcid, rgDispId);
196
198 if (SUCCEEDED(hr))
199 {
200 hr = ITypeInfo_GetIDsOfNames( typeinfo, rgszNames, cNames, rgDispId );
201 ITypeInfo_Release( typeinfo );
202 }
203 return hr;
204}
HRESULT get_typeinfo(enum type_id tid, ITypeInfo **ret)
Definition: apps.c:124
static ITypeInfo * typeinfo[last_tid]
Definition: apps.c:109
@ INetFwAuthorizedApplication_tid
REFIID riid
Definition: atlbase.h:39
#define SUCCEEDED(hr)
Definition: intsafe.h:50
#define debugstr_guid
Definition: kernel32.h:35
HRESULT hr
Definition: shlfolder.c:183

◆ fw_app_GetTypeInfo()

static HRESULT WINAPI fw_app_GetTypeInfo ( INetFwAuthorizedApplication iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 171 of file apps.c.

176{
178
179 TRACE("%p %u %u %p\n", This, iTInfo, lcid, ppTInfo);
181}

◆ fw_app_GetTypeInfoCount()

static HRESULT WINAPI fw_app_GetTypeInfoCount ( INetFwAuthorizedApplication iface,
UINT pctinfo 
)
static

Definition at line 97 of file apps.c.

100{
102
103 TRACE("%p %p\n", This, pctinfo);
104 *pctinfo = 1;
105 return S_OK;
106}

◆ fw_app_Invoke()

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

Definition at line 206 of file apps.c.

216{
219 HRESULT hr;
220
221 TRACE("%p %d %s %d %d %p %p %p %p\n", This, dispIdMember, debugstr_guid(riid),
222 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
223
225 if (SUCCEEDED(hr))
226 {
227 hr = ITypeInfo_Invoke( typeinfo, &This->INetFwAuthorizedApplication_iface, dispIdMember,
228 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr );
229 ITypeInfo_Release( typeinfo );
230 }
231 return hr;
232}
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:531

◆ fw_app_put_Enabled()

static HRESULT WINAPI fw_app_put_Enabled ( INetFwAuthorizedApplication iface,
VARIANT_BOOL  enabled 
)
static

Definition at line 399 of file apps.c.

402{
404
405 FIXME("%p, %d\n", This, enabled);
406 return S_OK;
407}

◆ fw_app_put_IpVersion()

static HRESULT WINAPI fw_app_put_IpVersion ( INetFwAuthorizedApplication iface,
NET_FW_IP_VERSION  ipVersion 
)
static

Definition at line 337 of file apps.c.

340{
342
343 TRACE("%p, %u\n", This, ipVersion);
344 return S_OK;
345}

◆ fw_app_put_Name()

static HRESULT WINAPI fw_app_put_Name ( INetFwAuthorizedApplication iface,
BSTR  name 
)
static

Definition at line 244 of file apps.c.

247{
249
250 FIXME("%p, %s\n", This, debugstr_w(name));
251 return S_OK;
252}
#define debugstr_w
Definition: kernel32.h:32

◆ fw_app_put_ProcessImageFileName()

static HRESULT WINAPI fw_app_put_ProcessImageFileName ( INetFwAuthorizedApplication iface,
BSTR  image 
)
static

Definition at line 269 of file apps.c.

271{
274 DWORD sz, longsz;
275 WCHAR *path;
276 DWORD res;
277
278 FIXME("%p, %s\n", This, debugstr_w(image));
279
280 if (!image || !image[0])
281 return E_INVALIDARG;
282
283 sz = 0;
285 if (res == WN_MORE_DATA)
286 {
287 if (!(path = heap_alloc(sz)))
288 return E_OUTOFMEMORY;
289
292 if (res == NO_ERROR)
293 {
294 SysFreeString(This->filename);
295 This->filename = SysAllocString(info->lpUniversalName);
296 }
298 return HRESULT_FROM_WIN32(res);
299 }
300
301 sz = GetFullPathNameW(image, 0, NULL, NULL);
302 if (!(path = heap_alloc(++sz * sizeof(WCHAR))))
303 return E_OUTOFMEMORY;
305
306 longsz = GetLongPathNameW(path, path, sz);
307 if (longsz > sz)
308 {
309 if (!(path = heap_realloc(path, longsz * sizeof(WCHAR))))
310 {
312 return E_OUTOFMEMORY;
313 }
314 GetLongPathNameW(path, path, longsz);
315 }
316
317 SysFreeString( This->filename );
318 This->filename = SysAllocString(path);
320 return This->filename ? S_OK : E_OUTOFMEMORY;
321}
static void * heap_alloc(size_t len)
Definition: appwiz.h:66
static BOOL heap_free(void *mem)
Definition: appwiz.h:76
static void * heap_realloc(void *mem, size_t len)
Definition: appwiz.h:71
#define NO_ERROR
Definition: dderror.h:5
#define E_INVALIDARG
Definition: ddrawi.h:101
#define NULL
Definition: types.h:112
DWORD WINAPI GetLongPathNameW(IN LPCWSTR lpszShortPath, OUT LPWSTR lpszLongPath, IN DWORD cchBuffer)
Definition: path.c:1456
DWORD WINAPI GetFullPathNameW(IN LPCWSTR lpFileName, IN DWORD nBufferLength, OUT LPWSTR lpBuffer, OUT LPWSTR *lpFilePart)
Definition: path.c:1106
unsigned long DWORD
Definition: ntddk_ex.h:95
GLuint res
Definition: glext.h:9613
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
Definition: oleaut.c:271
#define HRESULT_FROM_WIN32(x)
Definition: winerror.h:92
#define UNIVERSAL_NAME_INFO_LEVEL
Definition: winnetwk.h:151
#define WN_MORE_DATA
Definition: winnetwk.h:117
DWORD WINAPI WNetGetUniversalNameW(LPCWSTR lpLocalPath, DWORD dwInfoLevel, LPVOID lpBuffer, LPDWORD lpBufferSize)
Definition: wnet.c:2777
__wchar_t WCHAR
Definition: xmlstorage.h:180

◆ fw_app_put_RemoteAddresses()

static HRESULT WINAPI fw_app_put_RemoteAddresses ( INetFwAuthorizedApplication iface,
BSTR  remoteAddrs 
)
static

Definition at line 377 of file apps.c.

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

◆ fw_app_put_Scope()

static HRESULT WINAPI fw_app_put_Scope ( INetFwAuthorizedApplication iface,
NET_FW_SCOPE  scope 
)
static

Definition at line 357 of file apps.c.

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

◆ fw_app_QueryInterface()

static HRESULT WINAPI fw_app_QueryInterface ( INetFwAuthorizedApplication iface,
REFIID  riid,
void **  ppvObject 
)
static

Definition at line 73 of file apps.c.

77{
79
80 TRACE("%p %s %p\n", This, debugstr_guid( riid ), ppvObject );
81
82 if ( IsEqualGUID( riid, &IID_INetFwAuthorizedApplication ) ||
85 {
86 *ppvObject = iface;
87 }
88 else
89 {
90 FIXME("interface %s not implemented\n", debugstr_guid(riid));
91 return E_NOINTERFACE;
92 }
93 INetFwAuthorizedApplication_AddRef( iface );
94 return S_OK;
95}
const GUID IID_IUnknown
const GUID IID_IDispatch
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
Definition: wincrypt.h:6082
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ fw_app_Release()

static ULONG WINAPI fw_app_Release ( INetFwAuthorizedApplication iface)
static

Definition at line 59 of file apps.c.

61{
64 if (!refs)
65 {
66 TRACE("destroying %p\n", fw_app);
69 }
70 return refs;
71}
#define InterlockedDecrement
Definition: armddk.h:52
#define GetProcessHeap()
Definition: compat.h:736
#define HeapFree(x, y, z)
Definition: compat.h:735
long LONG
Definition: pedump.c:60
BSTR filename
Definition: apps.c:44

◆ fw_apps_Add()

static HRESULT WINAPI fw_apps_Add ( INetFwAuthorizedApplications iface,
INetFwAuthorizedApplication app 
)
static

Definition at line 588 of file apps.c.

591{
593
594 FIXME("%p, %p\n", This, app);
595 return S_OK;
596}
static fw_apps * impl_from_INetFwAuthorizedApplications(INetFwAuthorizedApplications *iface)
Definition: apps.c:456
Definition: apps.c:451

◆ fw_apps_AddRef()

static ULONG WINAPI fw_apps_AddRef ( INetFwAuthorizedApplications iface)
static

Definition at line 461 of file apps.c.

463{
466}
LONG refs
Definition: apps.c:453

◆ fw_apps_get__NewEnum()

static HRESULT WINAPI fw_apps_get__NewEnum ( INetFwAuthorizedApplications iface,
IUnknown **  newEnum 
)
static

Definition at line 619 of file apps.c.

622{
624
625 FIXME("%p, %p\n", This, newEnum);
626 return E_NOTIMPL;
627}

◆ fw_apps_get_Count()

static HRESULT WINAPI fw_apps_get_Count ( INetFwAuthorizedApplications iface,
LONG count 
)
static

Definition at line 578 of file apps.c.

581{
583
584 FIXME("%p, %p\n", This, count);
585 return E_NOTIMPL;
586}
GLuint GLuint GLsizei count
Definition: gl.h:1545

◆ fw_apps_GetIDsOfNames()

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

Definition at line 527 of file apps.c.

534{
537 HRESULT hr;
538
539 TRACE("%p %s %p %u %u %p\n", This, debugstr_guid(riid), rgszNames, cNames, lcid, rgDispId);
540
542 if (SUCCEEDED(hr))
543 {
544 hr = ITypeInfo_GetIDsOfNames( typeinfo, rgszNames, cNames, rgDispId );
545 ITypeInfo_Release( typeinfo );
546 }
547 return hr;
548}
@ INetFwAuthorizedApplications_tid

◆ fw_apps_GetTypeInfo()

static HRESULT WINAPI fw_apps_GetTypeInfo ( INetFwAuthorizedApplications iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 515 of file apps.c.

520{
522
523 TRACE("%p %u %u %p\n", This, iTInfo, lcid, ppTInfo);
525}

◆ fw_apps_GetTypeInfoCount()

static HRESULT WINAPI fw_apps_GetTypeInfoCount ( INetFwAuthorizedApplications iface,
UINT pctinfo 
)
static

Definition at line 505 of file apps.c.

508{
510
511 FIXME("%p %p\n", This, pctinfo);
512 return E_NOTIMPL;
513}

◆ fw_apps_Invoke()

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

Definition at line 550 of file apps.c.

560{
563 HRESULT hr;
564
565 TRACE("%p %d %s %d %d %p %p %p %p\n", This, dispIdMember, debugstr_guid(riid),
566 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
567
569 if (SUCCEEDED(hr))
570 {
571 hr = ITypeInfo_Invoke( typeinfo, &This->INetFwAuthorizedApplications_iface, dispIdMember,
572 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr );
573 ITypeInfo_Release( typeinfo );
574 }
575 return hr;
576}

◆ fw_apps_Item()

static HRESULT WINAPI fw_apps_Item ( INetFwAuthorizedApplications iface,
BSTR  imageFileName,
INetFwAuthorizedApplication **  app 
)
static

Definition at line 608 of file apps.c.

612{
614
615 TRACE("%p, %s, %p\n", This, debugstr_w(imageFileName), app);
616 return NetFwAuthorizedApplication_create( NULL, (void **)app );
617}
HRESULT NetFwAuthorizedApplication_create(IUnknown *pUnkOuter, LPVOID *ppObj)
Definition: apps.c:432

◆ fw_apps_QueryInterface()

static HRESULT WINAPI fw_apps_QueryInterface ( INetFwAuthorizedApplications iface,
REFIID  riid,
void **  ppvObject 
)
static

Definition at line 481 of file apps.c.

485{
487
488 TRACE("%p %s %p\n", This, debugstr_guid( riid ), ppvObject );
489
490 if ( IsEqualGUID( riid, &IID_INetFwAuthorizedApplications ) ||
493 {
494 *ppvObject = iface;
495 }
496 else
497 {
498 FIXME("interface %s not implemented\n", debugstr_guid(riid));
499 return E_NOINTERFACE;
500 }
501 INetFwAuthorizedApplications_AddRef( iface );
502 return S_OK;
503}

◆ fw_apps_Release()

static ULONG WINAPI fw_apps_Release ( INetFwAuthorizedApplications iface)
static

Definition at line 468 of file apps.c.

470{
473 if (!refs)
474 {
475 TRACE("destroying %p\n", fw_apps);
477 }
478 return refs;
479}

◆ fw_apps_Remove()

static HRESULT WINAPI fw_apps_Remove ( INetFwAuthorizedApplications iface,
BSTR  imageFileName 
)
static

Definition at line 598 of file apps.c.

601{
603
604 FIXME("%p, %s\n", This, debugstr_w(imageFileName));
605 return S_OK;
606}

◆ get_typeinfo()

HRESULT get_typeinfo ( enum type_id  tid,
ITypeInfo **  ret 
)

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 {
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
static ITypeLib * typelib
Definition: apps.c:108
#define ERR(fmt,...)
Definition: debug.h:110
HRESULT WINAPI LoadRegTypeLib(REFGUID rguid, WORD wVerMajor, WORD wVerMinor, LCID lcid, ITypeLib **ppTLib)
Definition: typelib.c:531
#define InterlockedCompareExchangePointer
Definition: interlocked.h:129
#define FAILED(hr)
Definition: intsafe.h:51
static TfClientId tid
#define LOCALE_SYSTEM_DEFAULT
int ret

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(), 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().

◆ impl_from_INetFwAuthorizedApplication()

◆ impl_from_INetFwAuthorizedApplications()

static fw_apps * impl_from_INetFwAuthorizedApplications ( INetFwAuthorizedApplications iface)
inlinestatic

◆ NetFwAuthorizedApplication_create()

HRESULT NetFwAuthorizedApplication_create ( IUnknown pUnkOuter,
LPVOID ppObj 
)

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}
static const struct INetFwAuthorizedApplicationVtbl fw_app_vtbl
Definition: apps.c:409
#define HeapAlloc
Definition: compat.h:733
f_args fa
Definition: format.c:280

Referenced by fw_apps_Item().

◆ NetFwAuthorizedApplications_create()

HRESULT NetFwAuthorizedApplications_create ( IUnknown pUnkOuter,
LPVOID ppObj 
)

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

Referenced by fw_profile_get_AuthorizedApplications().

◆ 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}
#define ARRAY_SIZE(A)
Definition: main.h:33
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

Referenced by DllMain(), and process_detach().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( hnetcfg  )

Variable Documentation

◆ fw_app_vtbl

const struct INetFwAuthorizedApplicationVtbl fw_app_vtbl
static
Initial value:
=
{
}
static HRESULT WINAPI fw_app_put_Enabled(INetFwAuthorizedApplication *iface, VARIANT_BOOL enabled)
Definition: apps.c:399
static HRESULT WINAPI fw_app_GetTypeInfo(INetFwAuthorizedApplication *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: apps.c:171
static HRESULT WINAPI fw_app_get_ProcessImageFileName(INetFwAuthorizedApplication *iface, BSTR *imageFileName)
Definition: apps.c:254
static HRESULT WINAPI fw_app_get_IpVersion(INetFwAuthorizedApplication *iface, NET_FW_IP_VERSION *ipVersion)
Definition: apps.c:323
static HRESULT WINAPI fw_app_GetIDsOfNames(INetFwAuthorizedApplication *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: apps.c:183
static ULONG WINAPI fw_app_AddRef(INetFwAuthorizedApplication *iface)
Definition: apps.c:52
static HRESULT WINAPI fw_app_get_Name(INetFwAuthorizedApplication *iface, BSTR *name)
Definition: apps.c:234
static HRESULT WINAPI fw_app_put_IpVersion(INetFwAuthorizedApplication *iface, NET_FW_IP_VERSION ipVersion)
Definition: apps.c:337
static HRESULT WINAPI fw_app_QueryInterface(INetFwAuthorizedApplication *iface, REFIID riid, void **ppvObject)
Definition: apps.c:73
static HRESULT WINAPI fw_app_get_Scope(INetFwAuthorizedApplication *iface, NET_FW_SCOPE *scope)
Definition: apps.c:347
static HRESULT WINAPI fw_app_put_Name(INetFwAuthorizedApplication *iface, BSTR name)
Definition: apps.c:244
static HRESULT WINAPI fw_app_put_ProcessImageFileName(INetFwAuthorizedApplication *iface, BSTR image)
Definition: apps.c:269
static HRESULT WINAPI fw_app_get_RemoteAddresses(INetFwAuthorizedApplication *iface, BSTR *remoteAddrs)
Definition: apps.c:367
static HRESULT WINAPI fw_app_put_RemoteAddresses(INetFwAuthorizedApplication *iface, BSTR remoteAddrs)
Definition: apps.c:377
static HRESULT WINAPI fw_app_GetTypeInfoCount(INetFwAuthorizedApplication *iface, UINT *pctinfo)
Definition: apps.c:97
static ULONG WINAPI fw_app_Release(INetFwAuthorizedApplication *iface)
Definition: apps.c:59
static HRESULT WINAPI fw_app_Invoke(INetFwAuthorizedApplication *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: apps.c:206
static HRESULT WINAPI fw_app_put_Scope(INetFwAuthorizedApplication *iface, NET_FW_SCOPE scope)
Definition: apps.c:357
static HRESULT WINAPI fw_app_get_Enabled(INetFwAuthorizedApplication *iface, VARIANT_BOOL *enabled)
Definition: apps.c:387

Definition at line 409 of file apps.c.

Referenced by NetFwAuthorizedApplication_create().

◆ fw_apps_vtbl

const struct INetFwAuthorizedApplicationsVtbl fw_apps_vtbl
static
Initial value:
=
{
}
static HRESULT WINAPI fw_apps_Add(INetFwAuthorizedApplications *iface, INetFwAuthorizedApplication *app)
Definition: apps.c:588
static ULONG WINAPI fw_apps_Release(INetFwAuthorizedApplications *iface)
Definition: apps.c:468
static HRESULT WINAPI fw_apps_GetTypeInfoCount(INetFwAuthorizedApplications *iface, UINT *pctinfo)
Definition: apps.c:505
static HRESULT WINAPI fw_apps_GetTypeInfo(INetFwAuthorizedApplications *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: apps.c:515
static HRESULT WINAPI fw_apps_get_Count(INetFwAuthorizedApplications *iface, LONG *count)
Definition: apps.c:578
static HRESULT WINAPI fw_apps_GetIDsOfNames(INetFwAuthorizedApplications *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: apps.c:527
static HRESULT WINAPI fw_apps_Item(INetFwAuthorizedApplications *iface, BSTR imageFileName, INetFwAuthorizedApplication **app)
Definition: apps.c:608
static HRESULT WINAPI fw_apps_Remove(INetFwAuthorizedApplications *iface, BSTR imageFileName)
Definition: apps.c:598
static ULONG WINAPI fw_apps_AddRef(INetFwAuthorizedApplications *iface)
Definition: apps.c:461
static HRESULT WINAPI fw_apps_get__NewEnum(INetFwAuthorizedApplications *iface, IUnknown **newEnum)
Definition: apps.c:619
static HRESULT WINAPI fw_apps_QueryInterface(INetFwAuthorizedApplications *iface, REFIID riid, void **ppvObject)
Definition: apps.c:481
static HRESULT WINAPI fw_apps_Invoke(INetFwAuthorizedApplications *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: apps.c:550

Definition at line 629 of file apps.c.

Referenced by NetFwAuthorizedApplications_create().

◆ tid_id

REFIID tid_id[]
static
Initial value:
=
{
&IID_INetFwAuthorizedApplication,
&IID_INetFwAuthorizedApplications,
&IID_INetFwMgr,
&IID_INetFwOpenPort,
&IID_INetFwOpenPorts,
&IID_INetFwPolicy,
&IID_INetFwPolicy2,
&IID_INetFwProfile,
&IID_IUPnPNAT
}

Definition at line 111 of file apps.c.

Referenced by get_typeinfo().

◆ typeinfo

◆ typelib

ITypeLib* typelib
static

Definition at line 108 of file apps.c.

Referenced by add_coclass_typeinfo(), add_dispatch(), add_dispinterface_typeinfo(), add_entry(), add_enum_typeinfo(), add_func_desc(), add_importlib(), add_interface_typeinfo(), add_module_typeinfo(), add_statement(), add_structure_typeinfo(), add_type_typeinfo(), add_typedef_typeinfo(), add_typeinfo_block(), add_union_typeinfo(), alloc_importfile(), alloc_importinfo(), alloc_msft_importinfo(), ATL::AtlComModuleUnregisterServer(), AtlGetObjectSourceInterface(), AtlLoadTypeLib(), ATL::AtlLoadTypeLib(), AtlRegisterTypeLib(), ATL::AtlRegisterTypeLib(), create_library_block(), create_msft_typeinfo(), create_msft_typelib(), create_sltg_typelib(), ctl2_alloc_guid(), ctl2_alloc_name(), ctl2_alloc_segment(), ctl2_alloc_string(), ctl2_alloc_typeinfo(), ctl2_encode_name(), ctl2_finalize_segment(), ctl2_finalize_typeinfos(), ctl2_find_guid(), ctl2_find_name(), ctl2_init_header(), ctl2_init_segdir(), ctl2_write_segment(), ctl2_write_typeinfos(), Dispatch_GetTypeInfo(), dump_TLBImpLib(), dump_TLBImplType(), dump_TLBRefType(), dump_TLBVarDesc(), encode_type(), encode_var(), find_importinfo(), get_default_source(), get_iface_info(), get_typeinfo(), get_typeinfo_for_iid(), ITypeLib2_Constructor_MSFT(), ITypeLib2_Constructor_SLTG(), load_typelib(), MSFT_CustData(), MSFT_DoFuncs(), MSFT_DoImplTypes(), MSFT_DoTypeInfo(), MSFT_DoVars(), MSFT_GetTdesc(), MSFT_Read(), MSFT_ReadGuid(), MSFT_ReadHreftype(), MSFT_ReadName(), MSFT_ReadString(), MSFT_ReadValue(), output_typelib_regscript(), query_typelib_path(), register_current_module_typelib(), register_server(), RegisterTypeLib(), release_typelib(), save_all_changes(), set_custdata(), set_doc_string(), set_guid(), set_help_context(), set_help_file_name(), set_help_string_context(), set_help_string_dll(), set_lcid(), set_lib_flags(), set_name(), set_version(), SLTG_DoFuncs(), SLTG_DoImpls(), SLTG_DoRefs(), SLTG_DoVars(), sltg_get_typelib_ref(), SLTG_ProcessDispatch(), SLTG_ProcessInterface(), SLTG_ProcessModule(), sltg_write_nametable(), sltg_write_typeinfo(), test_create_typelib_lcid(), test_dump_typelib(), test_recinfo(), test_register_typelib(), test_typelib(), TLB_ReadTypeLib(), write_coclass(), write_coclasses(), write_default_value(), write_int_value(), write_library(), write_string_value(), write_typelib_interface(), write_typelib_interfaces(), and write_var_desc().