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)
#include <nlm\nit\nwenvrn.h> int CheckConsolePrivileges (void);
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.
#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");
}