How to set a zero flag

LONG WINAPI MyUnhandledExceptionFilter(PEXCEPTION_POINTERS p)
{

    if(p->ExceptionRecord->ExceptionCode==EXCEPTION_ACCESS_VIOLATION){
        if(p->ContextRecord->Eip==6F3A15FD){
            p->ContextRecord->EFlags
        }

I want my exception handler to set the flag to zero if an exception occurred at the specified address;) how do I do this p->ContextRecord->EFlags|=??

also, if I just pass EXCEPTION_CONTINUE_EXECUTIONafter an access violation, will it work ?: D and, should I enable EIP or will it fall on the next instruction?

+3
source share
1 answer

ZF- bit 6 of EFLAGS, thereforeEFlags |= 1 << 6;

Download the Intel or AMD processor manual. Here you will find all this information.

+5
source

All Articles