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
e020a9a9
Commit
e020a9a9
authored
Aug 15, 1999
by
James Juran
Committed by
Alexandre Julliard
Aug 15, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New routine DllEntryPoint for shell.dll. Loads shell32.dll,
since most shell.dll functions call their 32-bit counterparts.
parent
e8ad6fe6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
1 deletion
+56
-1
shell.c
dlls/shell32/shell.c
+55
-0
shell.spec
dlls/shell32/shell.spec
+1
-1
No files found.
dlls/shell32/shell.c
View file @
e020a9a9
...
...
@@ -64,6 +64,61 @@ static HHOOK SHELL_hHook = 0;
static
UINT16
uMsgWndCreated
=
0
;
static
UINT16
uMsgWndDestroyed
=
0
;
static
UINT16
uMsgShellActivate
=
0
;
HINSTANCE16
SHELL_hInstance
=
0
;
HINSTANCE
SHELL_hInstance32
;
static
int
SHELL_Attach
=
0
;
/***********************************************************************
* SHELL_DllEntryPoint [SHELL.entry]
*
* Initialization code for shell.dll. Automatically loads the
* 32-bit shell32.dll to allow thunking up to 32-bit code.
*
* RETURNS:
*/
BOOL
WINAPI
SHELL_DllEntryPoint
(
DWORD
Reason
,
HINSTANCE16
hInst
,
WORD
ds
,
WORD
HeapSize
,
DWORD
res1
,
WORD
res2
)
{
TRACE_
(
shell
)(
"(%08lx, %04x, %04x, %04x, %08lx, %04x)
\n
"
,
Reason
,
hInst
,
ds
,
HeapSize
,
res1
,
res2
);
switch
(
Reason
)
{
case
DLL_PROCESS_ATTACH
:
SHELL_Attach
++
;
if
(
SHELL_hInstance
)
{
ERR_
(
shell
)(
"shell.dll instantiated twice!
\n
"
);
/*
* We should return FALSE here, but that will break
* most apps that use CreateProcess because we do
* not yet support seperate address-spaces.
*/
return
TRUE
;
}
SHELL_hInstance
=
hInst
;
if
(
!
SHELL_hInstance32
)
{
if
(
!
(
SHELL_hInstance32
=
LoadLibraryA
(
"shell32.dll"
)))
{
ERR_
(
shell
)(
"Could not load sibling shell32.dll
\n
"
);
return
FALSE
;
}
}
break
;
case
DLL_PROCESS_DETACH
:
if
(
!--
SHELL_Attach
)
{
SHELL_hInstance
=
0
;
if
(
SHELL_hInstance32
)
FreeLibrary
(
SHELL_hInstance32
);
}
break
;
}
return
TRUE
;
}
/*************************************************************************
* DragAcceptFiles32 [SHELL32.54]
...
...
dlls/shell32/shell.spec
View file @
e020a9a9
...
...
@@ -27,7 +27,7 @@ type win16
#100 4 0550 HERETHARBETYGARS exported, shared data
#101 8 010e FINDEXEDLGPROC exported, shared data
#101 DLLENTRYPOINT #win95 SHELL.DLL
101 pascal DllEntryPoint(long word word word long word) SHELL_DllEntryPoint
102 pascal16 RegisterShellHook(word word) RegisterShellHook16
103 pascal ShellHookProc(word word long) ShellHookProc16
...
...
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