core/win32/os.c
/* if changed_prot makes pc:pc+size (page padded) unwritable preserving 
 * other flags */
if changed_prot makes pc:pc+size (page padded) unwritable preserving
other flags
if changed_prot makes pc : pc + size ( page padded ) unwritable preserving other flags
void
make_unhookable(byte *pc, size_t size, bool changed_prot)
{
    if (changed_prot) {
        byte *start_pc = (byte *)ALIGN_BACKWARD(pc, PAGE_SIZE);
        size_t num_bytes = ALIGN_FORWARD(size + (pc - start_pc), PAGE_SIZE);
        internal_change_protection(start_pc, num_bytes, false, 
                                   false, false, 0, NULL);
    }
}
void make_unhookable ( byte * pc , size_t size , bool changed_prot ) { if ( changed_prot ) { byte * start_pc = ( byte * ) ALIGN_BACKWARD ( pc , PAGE_SIZE ) ; size_t num_bytes = ALIGN_FORWARD ( size + ( pc - start_pc ) , PAGE_SIZE ) ; internal_change_protection ( start_pc , num_bytes , false , false , false , 0 , NULL ) ; } }
if changed_prot makes pc:pc+size (page padded) unwritable preserving
 other flags
if changed_prot makes pc : pc + size ( page padded ) unwritable preserving other flags
/*relative*/ /*ignored*/