CheckConsolePrivileges

Determines whether the object on the current connection is a console operator (For cross-platform functionality, see Developing NLMs with Cross-Platform Functions ( NDK: NLM Development Concepts, Tools, and Functions) and call NWCheckConsolePrivileges)

Local Servers:nonblocking
Remote Servers:blocking
NetWare Server:3.x, 4.x, 5.x, 6.x
Platform:NLM
Service:Server-Based Server Environment

Syntax

  #include <nlm\nit\nwenvrn.h>  
   
  int CheckConsolePrivileges (void); 
  

Return Values

Decimal

Hex

Constant

0

(0x00)

ESUCCESS

198

(0xC6)

ERR_NO_CONSOLE_RIGHTS

Remarks

This function determines whether the object on the current connection has console operator rights. If the function returns 0, the object has console operator rights.

See Also

Bindery Concepts

CheckConsolePrivileges Example

  #include <stdio.h>  
  #include <nlm\nit\nwenvrn.h>  
   
  main()  
  {  
     int   ccode;  
     printf ("\n\n");  
     ccode = CheckConsolePrivileges ();  
     if (ccode == 0)  
        printf ("You HAVE console Operator rights.\n");  
     else  
        if (ccode == 198)  
        printf ("You DO NOT have console Operator rights.\n");  
  }