[shell-coding] Re: Shell_TrayWnd: unusual WM_COPYDATA messages
- From: jugg <jugg@xxxxxxxxxxxx>
- To: <shell-coding@xxxxxxxxxxxxx>
- Date: Sun, 19 Oct 2003 23:26:08 -0500 (CDT)
Hmmm, I replied via news.gmane.org, but that hasn't seemed to work yet, so
trying via email. See below.
On Sun, 19 Oct 2003, Kevin Schaffer wrote:
>
> > I've noticed something odd (seemed odd to me at least) when debugging
> > LiteStep's TrayService:
> > As you know WM_COPYDATA is sent to the "tray" window on several
> > occasions. The "dwData" member of the COPYDATASTRUCT tells us what
> > kind of message we just received. If it equals 1 it's a tray message
> > from Shell_NotifyIcon, if it equals 0 it's an appbar message from
> > SHAppBarMessage. So I'm stating the obvious here. But today I saw
> > messages with dwData set to 2. cbData was 20 in those cases. Those are
> > new to me. The messages occured when launching iexplore.exe (each and
> > every time). Can anyone confirm this? Does anyone have any idea what
> > kind of messages they are?
>
>
>
> I think a WM_COPYDATA message is also sent to Shell_TrayWnd when
> someone calls SHLoadInProc. I saw some code once that handled it, but
> I cannot find a reference to it anywhere now. That might be what you're
> seeing.
>
> --
> Maduin
>
Yah, lpData of the COPYDATASTRUCT looks like it contains a CLSID, so I'd
say that's what it is, since SHLoadInProc passes a CLSID. But I don't see
it being useful to us, as all it does is load the indicated container into
the shell's process space.
The CLSID it is trying to load on my system is:
{FFDC1A80-D527-11D0-A32C-34AF06C10000}
which maps to this in the registry:
%SystemRoot%\System32\shdocvw.dll
From MSDN:
Shdocvw.dll in turn hosts the Mshtml.dll component, as well as any other
Active Document component (such as a Microsoft Office application) that
can be loaded in place in the browser when the user navigates to a
specific document type. Shdocvw.dll supplies the functionality associated
with navigation, in-place linking, favorites and history management, and
PICS support. This dynamic-link library (DLL) also exposes interfaces to
its host to allow it to be hosted separately as an ActiveX control. The
Shdocvw.dll component is more frequently referred to as the WebBrowser
Control. In-place linking refers to the ability to click a link in the
HTML of the loaded document and to load a new HTML document in the same
instance of the WebBrowser Control. If only Mshtml.dll is being hosted, a
click on the link results in a new instance of the browser.
Any ideas ?
The link inside of the psdk documentation:
ms-help://MS.PSDK.1033/inet/workshop/browser/overview/overview.htm
chris
__________________________________________________
Subscription options and archive:
http://www.freelists.org/list/shell-coding
- Follow-Ups:
- [shell-coding] Re: Shell_TrayWnd: unusual WM_COPYDATA messages
- From: Ravi/Shell-Shocked
- [shell-coding] Re: Shell_TrayWnd: unusual WM_COPYDATA messages
- From: ilmcuts
- References:
- [shell-coding] Re: Shell_TrayWnd: unusual WM_COPYDATA messages
- From: Kevin Schaffer
Other related posts:
- » [shell-coding] Shell_TrayWnd: unusual WM_COPYDATA messages
- » [shell-coding] Re: Shell_TrayWnd: unusual WM_COPYDATA messages
- » [shell-coding] Re: Shell_TrayWnd: unusual WM_COPYDATA messages
- » [shell-coding] Re: Shell_TrayWnd: unusual WM_COPYDATA messages
- » [shell-coding] Re: Shell_TrayWnd: unusual WM_COPYDATA messages
- » [shell-coding] Re: Shell_TrayWnd: unusual WM_COPYDATA messages
- » [shell-coding] Re: Shell_TrayWnd: unusual WM_COPYDATA messages
- » [shell-coding] Re: Shell_TrayWnd: unusual WM_COPYDATA messages
- [shell-coding] Re: Shell_TrayWnd: unusual WM_COPYDATA messages
- From: Ravi/Shell-Shocked
- [shell-coding] Re: Shell_TrayWnd: unusual WM_COPYDATA messages
- From: ilmcuts
- [shell-coding] Re: Shell_TrayWnd: unusual WM_COPYDATA messages
- From: Kevin Schaffer