How can an application obtain its full path?

Post here questions, problems and suggestions in English language
  • Code: Select all

    	use32
    	org 0x0
    	db 'MENUET01'	; 8 byte id
    	dd 0x01		; header version
    	dd START	; start of code
    	dd IM_END	; size of image
    	dd I_END	; memory for app
    	dd stacktop	; esp
    	dd ext_dest_cmdline	; I_Param
    	dd path		; APPLICATION PACH
    
    ...
    
    path:
    	rb  4096
    
    Всем чмоки в этом проекте! Засуньте эти 11 лет себе в жопу!
  • yes, if the last dword of header is non-zero, the kernel will thread it as a 4096 byte buffer where it will write path into.
    "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein
  • Who is online

    Users browsing this forum: No registered users and 5 guests