Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 16005

Injecting a VB6 dll and manipulating the UI

$
0
0
Hi guys.

I am new here. I'll try to keep it simple.

Mission: Manipulate a legacy VB6 app UI.

The strategy:
1. Create a VB6 ActiveXDll
2. inject it into the process using SetWindowHookex
3. set a timer for handling execution outside the handler itself
4. Do as I please with the UI

I have reached step 4 after much effort, Yet I find no way to access the forms.
I have read that the 'Forms' collection is not accessible via activex dll. as a matter of fact - the entire VB.Global is not accessible.

So my friends - any VB6 guru here can show me the way?
Given that I have an dll that is running - is it possible for me to gain access to the open forms?

(I thought about obtaining the IAccessible pointer and then try to manipulate it into a form "pointer" yet I find no clues for that, nor do I know if the form class itself is COM accessible, or what is it's COM GUID if any.)

Thank you!

Viewing all articles
Browse latest Browse all 16005

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>