GetWorkProcessId Method of the IWorkProcessControl Interface

Returns the ID of the process which hosts FlexiCapture SDK. The program which uses FlexiCapture SDK can control whether the host process is alive and can terminate the process if necessary.

Note: It is important to obtain the identifier of the process first, and only then start the work with FlexiCapture SDK. This is due to the fact that all FlexiCapture SDK method calls are performed sequentially, therefore, when FlexiCapture SDK is not responding, the call to this method will remain in the queue and will not finish too.


Visual Basic .NET

Function GetWorkProcessId() As Integer


HRESULT GetWorkProcessId(
  int* Result


[out, retval] This parameter contains the identifier of the host process.

Return values

This method has no specific return values. It returns the standard return values of the ABBYY FlexiCapture SDK functions.

See also



Different Ways to Load the Engine Object

See sample: FlexiCapture SDK Code Snippets

15.08.2023 13:19:30

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.