UnRegisterConsoleCommand

Unregisters a console command parsing function.

Library:LibC
Classification:NetWare OS
Service:NetWare Platform

Syntax

  #include <netware.h> 
   
  int UnRegisterConsoleCommand (
     CommandParser_t   *cmdParser); 
  

Parameters

cmdParser

(IN) Points to the command parsing function that is to be unregistered.

Return Values

If successful, returns 0. If the specified command parsing function is not found (has not been registered), returns -1.

Remarks

This function should be called to unregister a command parsing function previously defined with RegisterConsoleCommand.

The function pointer to the callback must be wrappered with the NX_WRAP_INTERFACE macro to ensure accurate library context is established.

See Also

RegisterConsoleCommand