[shell-coding] Re: howto talk to lsapi.dll (or any other dll)?

RabidModuleBangs has code to do part of this, it uses IModuleManager tho,
which I believe qualifies as a COM interface so I have no idea if it'll
still work in 0.24.7.
http://www.shellfront.org/modules/rabidmodulebangs-1.1.zip should include
the source.

You could create a module that, on a bang command (or maybe on load),
would search for a specific window belonging to your app, then send it a
list of loaded modules with WM_COPYDATA (which is in MS's docs, but it's
a little weird)

Actually, it might be possible to use IModuleManager directly in a
different address space (probably not), I'm not sure.  Or maybe just send
the handle to the array of modules in a regular window message, it's in a
"safe array"

-rabidcow

On Wed, 24 Jul 2002 18:34:53 +0200 "e-sushi" <e-sushi@xxxxxxx> writes:
> well, to give more detail... I need the program to read out the
> loaded modules from the module manager.
> 
> I'm trying to create some sort of 'stress' testing program for
> development purposes (testing stuff for stability).
> 
> I would need to load and unload modules programmaticly (could do
> that through bangs) and I would need a current module list - so
> I need some kind of data exchange, I don't want to filter all
> dll's in the system for litestep dll's if you know what I mean
> ;).
> 
> I'm just trying to figure out if I really need to create a
> seperate module to get 'interactive' with litestep, or if
> there's a way around that by letting the exe I'm creating hook
> into litestep. (is 'hook' the correct term for this anyway?)
> 
> /*
> Mike, mailto:e-sushi@xxxxxxx
> */
> 
> ----- Original Message -----
> From: <rabidcow@xxxxxxxx>
> To: <shell-coding@xxxxxxxxxxxxx>
> Sent: Wednesday, July 24, 2002 6:38 PM
> Subject: [shell-coding] Re: howto talk to lsapi.dll (or any
> other dll)?
> 
> 
> > I think, most likely WM_COPYDATA.  That is, assuming
> WM_COPYDATA actually
> > does something in LiteStep or something in the address space
> of the dll
> > in question.  (such as, perhaps, a module written expressly
> for that
> > purpose)
> >
> > Actually, if you don't need to transfer any data, filenames,
> or whatever
> > then other messages would work.
> >
> > (hmm, you could use bang commands too, but you'd need to send
> any return
> > values a different way)
> >
> > -rabidcow
> >
> >
> > On Wed, 24 Jul 2002 17:28:59 +0200 "e-sushi" <e-sushi@xxxxxxx>
> writes:
> > > hey there...
> > >
> > > anyone know what would be the best way to let an external
> > > application use lsapi functions (as an external dll, having
> > > functions I want to communicate with)?
> > >
> > > Mike, mailto:e-sushi@xxxxxxx
> > >
> >

________________________________________________________________
GET INTERNET ACCESS FROM JUNO!
Juno offers FREE or PREMIUM Internet access for less!
Join Juno today!  For your FREE software, visit:
http://dl.www.juno.com/get/web/.

__________________________________________________
Subscription options and archive:
http://www.freelists.org/list/shell-coding

Other related posts: