• Welcome to Valhalla Legends Archive.
 

Running warden modules without triggering DEP

Started by Strilanc, May 22, 2009, 09:09 PM

Previous topic - Next topic

Strilanc

I adapted some vb6 code posted by Ringo to load and run warden modules. I moved as much of the logic to managed code as I could, but the dynamic loading and running of modules is still in the DLL.

It works great, except when I try to use it under windows Vista. DEP catches it (for good reason!). I'm looking for pointers on how to 'properly' dynamically load and run executable code.
Don't pay attention to this signature, it's contradictory.

Strilanc

As is typical, I search for awhile, post on a forum, THEN find a probable answer from more search.

It looks like using VirtualAlloc instead of GlobalAlloc will allow me to do the necessary flagging.
Don't pay attention to this signature, it's contradictory.