hello say i have a running .dll file and i want to delete it i need to somehow remove the protection off it then i can easily delete it anyone know how to do it? thanks
Under Win9x/ME use wininit.ini:
or to delete a file
Under WinNT/2K use MoveFileEx with the MOVEFILE_DELAY_UNTIL_REBOOT flag. Use NULL (not NUL) as target if you want to delete the file. regards, bAZiK P.S.: wininit.ini must be placed in the Windows directory :D This message was edited by bAZiK, on 6/28/2001 11:27:37 AM This message was edited by bAZiK, on 6/28/2001 11:37:50 AM
hmm is it a way to do it programmatically under win 9x?
You mean with an API like under NT instead of the wininit.ini? Hmmm.... yes. But you need to write a sort of a driver (or use a deep registry key. I don't remember now....) The easiest way is useing the ini. Or, (just an Idea), under Win9x/ME rename the "wininit.exe" to "wininit.exe.bak" and place there an exe wich deletes the files for you :-)
I just saw, you asked this before: http://www.hiroshimator.com/asmcommunity/messageboard/ShowMsg.asp?PDays=30&ThreadID=2233&ForumID=1 It isn't possible to immeadetly kill an open file, until the process wich locks the file is terminated. And that happens only on reboot, or if you kill the process.
well but i heard some where that windows locks it just because it runs it and not because it REALLY needs it if it's true then it's possible to delete it anytime the question is how to unlock it
http://www.anticracking.sk/EliCZ/export/DelMod.zip from elicz.cjb.net this prog can delete a running module. but it isn't shipped with source, but its easy to disasm.
all i told you it's possible!! :) thanks for the help now i need to dis asm it do you know a good 32 bit dis asm?
maybe you can ask elicz friendly for the source :) or even you can use his dll; it exports the function you need. and if you are gonna disasm it, i suggest simply softice. add the dll to the exp part in winice.dat and write a prog that calls the api + breakpoint it. good luck.