> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SetPriorityClass Method of the IHostProcessControl Interface

<Note>
  This method is implemented in FRE for Windows.
</Note>

Sets the priority class of the host process. By default, the priority class is Below Normal.

## Syntax

### C++

```cpp theme={null}
HRESULT SetPriorityClass( int PriorityClass );
```

### C\#

```csharp theme={null}
void SetPriorityClass( int PriorityClass );
```

### Visual Basic .NET

```vb theme={null}
Sub SetPriorityClass(PriorityClass As Integer)
```

## Parameters

PriorityClass

\[in] This parameter specifies the priority class for the host process. This parameter can have the same values as this parameter in the [SetPriorityClass Function](http://msdn.microsoft.com/en-us/library/ms686219\(VS.85\).aspx) in the Windows API.

## Return values

This method has no specific return values. It returns the [standard return values of the ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## See also

[IHostProcessControl](/fine-reader/engine/api-reference/engine-loaders/ihostprocesscontrol)

[OutprocLoader](/fine-reader/engine/api-reference/engine-loaders/outprocloader)

[Different Ways to Load the Engine Object](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/different-ways-to-load-engine)
