### INonGUIApplication

  This class represents a non-GUI application, as apposed to a GUI aware application.

### INonGUIApplication - Member Functions and Data by Group

### Constructors & Destructor

Construct and destruct non-GUI application objects.

~INonGUIApplication

      protected:
      virtual ~INonGUIApplication()

  Destruct an INonGUIApplication object.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

INonGUIApplication

      protected:
      INonGUIApplication(const IProcessId& id)

  Construct an INonGUIApplication object.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### Current Information

Query information on the current process.

current

      public:
      static ICurrentNonGUIApplication& current()

  Returns a reference to the calling application.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

currentPID

      public:
      static IProcessId currentPID()

  Return the process id for the calling process.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### Debug Information

Get debug information on the process object.

asDebugInfo

      public:
      virtual IString asDebugInfo() const

  Return debug information in text format.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

asString

      public:
      virtual IString asString() const

  Return a formatted string with information on the object.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### Deprecated Priority Methods

adjustPriority

      public:
      virtual INonGUIApplication&
        adjustPriority( long adjustment,
                        bool setDescendents = false )

  This is a deprecated method that is only supported on OS/2 for backwards compatibility. It adjusts the priority level.

Supported Platforms

  Windows | OS/2 | AIX
  No | Yes | No

setPriority

      public:
      virtual INonGUIApplication&
        setPriority( PriorityClass priorityClass,
                     long priorityLevel = 0,
                     bool setDescendents = false )

  This is a deprecated method that is only supported on OS/2 for backwards compatibility. It sets the priority level according to the supplied priority class.

Supported Platforms

  Windows | OS/2 | AIX
  No | Yes | No

### Member Access

Access members of the application objects.

id

      public:
      virtual IProcessId id() const

  Return the process id of the process represented by the object.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### Priority Management

Manage the priority of the application.

setProcessPriority

      public:
      virtual INonGUIApplication&
        setProcessPriority( const EProcessPriority newPrio )

  Set the priority of the process represented by this object.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### INonGUIApplication - Enumerations

EProcessPriority

      enum EProcessPriority { belowNormal,
                              normal,
                              aboveNormal }

  The process priority levels used by the new, portable priority APIs.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

PriorityClass

      enum PriorityClass { noChange,
                           idleTime,
                           regular,
                           timeCritical,
                           foregroundServer }

  The priority classes used by the old, OS/2 specific priority APIs.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### INonGUIApplication - Inherited Member Functions and Data

#### Inherited Public Functions

  - None

#### Inherited Public Data

  - None

#### Inherited Protected Functions

  INonGUIApplication

  -     virtual INonGUIApplication& setId(const IProcessId& id)

#### Inherited Protected Data

  - None