PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Allows you to find out whether a 32-bit application is already run.
Remarks:
  • If the executable is compiled in 64 bits, the function returns the status of a 64-bit process.
  • If the executable is compiled in 32 bits, the function returns the status of a 32-bit process even if a 64-bit Windows is run.
Versions 16 and later
WEBDEV - Server codeWindows This function is now available in WEBDEV Server.
WEBDEV - Server code This function is used to find out whether an executable is run on the server. Caution: the rights to handle this executable will be the ones of the current Internet user.
New in version 16
WEBDEV - Server codeWindows This function is now available in WEBDEV Server.
WEBDEV - Server code This function is used to find out whether an executable is run on the server. Caution: the rights to handle this executable will be the ones of the current Internet user.
WEBDEV - Server codeWindows This function is now available in WEBDEV Server.
WEBDEV - Server code This function is used to find out whether an executable is run on the server. Caution: the rights to handle this executable will be the ones of the current Internet user.
Example
WINDEVReports and QueriesUser code (UMC)
NbLance is int
NbLance = ExeRunning("C:\WINDEV\PROGRAMMES\WINDEV.EXE")
IF NbLance > 0 THEN
Info("Vous utilisez WINDEV!")
END
Syntax

Finding out whether the specified executable is run Hide the details

<Result> = ExeRunning([<Executable name> [, <Option>]])
<Result>: Integer
  • Number of instances of the executable currently run.
  • 0 if the application is not started.
  • -1 if a problem occurred. For example:
    • The user has no sufficient rights to list the processes in memory.
    • The application could not access the system DLL used to enumerate the processes.
<Executable name>: Optional character string
Name and full path of executable (up to 260 characters). In this case, <Result> returns the instances of this specific application.
Name of the executable (up to 260 characters). In this case, <Result> is the number of instances of the program (regardless of its initial path).
If this parameter is not specified, the current executable is used.
Caution: The executable must be a 32-bit application.
<Option>: Integer constant
Versions 22 and later
Allows you to specify the type of instances to be counted:
sysCurrentUserCounts the instances of the executable launched by the current user.
sysAllUsersCounts the instances of the executable launched by all users.
New in version 22
Allows you to specify the type of instances to be counted:
sysCurrentUserCounts the instances of the executable launched by the current user.
sysAllUsersCounts the instances of the executable launched by all users.
Allows you to specify the type of instances to be counted:
sysCurrentUserCounts the instances of the executable launched by the current user.
sysAllUsersCounts the instances of the executable launched by all users.

Finding out whether the specified PID is run Hide the details

<Result> = ExeRunning(<Executable PID>)
<Result>: Integer
  • 1 if the application is started.
  • 0 if the application is not started.
<Executable PID>: Integer
PID (Process Identifier) of the executable.
Component: wd270std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment