Injecting a delphi bpl to access a hidden TStringGrid
Posted: Wed Jul 22, 2015 2:20 pm
Hi,
I don't know if this is possible maybe. you can advice me another way to do it.
I have a hidden control inside a form in a Delphi VCL application . The problem is that the control is NOT WINDOWED (TStringGrid). So i need to access it by VCL. It won't work with windows API because it's NOT WINDOWED.
I succeeded injecting a delphi package i built myself. I can call "ShowMessage" perfectly and the message is shown in the target app . The package's name is dpkinj.bpl, but it is said in internet that i won't be able to access that form because my package has actually a kind of different VCL instance. In fact , inside my injected package Application.MainForm=nil.
The code is very simple.
hprocess := OpenProcess(PROCESS_ALL_ACCESS,False, 2512);
b :=InjectLibrary (hprocess,'c:\dpkinj.bpl',7000);
Do you know another way to achieve this?.
Thanks in advance.
I don't know if this is possible maybe. you can advice me another way to do it.
I have a hidden control inside a form in a Delphi VCL application . The problem is that the control is NOT WINDOWED (TStringGrid). So i need to access it by VCL. It won't work with windows API because it's NOT WINDOWED.
I succeeded injecting a delphi package i built myself. I can call "ShowMessage" perfectly and the message is shown in the target app . The package's name is dpkinj.bpl, but it is said in internet that i won't be able to access that form because my package has actually a kind of different VCL instance. In fact , inside my injected package Application.MainForm=nil.
The code is very simple.
hprocess := OpenProcess(PROCESS_ALL_ACCESS,False, 2512);
b :=InjectLibrary (hprocess,'c:\dpkinj.bpl',7000);
Do you know another way to achieve this?.
Thanks in advance.