[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

My created process is being terminated.

Posted on 2004-11-13
2
Medium Priority
?
171 Views
Last Modified: 2010-04-05
Hi!
I am using Madshi codehook.
I create a iexplore process, then inject a library.
This works very good. But problem is that when i visit some sites (like http://www.narutofan.com)
then entire process is terminated.
Untill now only this bug appeared on narutofan.com and not on any other sites. (But I guess there is more sites it will appear on)

Then I used mozilla /firefox to open the narutofan site. This time the process wasn't terminated.
This is the code I use to inject.




CreateProcess(nil, pchar(c:\PROGRAM FILES\INTERNET EXPLORER\IEXPLORE.EXE), nil, nil, False,0, nil, nil, StartInfo, ProcInfo);


  Process := ProcInfo.hProcess;
  GetCurrentDirectory(MAX_PATH, Path);
  Module := CreateFile(pchar('Some.dll'), GENERIC_READ, FILE_SHARE_READ, nil, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
  Size := GetFileSize(Module, nil);
  GetMem(Data, Size);
  ReadFile(Module, Data^, Size, BytesRead, nil);
  CloseHandle(Module);
  InjectLibrary(Process, Data);
  FreeMem(Data);
0
Comment
Question by:Zabuza-san
2 Comments
 

Expert Comment

by:ssivagna
ID: 12578990
so?? no one?
0
 
LVL 20

Accepted Solution

by:
Madshi earned 1000 total points
ID: 12586963
double question...
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month18 days, 21 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question