// VC code int Main (int Argc, char * argv []) {hmodule module = getModuleHandle (0); char buf [max_path]; getModuleFileName (Module, BUF, SIZEOF BUF); CloseHandle (Handle (4)); __ASM {Lea EAX, BUF PUSH 0 Push 0 Push Eax Push EXITPROCESS PUSH MODULE PUSH Deletefile Push UnmapViewOffile Ret} Return 0;} // Borland C Builder Code // BCB6 Test By / / ----------- -------------------------------------------------- -------------- #pragma hdrstop // ------------------------------- -------------------------------------------- #include "Windows.h "#pragma argsused int main (int Argc, char * argv []) {charf [max_path]; hModule HM1, HM2; HANDLE EX, DE, UN; HM2 = getModuleHandle (0); getModuleFileName (HM2, BUF, 255) ; Hm1 = GetModuleHandle ( "Kernel32"); Ex = GetProcAddress (Hm1, "ExitProcess"); De = GetProcAddress (Hm1, "DeleteFileA"); Un = GetProcAddress (Hm1, "UnmapViewOfFile"); CloseHandle ((HANDLE) 4) __ASM {Lea Eax, BUF PUSH 0 Push 0 Push Eax Push EX PUSH HM2 Push de Push Un Ret} Return 0;} // --------------------- -------------------- ----------------------------------