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

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](/fine-reader/engine/api-reference/return-codes).

## See also

[IHostProcessControl](/fine-reader/engine/api-reference/engine-loaders/ihostprocesscontrol)

[OutprocLoader](/fine-reader/engine/api-reference/engine-loaders/outprocloader)

[Different Ways to Load the Engine Object](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/different-ways-to-load-engine)
