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

# SetParentProcessId Method of the IWorkProcessControl Interface

This method sets the identifier of the parent process for the work process. When the parent process terminates all its work processes will also terminate.

## Syntax

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

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

## Parameters

**Id**

\[in] This parameter contains the identifier of the parent process.

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