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
8d7fe371
Commit
8d7fe371
authored
Sep 20, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wshom.ocx: Added WshShell class factory implementation.
parent
2788a95c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
116 additions
and
9 deletions
+116
-9
.gitignore
.gitignore
+1
-0
Makefile.in
dlls/wshom.ocx/Makefile.in
+2
-0
shell.c
dlls/wshom.ocx/shell.c
+29
-0
wshom_main.c
dlls/wshom.ocx/wshom_main.c
+57
-9
wshom_private.h
dlls/wshom.ocx/wshom_private.h
+27
-0
No files found.
.gitignore
View file @
8d7fe371
...
@@ -128,6 +128,7 @@ dlls/vbscript/vbscript_classes.h
...
@@ -128,6 +128,7 @@ dlls/vbscript/vbscript_classes.h
dlls/vbscript/vbsglobal.h
dlls/vbscript/vbsglobal.h
dlls/windowscodecs/windowscodecs_wincodec.h
dlls/windowscodecs/windowscodecs_wincodec.h
dlls/windowscodecs/windowscodecs_wincodec_p.c
dlls/windowscodecs/windowscodecs_wincodec_p.c
dlls/wshom.ocx/wshom.h
include/activaut.h
include/activaut.h
include/activdbg.h
include/activdbg.h
include/activscp.h
include/activscp.h
...
...
dlls/wshom.ocx/Makefile.in
View file @
8d7fe371
MODULE
=
wshom.ocx
MODULE
=
wshom.ocx
C_SRCS
=
\
C_SRCS
=
\
shell.c
\
wshom_main.c
wshom_main.c
RC_SRCS
=
wshom.rc
RC_SRCS
=
wshom.rc
IDL_H_SRCS
=
wshom.idl
IDL_TLB_SRCS
=
wshom.idl
IDL_TLB_SRCS
=
wshom.idl
@MAKE_DLL_RULES@
@MAKE_DLL_RULES@
dlls/wshom.ocx/shell.c
0 → 100644
View file @
8d7fe371
/*
* Copyright 2011 Jacek Caban for CodeWeavers
*
* 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
WshShellFactory_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 @
8d7fe371
...
@@ -16,15 +16,9 @@
...
@@ -16,15 +16,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include "initguid.h"
#include "wshom_private.h"
#include <stdarg.h>
#include "wshom.h"
#define COBJMACROS
#include "windef.h"
#include "winbase.h"
#include "ole2.h"
#include "rpcproxy.h"
#include "rpcproxy.h"
#include "wine/debug.h"
#include "wine/debug.h"
...
@@ -33,6 +27,55 @@ WINE_DEFAULT_DEBUG_CHANNEL(wshom);
...
@@ -33,6 +27,55 @@ WINE_DEFAULT_DEBUG_CHANNEL(wshom);
static
HINSTANCE
wshom_instance
;
static
HINSTANCE
wshom_instance
;
static
HRESULT
WINAPI
ClassFactory_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
*
ppv
=
NULL
;
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
TRACE
(
"(%p)->(IID_IUnknown %p)
\n
"
,
iface
,
ppv
);
*
ppv
=
iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IClassFactory
,
riid
))
{
TRACE
(
"(%p)->(IID_IClassFactory %p)
\n
"
,
iface
,
ppv
);
*
ppv
=
iface
;
}
if
(
*
ppv
)
{
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
}
FIXME
(
"(%p)->(%s %p)
\n
"
,
iface
,
debugstr_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
ClassFactory_AddRef
(
IClassFactory
*
iface
)
{
TRACE
(
"(%p)
\n
"
,
iface
);
return
2
;
}
static
ULONG
WINAPI
ClassFactory_Release
(
IClassFactory
*
iface
)
{
TRACE
(
"(%p)
\n
"
,
iface
);
return
1
;
}
static
HRESULT
WINAPI
ClassFactory_LockServer
(
IClassFactory
*
iface
,
BOOL
fLock
)
{
TRACE
(
"(%p)->(%x)
\n
"
,
iface
,
fLock
);
return
S_OK
;
}
static
const
IClassFactoryVtbl
WshShellFactoryVtbl
=
{
ClassFactory_QueryInterface
,
ClassFactory_AddRef
,
ClassFactory_Release
,
WshShellFactory_CreateInstance
,
ClassFactory_LockServer
};
static
IClassFactory
WshShellFactory
=
{
&
WshShellFactoryVtbl
};
/******************************************************************
/******************************************************************
* DllMain (wshom.ocx.@)
* DllMain (wshom.ocx.@)
*/
*/
...
@@ -58,6 +101,11 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
...
@@ -58,6 +101,11 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
*/
*/
HRESULT
WINAPI
DllGetClassObject
(
REFCLSID
rclsid
,
REFIID
riid
,
LPVOID
*
ppv
)
HRESULT
WINAPI
DllGetClassObject
(
REFCLSID
rclsid
,
REFIID
riid
,
LPVOID
*
ppv
)
{
{
if
(
IsEqualGUID
(
&
CLSID_WshShell
,
rclsid
))
{
TRACE
(
"(CLSID_WshShell %s %p)
\n
"
,
debugstr_guid
(
riid
),
ppv
);
return
IClassFactory_QueryInterface
(
&
WshShellFactory
,
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
0 → 100644
View file @
8d7fe371
/*
* Copyright 2011 Jacek Caban for CodeWeavers
*
* 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 <stdarg.h>
#define COBJMACROS
#include "windef.h"
#include "winbase.h"
#include "ole2.h"
HRESULT
WINAPI
WshShellFactory_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