i'm talking about this thread http://cboard.cprogramming.com/showt...366#post584366 i have solved it on my own, however i want to say THANKS for the GREAT help here. now my dll can delete itself, even with read-only permissions. i have some checks inside my dll and this checks trigger the self delete function inside my dll, my dll then deletes just itself and nothing can't prevent it from not doing it.