mpulver at midiwall.com
Thu Jan 29 12:47:01 EST 1998
Joe Zbiciak (12:29 AM 1/29/98) wrote:
>Where is the full path to the EXE stored? My foggy memory says that
>around DOS 3.x they started hiding that just behind the environment
>block, but I'm not certain.
PSP:002C = segement of ENV for this PSP, PSP is always on
even paragraph boundry
Search through ENV for double NUL (0x0000)
Add 4 bytes
You're now pointing at the start of the fully qualified filename of
the EXE that owns this ENV space.
Mark Pulver - http://www.wwa.com/~mpulver The "Son of The MIDI Wall"
* Gear Wanted List!! ==> http://www.wwa.com/~mpulver/gwlist.html *
To unsubcribe, send 'unsubscribe rc5' to majordomo at lists.distributed.net
rc5-digest subscribers replace rc5 with rc5-digest
More information about the rc5