core/win32/os.c
/* Change protections on memory region starting at pc of length size 
 * (padded to page boundaries).  This method is meant to be used on DR memory 
 * as part of protect from app and is safe with respect to stats and the data
 * segment.
 */
Change protections on memory region starting at pc of length size
(padded to page boundaries).  This method is meant to be used on DR memory
as part of protect from app and is safe with respect to stats and the data
segment.
Change protections on memory region starting at pc of length size ( padded to page boundaries ) . This method is meant to be used on DR memory as part of protect from app and is safe with respect to stats and the data segment .
bool
change_protection(byte *pc, size_t size, bool writable)
{
    byte *start_page = (byte *)ALIGN_BACKWARD(pc, PAGE_SIZE);
    size_t num_bytes = ALIGN_FORWARD(size + (pc - start_page), PAGE_SIZE);
    return internal_change_protection(start_page, num_bytes, false, 
                                      writable, false, 0, NULL);
}
bool change_protection ( byte * pc , size_t size , bool writable ) { byte * start_page = ( byte * ) ALIGN_BACKWARD ( pc , PAGE_SIZE ) ; size_t num_bytes = ALIGN_FORWARD ( size + ( pc - start_page ) , PAGE_SIZE ) ; return internal_change_protection ( start_page , num_bytes , false , writable , false , 0 , NULL ) ; }
Change protections on memory region starting at pc of length size
 (padded to page boundaries).
Change protections on memory region starting at pc of length size ( padded to page boundaries ) .
/*relative*/ /*not cow*/