> ## 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 IWorkProcessControl Interface

This method sets the priority class for the work process. By default, the priority class is Below Normal.

## Syntax

```vb Visual Basic .NET theme={null}
Sub SetPriorityClass(ByVal dwPriorityClass As Integer)
```

```cpp C++ theme={null}
HRESULT SetPriorityClass(
  int  dwPriorityClass
);
```

## Parameters

**dwPriorityClass**

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

## Return values

This method has no specific return values. It returns the [standard return values of the ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## See also

[**IWorkProcessControl**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/iworkprocesscontrol.md)

[**OutprocLoader**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/outprocloader.md)

[Different Ways to Load the Engine Object](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/differentwaystoloadengine.md)
