Difference between revisions of "GetProcessInfo"

m (adding doc status category)
Line 5: Line 5:
  
 
[[What's new in Analytica 4.0?]] >
 
[[What's new in Analytica 4.0?]] >
 
(Introduced in build 4.0.0.39)
 
  
 
= GetProcessInfo(item) =
 
= GetProcessInfo(item) =
Line 22: Line 20:
 
** 15: Critical priority
 
** 15: Critical priority
 
** 31: Real-time priority
 
** 31: Real-time priority
 
+
* "Computer Name"
 
+
* "User Name"
 +
* "Windows Version"
 +
* "Windows SP"
 +
* "Windows Build"
 +
* "Abort Event Object" -- ADE 4.1 only.  Name of global Event object for ADE project that can be used to send ADE a break signal to abort the current computation.
 
== Example Usage (C#) ==
 
== Example Usage (C#) ==
 
             CAEngine ade = new CAEngine();
 
             CAEngine ade = new CAEngine();

Revision as of 23:13, 22 January 2008


What's new in Analytica 4.0? >

GetProcessInfo(item)

Returns information about the current Analytica or ADE process from the Windows operating system, according to which of these texts you pass as the item parameter:

  • "Process ID" -- returns the Process ID, or Pid, for the current process.
  • "Thread ID" -- returns the Id of the Analytica/ADE thread.
  • "Priority" -- returns the priority of the Analytica/ADE thread. The following values are possible (defined by the Windows operating system):
    • -15 : Idle only
    • -2 : lowest priority
    • -1 : below normal
    • 0 : normal priority
    • 1 : Above normal
    • 2 : Highest priority
    • 15: Critical priority
    • 31: Real-time priority
  • "Computer Name"
  • "User Name"
  • "Windows Version"
  • "Windows SP"
  • "Windows Build"
  • "Abort Event Object" -- ADE 4.1 only. Name of global Event object for ADE project that can be used to send ADE a break signal to abort the current computation.

Example Usage (C#)

           CAEngine ade = new CAEngine();
           CAObject V = ade.CreateObject("V","variable");
           V.SetAttribute("definition", "GetProcessInfo(\"Process ID\")");
           string pInfoResult = V.Result().ToString();
Comments


You are not allowed to post comments.