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
3aebefed
Commit
3aebefed
authored
Oct 02, 2003
by
Rolf Kalbermatter
Committed by
Alexandre Julliard
Oct 02, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SHDOCVW_118 (ShellDDEInit) is really a dynamic forward to SHELL32_188.
parent
4202112e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
4 deletions
+50
-4
shdocvw_main.c
dlls/shdocvw/shdocvw_main.c
+50
-4
No files found.
dlls/shdocvw/shdocvw_main.c
View file @
3aebefed
...
...
@@ -33,7 +33,28 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
shdocvw
);
/***********************************************************************
HINSTANCE
shdocvw_hinstance
=
0
;
HMODULE
SHDOCVW_hshell32
=
0
;
/*************************************************************************
* SHDOCVW DllMain
*/
BOOL
WINAPI
DllMain
(
HINSTANCE
hinst
,
DWORD
fdwReason
,
LPVOID
fImpLoad
)
{
TRACE
(
"%p 0x%lx %p
\n
"
,
hinst
,
fdwReason
,
fImpLoad
);
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
shdocvw_hinstance
=
hinst
;
break
;
case
DLL_PROCESS_DETACH
:
if
(
SHDOCVW_hshell32
)
FreeLibrary
(
SHDOCVW_hshell32
);
break
;
}
return
TRUE
;
}
/*************************************************************************
* DllCanUnloadNow (SHDOCVW.@)
*/
HRESULT
WINAPI
SHDOCVW_DllCanUnloadNow
(
void
)
...
...
@@ -81,6 +102,18 @@ HRESULT WINAPI SHDOCVW_DllInstall(BOOL bInstall, LPCWSTR cmdline)
return
S_OK
;
}
/*************************************************************************
* SHDOCVW_LoadShell32
*
* makes sure the handle to shell32 is valid
*/
BOOL
SHDOCVW_LoadShell32
(
void
)
{
if
(
SHDOCVW_hshell32
)
return
TRUE
;
return
((
SHDOCVW_hshell32
=
LoadLibraryA
(
"shell32.dll"
))
!=
NULL
);
}
/***********************************************************************
* @ (SHDOCVW.110)
*
...
...
@@ -99,10 +132,23 @@ DWORD WINAPI WinList_Init(void)
* Called by Win98 explorer.exe main binary, definitely has only one
* parameter.
*/
DWORD
WINAPI
ShellDDEInit
(
DWORD
dw1
)
static
BOOL
(
WINAPI
*
pShellDDEInit
)(
BOOL
start
)
=
NULL
;
BOOL
WINAPI
ShellDDEInit
(
BOOL
start
)
{
FIXME
(
"(%08lx), stub!
\n
"
,
dw1
);
return
0xcafedead
;
TRACE
(
"(%d)
\n
"
,
start
);
if
(
!
pShellDDEInit
)
{
if
(
!
SHDOCVW_LoadShell32
())
return
FALSE
;
pShellDDEInit
=
GetProcAddress
(
SHDOCVW_hshell32
,
(
LPCSTR
)
188
);
}
if
(
pShellDDEInit
)
return
pShellDDEInit
(
start
);
else
return
FALSE
;
}
/***********************************************************************
...
...
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