Re: CreateProcess
From: Omega Red (ignorethis.omegared_at_o2.ignorethis.pl)
Date: 08/28/04
- Next message: Alexander Grigoriev: "Re: CreateProcess"
- Previous message: lqs: "CreateProcess"
- In reply to: lqs: "CreateProcess"
- Next in thread: Alexander Grigoriev: "Re: CreateProcess"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 28 Aug 2004 15:24:14 +0200
On Sat, 28 Aug 2004 21:10:45 +0800, lqs wrote:
> How to create a process with these:
>
> 1. If the process calls MessageBox function, how to avoid the message window
> showing on the desktop?
You can replace reference to MessageBox in import table of EXE with some
empty code.
> 2. If the process crashes, how to detect the error "XXXX has encountered a
> problem and needs to close. We are sorry for the inconvenience." and avoid
> the error message showing on the desktop?
Either inject some code at the target process start and call
SetUnhandledExceptionFilter() with silent handler, or create the target
process under debug API, it allows the 'debugger' to process exceptions
first. There is probably a way to globally disable this exception window,
but can't remember how.
-- Vulnerant omnes, ultima necat. http://ry.pl/~omega
- Next message: Alexander Grigoriev: "Re: CreateProcess"
- Previous message: lqs: "CreateProcess"
- In reply to: lqs: "CreateProcess"
- Next in thread: Alexander Grigoriev: "Re: CreateProcess"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|