Re: Executing a console program during the startup process like CHKDSK
- From: "Nishant Sivakumar" <nish@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 8 Apr 2005 16:38:59 +0530
>From MSDN (MOVEFILE_DELAY_UNTIL_REBOOT) :-
<snip>The system moves the file immediately after AUTOCHK is executed, but
before creating any paging files.</snip>
Looks like this is what you want. The file is deleted before it's loaded
(even if it's a device driver).
--
Regards,
Nish [VC++ MVP]
http://www.voidnish.com
http://blog.voidnish.com
"He Shiming" <mailbill(NOSPAM)@21cn.com.nospam> wrote in message
news:%23wwCLqCPFHA.3076@xxxxxxxxxxxxxxxxxxxxxxx
> Well, I suppose a few of those spyware remover were using MoveFileEx to
> delete the file. But I'm still not sure when is Windows going to delete
> it. It certainly can't be deleted during shutdown, because the driver is
> still loaded. If Windows were to delete it at startup, then at which
> point?
>
> --
> He Shiming
>
> "MSalters" <MSalters@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:338FB32F-703F-4384-BC78-10080F9E6E41@xxxxxxxxxxxxxxxx
>> "He Shiming" wrote:
>>
>>> Hi,
>>>
>>> I'm working on a spyware removal tool, which, is designed to remove a
>>> really
>>> annoy spyware program who installs itself as a device driver. There's no
>>> way
>>> to uninstall it when the system is up and running. So I'll have to
>>> execute
>>> it during (actually before) the startup process, just like CHKDSK does.
>>
>> MoveFileEx( name,0,MOVEFILE_DELAY_UNTIL_REBOOT )
>> seems logical, if the driver file is deleted it won't load. Reboot and
>> rinse.
>>
>> Regards,
>> Michiel Salters
>>
>
>
.
- References:
- Prev by Date: Re: Executing a console program during the startup process like CHKDSK
- Next by Date: Re: DLL callback to EXE
- Previous by thread: Re: Executing a console program during the startup process like CHKDSK
- Next by thread: Re: Executing a console program during the startup process like CHKDSK
- Index(es):
Relevant Pages
|