OKAPI Kernel Simulator - Lock Library Online help

The libraries that are provided enable programs to require proper authorization from the kernel before they can execute. Two libraries are provided, Lock16.lib for 16-bit applications and Lock32.lib for 32-bit application. These libraries can be downloaded from here.

In order to use these libraries you must link them with the rest files of your program. In addition you must provide Windows Sockets support to your application.
The function that performs the authorization has the prototype
 int verify(void); 
and should be called at the beggining of the program. It returns the value 0 if it succeeds, otherwise it exits the program.