www.delorie.com/djgpp/doc/libc/libc_441.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

_go32_dpmi_lock_code

Syntax

 
#include <dpmi.h>

int _go32_dpmi_lock_code( void *lockaddr, unsigned long locksize);

Description

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.

Return Value

0 if success, -1 if failure.

Portability

ANSI/ISO C No
POSIX No

Example

 
void my_handler()
{
}

void lock_my_handler()
{
  _go32_dpmi_lock_code(my_handler,
                       (unsigned long)(lock_my_handler - my_handler));
}


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004