How to get/set ErrorMode in a process given the pid

Does anyone know how to get/set the errormode in an external process?
SetErrorMode only works for the current process. I would need something
that given a PID I could get/set the error mode. I have full access to
read/write the proc memory. I tried to find in the eprocess struct but i
could not find anything documented.

Thanks


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Disassemble SetErrorMode and try to update the same kernel32’s global variables in that process.

Max

----- Original Message -----
From: “Fabio”
To: “NT Developers Interest List”
Sent: Sunday, December 16, 2001 11:37 PM
Subject: [ntdev] How to get/set ErrorMode in a process given the pid

>
> Does anyone know how to get/set the errormode in an external process?
> SetErrorMode only works for the current process. I would need something
> that given a PID I could get/set the error mode. I have full access to
> read/write the proc memory. I tried to find in the eprocess struct but i
> could not find anything documented.
>
> Thanks
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com