Click here to Skip to main content
16,012,352 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am facing a certain problem. I am trying to delete a certain file programmatically that resides in the system32 folder (malicious file). When i try to delete it using the kill statement an error message shows that says Access Denied as the file is being used by another process. When i searched i found out the that winlogon.exe uses this executable. How can i remove this handle programmatically. Any ideas and suggestions would be very helpful.
Posted

1 solution

Try deleting in safe mode if not check this :
http://www.howtohaven.com/system/deleteundeletablefiles.shtml[^]
 
Share this answer
 
Comments
metagoth 23-Apr-12 5:21am    
Thnx for ur reply. I want to do this thing programmatically by injecting certain commands or dll to unload the dll or exe from the winlogon.exe process. Or does there exist any other method to do that. I do not want any too assist. need help with this idea..
Mehdi Gholam 23-Apr-12 6:03am    
If you are doing test work, create a VM and to your tests in that which you can rollback easily instead of corrupting your system.
metagoth 25-Apr-12 1:37am    
yes i am doing a test. I have XP installed on a virtual machine. I have infected it and now i am working on its removal. Need help please

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900