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

# SetClientProcessId Method of the IHostProcessControl Interface

> SetClientProcessId method of the IHostProcessControl Interface in the ABBYY FineReader Engine API — Sets the ID of the client process which uses FineReader Engine.

> [!NOTE]
>
> This method is implemented in FRE for Windows.

Sets the ID of the client process which uses FineReader Engine. The host process can control whether its client process is alive, and if it is not, can terminate.

## Syntax

### C++

```cpp theme={null}
HRESULT SetClientProcessId( int Id );
```

### C\#

```csharp theme={null}
void SetClientProcessId( int Id );
```

### Visual Basic .NET

```vb theme={null}
Sub SetClientProcessId(Id As Integer)
```

## Parameters

Id

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

## Return values

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

## See also

[IHostProcessControl](https://docs.abbyy.com/fine-reader/engine/api-reference/engine-loaders/ihostprocesscontrol.md)

[OutprocLoader](https://docs.abbyy.com/fine-reader/engine/api-reference/engine-loaders/outprocloader.md)

[Different Ways to Load the Engine Object](https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/different-ways-to-load-engine.md)
