The better soluce is to use es:0 instead of FS:0 .Change the value of ES only for the need,it must return to it's value after ES:0.
hi. Please explain why :| . I've never seen usage of ES. Is it used for exception handling, too ?
strings function is defined to use ES segment :)
Yes ,FS:0 is the location for the address of the proc called when an exception occured.MASM don't accept the use of FS , so when the proc for the exception is made , we have to save ES , put FS in ES , put the offset of the proc in ES:0 and restablish ES to it's original value.That is for WIN98 with WP one API makeit.
why do it in that backwards way, when you can just "assume fs:nothing" and access after that with no problems at all?
Should it be assume fs:flat?