Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
10d256c6
Commit
10d256c6
authored
Nov 26, 2022
by
Robert Wilhelm
Committed by
Alexandre Julliard
Nov 29, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wshom.ocx: Added WshNetwork class factory implementation.
parent
8a18836e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
0 deletions
+44
-0
Makefile.in
dlls/wshom.ocx/Makefile.in
+1
-0
network.c
dlls/wshom.ocx/network.c
+29
-0
wshom_main.c
dlls/wshom.ocx/wshom_main.c
+13
-0
wshom_private.h
dlls/wshom.ocx/wshom_private.h
+1
-0
No files found.
dlls/wshom.ocx/Makefile.in
View file @
10d256c6
...
@@ -4,6 +4,7 @@ IMPORTS = uuid oleaut32 ole32 shell32 user32 advapi32 scrrun
...
@@ -4,6 +4,7 @@ IMPORTS = uuid oleaut32 ole32 shell32 user32 advapi32 scrrun
EXTRADLLFLAGS
=
-Wb
,--prefer-native
EXTRADLLFLAGS
=
-Wb
,--prefer-native
C_SRCS
=
\
C_SRCS
=
\
network.c
\
shell.c
\
shell.c
\
wshom_main.c
wshom_main.c
...
...
dlls/wshom.ocx/network.c
0 → 100644
View file @
10d256c6
/*
* Copyright 2022 Robert Wilhelm
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "wshom_private.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
wshom
);
HRESULT
WINAPI
WshNetworkFactory_CreateInstance
(
IClassFactory
*
iface
,
IUnknown
*
outer
,
REFIID
riid
,
void
**
ppv
)
{
FIXME
(
"(%p %s %p)
\n
"
,
outer
,
debugstr_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
}
dlls/wshom.ocx/wshom_main.c
View file @
10d256c6
...
@@ -209,7 +209,16 @@ static const IClassFactoryVtbl WshShellFactoryVtbl = {
...
@@ -209,7 +209,16 @@ static const IClassFactoryVtbl WshShellFactoryVtbl = {
ClassFactory_LockServer
ClassFactory_LockServer
};
};
static
const
IClassFactoryVtbl
WshNetworkFactoryVtbl
=
{
ClassFactory_QueryInterface
,
ClassFactory_AddRef
,
ClassFactory_Release
,
WshNetworkFactory_CreateInstance
,
ClassFactory_LockServer
};
static
IClassFactory
WshShellFactory
=
{
&
WshShellFactoryVtbl
};
static
IClassFactory
WshShellFactory
=
{
&
WshShellFactoryVtbl
};
static
IClassFactory
WshNetworkFactory
=
{
&
WshNetworkFactoryVtbl
};
/******************************************************************
/******************************************************************
* DllMain (wshom.ocx.@)
* DllMain (wshom.ocx.@)
...
@@ -241,6 +250,10 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
...
@@ -241,6 +250,10 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
TRACE
(
"(CLSID_WshShell %s %p)
\n
"
,
debugstr_guid
(
riid
),
ppv
);
TRACE
(
"(CLSID_WshShell %s %p)
\n
"
,
debugstr_guid
(
riid
),
ppv
);
return
IClassFactory_QueryInterface
(
&
WshShellFactory
,
riid
,
ppv
);
return
IClassFactory_QueryInterface
(
&
WshShellFactory
,
riid
,
ppv
);
}
}
else
if
(
IsEqualGUID
(
&
CLSID_WshNetwork
,
rclsid
))
{
TRACE
(
"(CLSID_WshNetwork %s %p)
\n
"
,
debugstr_guid
(
riid
),
ppv
);
return
IClassFactory_QueryInterface
(
&
WshNetworkFactory
,
riid
,
ppv
);
}
FIXME
(
"%s %s %p
\n
"
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
riid
),
ppv
);
FIXME
(
"%s %s %p
\n
"
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
riid
),
ppv
);
return
CLASS_E_CLASSNOTAVAILABLE
;
return
CLASS_E_CLASSNOTAVAILABLE
;
...
...
dlls/wshom.ocx/wshom_private.h
View file @
10d256c6
...
@@ -47,3 +47,4 @@ struct provideclassinfo {
...
@@ -47,3 +47,4 @@ struct provideclassinfo {
extern
void
init_classinfo
(
const
GUID
*
guid
,
IUnknown
*
outer
,
struct
provideclassinfo
*
classinfo
)
DECLSPEC_HIDDEN
;
extern
void
init_classinfo
(
const
GUID
*
guid
,
IUnknown
*
outer
,
struct
provideclassinfo
*
classinfo
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
WshShellFactory_CreateInstance
(
IClassFactory
*
,
IUnknown
*
,
REFIID
,
void
**
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
WshShellFactory_CreateInstance
(
IClassFactory
*
,
IUnknown
*
,
REFIID
,
void
**
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
WshNetworkFactory_CreateInstance
(
IClassFactory
*
,
IUnknown
*
,
REFIID
,
void
**
)
DECLSPEC_HIDDEN
;
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