package Structure;

import j4d.open.*;

class Examplet {

  /* getProcessList allows you to retrieve the list of user process and
  / some other information about the process.
  */
  public String[] getProcessList(opProcess process) throws opException {

    String[] mProcessNames;

    try{
      opServerProcessArray processListArray = process.GetProcessList();
      mProcessNames = new String[processListArray.mSize];
      for (short cpt = 0; cpt < processListArray.mSize; ++cpt)
        mProcessNames[cpt] = processListArray.mServerProcessArray[cpt].mProcessName;
    }
    catch (opException er){throw er;}

    return mProcessNames;
  }

}