Re: Overwriting Files In Use
- From: "lu0" <lu0@xxxxxxx>
- Date: Wed, 14 Dec 2005 09:55:03 +0800
Antivirus software may do something special to against virus. For those
purpose, use special method to wipe out on disk viurs data is not a problem.
Dealing with in memory active virus is tricky.
--
best regards,
Lu Lin
TTC senior engineer
http://ttcone.com
Inside Programming
http://lu0.126.com
<linestyle@xxxxxxx> wrote in message news:dnmom9$4q6$1@xxxxxxxxxxxxxxxxx
> Many antivirus software and virus want to replace the in use file,:),but
> always fail.
> -----------------------------------------
> ÔÚ Tue, 13 Dec 2005 15:19:07 +0800 £¬lu0дµÀ£º
>>I'm sure this is not a regular way to design software. I just point out
>>the
>>way you(your boss?) choosing was wrong.
>>
>>--
>>best regards,
>>Lu Lin
>>TTC senior engineer
>>http://ttcone.com
>>Inside Programming
>>http://lu0.126.com
>>"Rafael Rivera Jr." <rafael@*n0sp4m*anti-tgtsoft.com> wrote in message
>>news:eq2dnUMbl4ivPADeRVn-qQ@xxxxxxxxxxxxxxx
>>> lu0,
>>>
>>> Thanks, would you be able to point me in the right direction for
>>> designing
>>> such a 'helper'? I'm aware of the problems you indicated and would like
>>> to
>>> continue down this road.
>>>
>>> Rafael Rivera Jr.
>>>
>>> lu0 wrote:
>>>> Overwite file in use especially having memory mapped in user mode is
>>>> impossible. The key is you have no chance to obtain the handle.
>>>>
>>>> Anyway, I had tested some approchs to overwrite exclusive opened files,
>>>> locked files, memory mapped file, assume appclication don't aware of
>>>> there is a utility underlying.
>>>> With kernel mode helper to commit new data to storage to that file is
>>>> possbile. New data appears after application closes handle (map handle
>>>> and file handle) and re-open it.
>>>> Anyway, you'll have to facing to a lot of problems. e.g. memory mapped
>>>> file size can't be shrink, keep same size or extend size seems not to
>>>> be
>>>> a problem. Application don't aware of new data, they may overwrite the
>>>> data you just wrote. New data doesn't come into other processes
>>>> automaticly.
>>>>
>>>> You'd better to design another upgrade mode.
>>>>
>>
>>
>
> -----------------------------------------
>
> Ö Àñ£¡
> zhaoqigang
> linestyle@xxxxxxx
>
.
- References:
- Overwriting Files In Use
- From: Rafael Rivera Jr.
- Re: Overwriting Files In Use
- From: lu0
- Re: Overwriting Files In Use
- From: Rafael Rivera Jr.
- Re: Overwriting Files In Use
- From: lu0
- Overwriting Files In Use
- Prev by Date: Re: Synchronous Read/Write
- Next by Date: RE: How to migrate to Windows Server 2003 64bit?
- Previous by thread: Re: Overwriting Files In Use
- Next by thread: Re: Overwriting Files In Use
- Index(es):
Relevant Pages
|