Old Subject: Explorer Messages
- From: DanS <t.h.i.s.n.t.h.a.t@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 02 Apr 2005 10:14:48 -0600
Greeting's again,
So I'm still pluggin away at the shell replacement. Still stuck at the
same point.
No luck setting a system-wide windows hook from a vbAdvance created DLL.
As I said near the end of the last thread, I did find a DLL to use, but
this one has issues as well.
For the past week I've been back to trying to get this going properly
with several different shell API calls, to no avail.
In searching around, I've found references to the SetShellWindow call in
USER32.DLL. Most of the links have been to LiteStep related pages.
Anyway, does anyone have any more info on SetShellWindow ? I have it
declared as:
Public Declare Function SetShellWindow Lib "user32" (ByVal hwnd As Long)
As Long
For some reason, this call always fails and returns 0.
If Explorer is running and I call GetShellWindow, it returns the handle
to 'Progman'. If I then kill explorer, GetShellWindow returns 0,
indicating that nothing is set as the shell window.
In my program, when it is set to be THE shell, failure of the
SetShellWindow results in GetShellWindow returning 0 as well. The window
I am trying to set as the shell window is an API created 'dummy' window
with a classname of "Progman", for obvious reasons. The funny thing is,
right after calling SetShellWindow (m_Progman), which fails, I'm also
calling RegisterShellHookWindow (m_Progman), which appears to be
successful.
I'm sure that I'm not doing something properly here.....
Anything ?
Thanks in advance,
DanS
.
- Follow-Ups:
- Re: Old Subject: Explorer Messages
- From: Sam Hobbs
- Re: Old Subject: Explorer Messages
- From: TC
- Re: Old Subject: Explorer Messages
- Prev by Date: Re: How to print from VB
- Next by Date: InternetOpenUrl Function...
- Previous by thread: PrintScreen API
- Next by thread: Re: Old Subject: Explorer Messages
- Index(es):
Relevant Pages
|