| 882 |
mhunt |
1 |
//==============================================================================
|
|
|
2 |
//
|
|
|
3 |
// Copyright : (C) 2008 Videlli Limited
|
|
|
4 |
// This file belongs to Videlli Limited
|
|
|
5 |
//
|
|
|
6 |
//==============================================================================
|
|
|
7 |
//
|
|
|
8 |
// Purpose :
|
|
|
9 |
// This file contains the Process class body
|
|
|
10 |
//
|
|
|
11 |
//==============================================================================
|
|
|
12 |
#include "Process.h"
|
|
|
13 |
|
|
|
14 |
//------------------------------------------------------------------------------
|
|
|
15 |
// Constructor
|
|
|
16 |
//------------------------------------------------------------------------------
|
|
|
17 |
// Parameters:
|
|
|
18 |
// path IN - the mPath initial value
|
|
|
19 |
// name IN - the mName initial value
|
|
|
20 |
// pid IN - the mPid initial value
|
|
|
21 |
// ppid IN - the mPpid initial value
|
|
|
22 |
// creationTime IN - the mTime initial value
|
|
|
23 |
//------------------------------------------------------------------------------
|
|
|
24 |
// Returns:
|
|
|
25 |
// None
|
|
|
26 |
//------------------------------------------------------------------------------
|
|
|
27 |
Process::Process( const std::string &path, const std::string &name, const int pid, const int ppid, ULONGLONG creationTime )
|
|
|
28 |
: mName(""),
|
|
|
29 |
mPath(""),
|
|
|
30 |
mPid(0),
|
|
|
31 |
mPpid(0)
|
|
|
32 |
{
|
|
|
33 |
mPath = path;
|
|
|
34 |
mName = name;
|
|
|
35 |
mPid = pid;
|
|
|
36 |
mPpid = ppid;
|
|
|
37 |
mTime = creationTime;
|
|
|
38 |
}
|
|
|
39 |
|
|
|
40 |
//------------------------------------------------------------------------------
|
|
|
41 |
// Destructor
|
|
|
42 |
//------------------------------------------------------------------------------
|
|
|
43 |
// Parameters:
|
|
|
44 |
//------------------------------------------------------------------------------
|
|
|
45 |
// Returns:
|
|
|
46 |
// None
|
|
|
47 |
//------------------------------------------------------------------------------
|
|
|
48 |
Process::~Process()
|
|
|
49 |
{
|
|
|
50 |
}
|