GetProcessInfo

Revision as of 07:45, 24 April 2007 by ReneeB (talk | contribs) (adding doc status category)


What's new in Analytica 4.0? >

(Introduced in build 4.0.0.39)

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


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.