> ## 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 インターフェイスの SetParentProcessId メソッド

このメソッドは、ワークプロセスの親プロセスの識別子を設定します。親プロセスが終了すると、その親プロセスに属するすべてのワークプロセスも終了します。

## 構文

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

```cpp C++ theme={null}
HRESULT SetParentProcessId(
  int Id
);
```

## パラメーター

**Id**

\[in] このパラメーターには、親プロセスの識別子が格納されます。

## 戻り値

このメソッドに固有の戻り値はありません。[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)
