Removes a previously registered exit handler so that it is not called when the VM exits (at application exit or unload).
#include <nks/vm.h> int NXVmUnregisterExitHandler ( void (*func)( void * ), void *arg );
(IN) Points to a previously registered cleanup function.
(IN) Points to an argument registered with the handler.
If successful, returns zero; otherwise, returns an error:
NXVmUnregisterExitHandler disassociates the cleanup function that was previously registered by calling NXVmRegisterExitHandler from the calling application's VM. This is done as a tuple of the function and argument such that a registration of the same function, but with a different argument, will not be removed.
After this call, the cleanup handler and argument will not be called at program unload. If the same clean-up handler/argument tuple has been registered more than once, it is the most recent registration that is removed.