Kernel32.dll
-
c:\> format c:
;P -- Human beings, who are almost unique in having the ability
to learn from the experience of others, are also remarkable
for their apparent disinclination to do so. (Douglas Adams) -
On all versions of Windows, you can't delete it while Windows is running because it's loaded into every process on the system. There is a way to get Windows to replace a file that's in use when it reboots, but in this case I'm not going to tell you because you're basically intending to break Windows. Windows 2000, XP and Server 2003 will resist you by copying out of the DllCache, unless Windows File Protection is disabled. Even if it is, the next patch that replaces kernel32.dll will undo what you've done - or the next time that the user runs the System File Checker, it will ask for the Windows CD in order to repair the damage, since Windows also keeps a signed catalogue of the file versions of protected files. I can't seem to make it clear to you that this is extremely stupid and you will have to find another route to achieve whatever you're trying to achieve - which you still haven't properly explained.
-
On all versions of Windows, you can't delete it while Windows is running because it's loaded into every process on the system. There is a way to get Windows to replace a file that's in use when it reboots, but in this case I'm not going to tell you because you're basically intending to break Windows. Windows 2000, XP and Server 2003 will resist you by copying out of the DllCache, unless Windows File Protection is disabled. Even if it is, the next patch that replaces kernel32.dll will undo what you've done - or the next time that the user runs the System File Checker, it will ask for the Windows CD in order to repair the damage, since Windows also keeps a signed catalogue of the file versions of protected files. I can't seem to make it clear to you that this is extremely stupid and you will have to find another route to achieve whatever you're trying to achieve - which you still haven't properly explained.
i know that there's a function called MoveFileEx, which moves or delets a file after reboot! But that won't work for kernel32.dll because movefileex IS part of the kernel32.dll! If you know another method to change the kernel32.dll then please let me know how! Thanks in advance!
-
:wtf:Why do you want to delete kernel32?:omg: It's a core OS component! Windows won't run without it!! You can't delete it probably because it's loaded into memory and is being used ... for the delete operation! But if you insist... maybe you can try starting your machine in DOS mode (maybe with a DOS bootable floppy). That way windows won't have loaded it and you can then delete it (after disabling the readonly mode). "It was when I found out I could make mistakes that I knew I was on to something." -Ornette Coleman
-
i know that there's a function called MoveFileEx, which moves or delets a file after reboot! But that won't work for kernel32.dll because movefileex IS part of the kernel32.dll! If you know another method to change the kernel32.dll then please let me know how! Thanks in advance!
-
i know that there's a function called MoveFileEx, which moves or delets a file after reboot! But that won't work for kernel32.dll because movefileex IS part of the kernel32.dll! If you know another method to change the kernel32.dll then please let me know how! Thanks in advance!
I must ask that why would you wish to know ? Like stated, kernel32.dll is a core component of Windows OS series. If it is deleted, moved or altered, it most likely causes the operating system to fail booting. On a non-DOS version of Windows (2000, NT, XP, 2003), this would result in a disastreous effect. So... Once more, why do you want to delete it ? Are you, per chance, planning on some kind of a doomsday device ? A virus ? I sincerely hope not, because Code Project, as far as I know, was not made for mischievous people. If you can reason why you'd need to alter it, perhaps we consider in assisting you. Other than that, you should consider another kind of approach to whatever you are trying to accomplish. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.
-
Make a startup disk. Boot your machine using it. Now once you have booted in DOS mode you can go to the windows directory and delete kernel32.dll del kernel32.dll
Somewhere in the world there is a machine language programmer waiting for that damned assembly language fad to pass. - Stan Shanon