Old Subject: Explorer Messages



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


.



Relevant Pages

  • [Full-disclosure] Reverse Shell Without Enabling Netcats "GAPING_SECURITY_HOLE"
    ... While the method below does not provide a "TRUE" interactive shell it ... get in the way of proper communication using this method. ... output of your commands in and run. ... On the attacker host open a terminal window that you want to enter in your ...
    (Full-Disclosure)
  • RE: Opening Access database
    ... Here's a Shell function method, but it will give you limited automation ... You can then control the application using Access objects and methods, ... maximizes the project window within the Access main window, ... then that app will receive the keystrokes. ...
    (microsoft.public.excel.programming)
  • Re: Custom shell window management
    ... there and change all window attributes to remove system buttons and system menu items ... Another quick and dirty workaround would be to handle WM_ACTIVATE event for your shell app window and, ... I'd recommend you to create your shell app with CreateWindowEx API with the WS_EX_NOACTIVATE ex-style set. ... that seem common to custom shell creation. ...
    (microsoft.public.windowsxp.embedded)
  • Re: More difficult question - how do I wait until another application closes?
    ... Rick Rothstein wrote: ... another window. ... This method doesn't use Shell -- it uses CreateProcessA (and provides ... Private Declare Function OpenProcess _ ...
    (comp.lang.basic.visual.misc)
  • Re: Booting right into my Application at startup
    ... handled, normally, by the taskbar. ... You can't call shell APIs before the shell is running! ... just for a moment, other than having your window come up, taking up the ... hidden via the registry keys? ...
    (microsoft.public.windowsce.embedded)