Admin Production ni-theme
Current Publication

ExecutableHasTerminated

LabWindows/CVI

ExecutableHasTerminated

int ExecutableHasTerminated (int executableHandle);

Purpose

Determines whether an application started with LaunchExecutableEx has terminated.

Parameters

Input
Name Type Description
executableHandle int Executable handle you obtain from LaunchExecutableEx.

Return Value

Name Type Description
status int Result of the operation.

Code Description
-1 Handle is invalid.
0 Executable is still running.
1 Executable has been terminated.

Additional Information

Library: Utility Library

Include file: utility.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Examples

Refer to the following examples that use the ExecutableHasTerminated function:

  • udp\DNSResolver.cws

    Open example
  • utility\launchexe.cws

    Open example