Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
4619b529
Commit
4619b529
authored
Sep 26, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hnetcfg: Add IDispatch support for INetFwMgr, INetFwPolicy and INetFwProfile.
parent
9ff1b4c8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
91 additions
and
25 deletions
+91
-25
apps.c
dlls/hnetcfg/apps.c
+4
-1
hnetcfg_private.h
dlls/hnetcfg/hnetcfg_private.h
+3
-0
manager.c
dlls/hnetcfg/manager.c
+28
-8
policy.c
dlls/hnetcfg/policy.c
+28
-8
profile.c
dlls/hnetcfg/profile.c
+28
-8
No files found.
dlls/hnetcfg/apps.c
View file @
4619b529
...
...
@@ -106,7 +106,10 @@ static ITypeInfo *typeinfo[last_tid];
static
REFIID
tid_id
[]
=
{
&
IID_INetFwAuthorizedApplication
,
&
IID_INetFwAuthorizedApplications
&
IID_INetFwAuthorizedApplications
,
&
IID_INetFwMgr
,
&
IID_INetFwPolicy
,
&
IID_INetFwProfile
};
HRESULT
get_typeinfo
(
enum
type_id
tid
,
ITypeInfo
**
ret
)
...
...
dlls/hnetcfg/hnetcfg_private.h
View file @
4619b529
...
...
@@ -20,6 +20,9 @@ enum type_id
{
INetFwAuthorizedApplication_tid
,
INetFwAuthorizedApplications_tid
,
INetFwMgr_tid
,
INetFwPolicy_tid
,
INetFwProfile_tid
,
last_tid
};
...
...
dlls/hnetcfg/manager.c
View file @
4619b529
...
...
@@ -96,8 +96,9 @@ static HRESULT WINAPI fw_manager_GetTypeInfoCount(
{
fw_manager
*
This
=
impl_from_INetFwMgr
(
iface
);
FIXME
(
"%p %p
\n
"
,
This
,
pctinfo
);
return
E_NOTIMPL
;
TRACE
(
"%p %p
\n
"
,
This
,
pctinfo
);
*
pctinfo
=
1
;
return
S_OK
;
}
static
HRESULT
WINAPI
fw_manager_GetTypeInfo
(
...
...
@@ -108,8 +109,8 @@ static HRESULT WINAPI fw_manager_GetTypeInfo(
{
fw_manager
*
This
=
impl_from_INetFwMgr
(
iface
);
FIXM
E
(
"%p %u %u %p
\n
"
,
This
,
iTInfo
,
lcid
,
ppTInfo
);
return
E_NOTIMPL
;
TRAC
E
(
"%p %u %u %p
\n
"
,
This
,
iTInfo
,
lcid
,
ppTInfo
);
return
get_typeinfo
(
INetFwMgr_tid
,
ppTInfo
)
;
}
static
HRESULT
WINAPI
fw_manager_GetIDsOfNames
(
...
...
@@ -121,9 +122,18 @@ static HRESULT WINAPI fw_manager_GetIDsOfNames(
DISPID
*
rgDispId
)
{
fw_manager
*
This
=
impl_from_INetFwMgr
(
iface
);
ITypeInfo
*
typeinfo
;
HRESULT
hr
;
FIXME
(
"%p %s %p %u %u %p
\n
"
,
This
,
debugstr_guid
(
riid
),
rgszNames
,
cNames
,
lcid
,
rgDispId
);
return
E_NOTIMPL
;
TRACE
(
"%p %s %p %u %u %p
\n
"
,
This
,
debugstr_guid
(
riid
),
rgszNames
,
cNames
,
lcid
,
rgDispId
);
hr
=
get_typeinfo
(
INetFwMgr_tid
,
&
typeinfo
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
ITypeInfo_GetIDsOfNames
(
typeinfo
,
rgszNames
,
cNames
,
rgDispId
);
ITypeInfo_Release
(
typeinfo
);
}
return
hr
;
}
static
HRESULT
WINAPI
fw_manager_Invoke
(
...
...
@@ -138,10 +148,20 @@ static HRESULT WINAPI fw_manager_Invoke(
UINT
*
puArgErr
)
{
fw_manager
*
This
=
impl_from_INetFwMgr
(
iface
);
ITypeInfo
*
typeinfo
;
HRESULT
hr
;
FIXM
E
(
"%p %d %s %d %d %p %p %p %p
\n
"
,
This
,
dispIdMember
,
debugstr_guid
(
riid
),
TRAC
E
(
"%p %d %s %d %d %p %p %p %p
\n
"
,
This
,
dispIdMember
,
debugstr_guid
(
riid
),
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
return
E_NOTIMPL
;
hr
=
get_typeinfo
(
INetFwMgr_tid
,
&
typeinfo
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
ITypeInfo_Invoke
(
typeinfo
,
&
This
->
INetFwMgr_iface
,
dispIdMember
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
ITypeInfo_Release
(
typeinfo
);
}
return
hr
;
}
static
HRESULT
WINAPI
fw_manager_get_LocalPolicy
(
...
...
dlls/hnetcfg/policy.c
View file @
4619b529
...
...
@@ -95,8 +95,9 @@ static HRESULT WINAPI fw_policy_GetTypeInfoCount(
{
fw_policy
*
This
=
impl_from_INetFwPolicy
(
iface
);
FIXME
(
"%p %p
\n
"
,
This
,
pctinfo
);
return
E_NOTIMPL
;
TRACE
(
"%p %p
\n
"
,
This
,
pctinfo
);
*
pctinfo
=
1
;
return
S_OK
;
}
static
HRESULT
WINAPI
fw_policy_GetTypeInfo
(
...
...
@@ -107,8 +108,8 @@ static HRESULT WINAPI fw_policy_GetTypeInfo(
{
fw_policy
*
This
=
impl_from_INetFwPolicy
(
iface
);
FIXM
E
(
"%p %u %u %p
\n
"
,
This
,
iTInfo
,
lcid
,
ppTInfo
);
return
E_NOTIMPL
;
TRAC
E
(
"%p %u %u %p
\n
"
,
This
,
iTInfo
,
lcid
,
ppTInfo
);
return
get_typeinfo
(
INetFwPolicy_tid
,
ppTInfo
)
;
}
static
HRESULT
WINAPI
fw_policy_GetIDsOfNames
(
...
...
@@ -120,9 +121,18 @@ static HRESULT WINAPI fw_policy_GetIDsOfNames(
DISPID
*
rgDispId
)
{
fw_policy
*
This
=
impl_from_INetFwPolicy
(
iface
);
ITypeInfo
*
typeinfo
;
HRESULT
hr
;
FIXME
(
"%p %s %p %u %u %p
\n
"
,
This
,
debugstr_guid
(
riid
),
rgszNames
,
cNames
,
lcid
,
rgDispId
);
return
E_NOTIMPL
;
TRACE
(
"%p %s %p %u %u %p
\n
"
,
This
,
debugstr_guid
(
riid
),
rgszNames
,
cNames
,
lcid
,
rgDispId
);
hr
=
get_typeinfo
(
INetFwPolicy_tid
,
&
typeinfo
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
ITypeInfo_GetIDsOfNames
(
typeinfo
,
rgszNames
,
cNames
,
rgDispId
);
ITypeInfo_Release
(
typeinfo
);
}
return
hr
;
}
static
HRESULT
WINAPI
fw_policy_Invoke
(
...
...
@@ -137,10 +147,20 @@ static HRESULT WINAPI fw_policy_Invoke(
UINT
*
puArgErr
)
{
fw_policy
*
This
=
impl_from_INetFwPolicy
(
iface
);
ITypeInfo
*
typeinfo
;
HRESULT
hr
;
FIXM
E
(
"%p %d %s %d %d %p %p %p %p
\n
"
,
This
,
dispIdMember
,
debugstr_guid
(
riid
),
TRAC
E
(
"%p %d %s %d %d %p %p %p %p
\n
"
,
This
,
dispIdMember
,
debugstr_guid
(
riid
),
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
return
E_NOTIMPL
;
hr
=
get_typeinfo
(
INetFwPolicy_tid
,
&
typeinfo
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
ITypeInfo_Invoke
(
typeinfo
,
&
This
->
INetFwPolicy_iface
,
dispIdMember
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
ITypeInfo_Release
(
typeinfo
);
}
return
hr
;
}
static
HRESULT
WINAPI
fw_policy_get_CurrentProfile
(
...
...
dlls/hnetcfg/profile.c
View file @
4619b529
...
...
@@ -95,8 +95,9 @@ static HRESULT WINAPI fw_profile_GetTypeInfoCount(
{
fw_profile
*
This
=
impl_from_INetFwProfile
(
iface
);
FIXME
(
"%p %p
\n
"
,
This
,
pctinfo
);
return
E_NOTIMPL
;
TRACE
(
"%p %p
\n
"
,
This
,
pctinfo
);
*
pctinfo
=
1
;
return
S_OK
;
}
static
HRESULT
WINAPI
fw_profile_GetTypeInfo
(
...
...
@@ -107,8 +108,8 @@ static HRESULT WINAPI fw_profile_GetTypeInfo(
{
fw_profile
*
This
=
impl_from_INetFwProfile
(
iface
);
FIXM
E
(
"%p %u %u %p
\n
"
,
This
,
iTInfo
,
lcid
,
ppTInfo
);
return
E_NOTIMPL
;
TRAC
E
(
"%p %u %u %p
\n
"
,
This
,
iTInfo
,
lcid
,
ppTInfo
);
return
get_typeinfo
(
INetFwProfile_tid
,
ppTInfo
)
;
}
static
HRESULT
WINAPI
fw_profile_GetIDsOfNames
(
...
...
@@ -120,9 +121,18 @@ static HRESULT WINAPI fw_profile_GetIDsOfNames(
DISPID
*
rgDispId
)
{
fw_profile
*
This
=
impl_from_INetFwProfile
(
iface
);
ITypeInfo
*
typeinfo
;
HRESULT
hr
;
FIXME
(
"%p %s %p %u %u %p
\n
"
,
This
,
debugstr_guid
(
riid
),
rgszNames
,
cNames
,
lcid
,
rgDispId
);
return
E_NOTIMPL
;
TRACE
(
"%p %s %p %u %u %p
\n
"
,
This
,
debugstr_guid
(
riid
),
rgszNames
,
cNames
,
lcid
,
rgDispId
);
hr
=
get_typeinfo
(
INetFwProfile_tid
,
&
typeinfo
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
ITypeInfo_GetIDsOfNames
(
typeinfo
,
rgszNames
,
cNames
,
rgDispId
);
ITypeInfo_Release
(
typeinfo
);
}
return
hr
;
}
static
HRESULT
WINAPI
fw_profile_Invoke
(
...
...
@@ -137,10 +147,20 @@ static HRESULT WINAPI fw_profile_Invoke(
UINT
*
puArgErr
)
{
fw_profile
*
This
=
impl_from_INetFwProfile
(
iface
);
ITypeInfo
*
typeinfo
;
HRESULT
hr
;
FIXM
E
(
"%p %d %s %d %d %p %p %p %p
\n
"
,
This
,
dispIdMember
,
debugstr_guid
(
riid
),
TRAC
E
(
"%p %d %s %d %d %p %p %p %p
\n
"
,
This
,
dispIdMember
,
debugstr_guid
(
riid
),
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
return
E_NOTIMPL
;
hr
=
get_typeinfo
(
INetFwProfile_tid
,
&
typeinfo
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
ITypeInfo_Invoke
(
typeinfo
,
&
This
->
INetFwProfile_iface
,
dispIdMember
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
ITypeInfo_Release
(
typeinfo
);
}
return
hr
;
}
static
HRESULT
WINAPI
fw_profile_get_Type
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment