#include <dpmi.h> int _go32_dpmi_lock_code( void *lockaddr, unsigned long locksize);
Locks the given region of code, starting at lockaddr for locksize bytes. lockaddr is a regular pointer in your program, such as the address of a function.
0 if success, -1 if failure.
not ANSI, not POSIX
void my_handler() { } void lock_my_handler() { _go32_dpmi_lock_code(my_handler, (unsigned long)(lock_my_handler - my_handler)); }
Go to the first, previous, next, last section, table of contents.