Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
50d12c9a
Commit
50d12c9a
authored
Sep 02, 2020
by
Esdras Tarsis
Committed by
Vitaly Lipatov
Jul 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.networking.connectivity: Implement IActivationFactory stubs.
v2: Add Proper QueryInterface Fixed Initial Reference Count value.
parent
38416f08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
101 additions
and
4 deletions
+101
-4
windows.networking.connectivity_main.c
...rking.connectivity/windows.networking.connectivity_main.c
+101
-4
No files found.
dlls/windows.networking.connectivity/windows.networking.connectivity_main.c
View file @
50d12c9a
...
...
@@ -22,6 +22,102 @@ static const char *debugstr_hstring(HSTRING hstr)
return
wine_dbgstr_wn
(
str
,
len
);
}
struct
windows_networking_connectivity
{
IActivationFactory
IActivationFactory_iface
;
LONG
refcount
;
};
static
inline
struct
windows_networking_connectivity
*
impl_from_IActivationFactory
(
IActivationFactory
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
windows_networking_connectivity
,
IActivationFactory_iface
);
}
static
HRESULT
STDMETHODCALLTYPE
windows_networking_connectivity_QueryInterface
(
IActivationFactory
*
iface
,
REFIID
iid
,
void
**
object
)
{
TRACE
(
"iface %p, iid %s, object %p stub!
\n
"
,
iface
,
debugstr_guid
(
iid
),
object
);
if
(
IsEqualGUID
(
iid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
iid
,
&
IID_IInspectable
)
||
IsEqualGUID
(
iid
,
&
IID_IAgileObject
)
||
IsEqualGUID
(
iid
,
&
IID_IActivationFactory
))
{
IUnknown_AddRef
(
iface
);
*
object
=
&
impl
->
INetworkInformationStatics_iface
;
return
S_OK
;
}
FIXME
(
"%s not implemented, returning E_NOINTERFACE.
\n
"
,
debugstr_guid
(
iid
));
*
object
=
NULL
;
return
E_NOINTERFACE
;
}
static
ULONG
STDMETHODCALLTYPE
windows_networking_connectivity_AddRef
(
IActivationFactory
*
iface
)
{
struct
windows_networking_connectivity
*
impl
=
impl_from_IActivationFactory
(
iface
);
ULONG
rc
=
InterlockedIncrement
(
&
impl
->
refcount
);
TRACE
(
"%p increasing refcount to %lu.
\n
"
,
impl
,
rc
);
return
rc
;
}
static
ULONG
STDMETHODCALLTYPE
windows_networking_connectivity_Release
(
IActivationFactory
*
iface
)
{
struct
windows_networking_connectivity
*
impl
=
impl_from_IActivationFactory
(
iface
);
ULONG
rc
=
InterlockedDecrement
(
&
impl
->
refcount
);
TRACE
(
"%p decreasing refcount to %lu.
\n
"
,
impl
,
rc
);
return
rc
;
}
static
HRESULT
STDMETHODCALLTYPE
windows_networking_connectivity_GetIids
(
IActivationFactory
*
iface
,
ULONG
*
iid_count
,
IID
**
iids
)
{
FIXME
(
"iface %p, iid_count %p, iids %p stub!
\n
"
,
iface
,
iid_count
,
iids
);
return
E_NOTIMPL
;
}
static
HRESULT
STDMETHODCALLTYPE
windows_networking_connectivity_GetRuntimeClassName
(
IActivationFactory
*
iface
,
HSTRING
*
class_name
)
{
FIXME
(
"iface %p, class_name %p stub!
\n
"
,
iface
,
class_name
);
return
E_NOTIMPL
;
}
static
HRESULT
STDMETHODCALLTYPE
windows_networking_connectivity_GetTrustLevel
(
IActivationFactory
*
iface
,
TrustLevel
*
trust_level
)
{
FIXME
(
"iface %p, trust_level %p stub!
\n
"
,
iface
,
trust_level
);
return
E_NOTIMPL
;
}
static
HRESULT
STDMETHODCALLTYPE
windows_networking_connectivity_ActivateInstance
(
IActivationFactory
*
iface
,
IInspectable
**
instance
)
{
FIXME
(
"iface %p, instance %p stub!
\n
"
,
iface
,
instance
);
return
E_NOTIMPL
;
}
static
const
struct
IActivationFactoryVtbl
activation_factory_vtbl
=
{
windows_networking_connectivity_QueryInterface
,
windows_networking_connectivity_AddRef
,
windows_networking_connectivity_Release
,
/* IInspectable methods */
windows_networking_connectivity_GetIids
,
windows_networking_connectivity_GetRuntimeClassName
,
windows_networking_connectivity_GetTrustLevel
,
/* IActivationFactory methods */
windows_networking_connectivity_ActivateInstance
,
};
static
struct
windows_networking_connectivity
windows_networking_connectivity
=
{
{
&
activation_factory_vtbl
},
1
};
HRESULT
WINAPI
DllGetClassObject
(
REFCLSID
clsid
,
REFIID
riid
,
LPVOID
*
object
)
{
FIXME
(
"clsid %s, riid %s, object %p stub!
\n
"
,
debugstr_guid
(
clsid
),
debugstr_guid
(
riid
),
object
);
...
...
@@ -30,6 +126,8 @@ HRESULT WINAPI DllGetClassObject(REFCLSID clsid, REFIID riid, LPVOID *object)
HRESULT
WINAPI
DllGetActivationFactory
(
HSTRING
classid
,
IActivationFactory
**
factory
)
{
FIXME
(
"classid %s, factory %p stub!
\n
"
,
debugstr_hstring
(
classid
),
factory
);
return
E_NOINTERFACE
;
}
\ No newline at end of file
TRACE
(
"classid %s, factory %p.
\n
"
,
debugstr_hstring
(
classid
),
factory
);
*
factory
=
&
windows_networking_connectivity
.
IActivationFactory_iface
;
IUnknown_AddRef
(
*
factory
);
return
S_OK
;
}
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