> ## 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.

# IWorkProcessControl インターフェイスの SetPriorityClass メソッド

このメソッドは、ワークプロセスの優先度クラスを設定します。デフォルトの優先度クラスは Below Normal です。

## 構文

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

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

## パラメーター

**dwPriorityClass**

\[in] ワークプロセスの優先度クラスを指定します。このパラメーターには、Windows API の [SetPriorityClass 関数](http://msdn.microsoft.com/en-us/library/ms686219%28VS.85%29.aspx)の同名パラメーターと同じ値を指定できます。

## 戻り値

このメソッドに固有の戻り値はありません。[ABBYY FlexiCapture SDK 関数の標準の戻り値](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorcodes.md)を返します。

## 関連項目

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

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

[Engine オブジェクトのさまざまな読み込み方法](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/differentwaystoloadengine.md)
