1
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
<head>
|
4
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
5
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
6
|
<meta name="generator" content="Doxygen 1.9.4"/>
|
7
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
8
|
<title>LDClient: LDClient.detection.ProcessDetection Class Reference</title>
|
9
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
10
|
<script type="text/javascript" src="jquery.js"></script>
|
11
|
<script type="text/javascript" src="dynsections.js"></script>
|
12
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
13
|
<script type="text/javascript" src="resize.js"></script>
|
14
|
<script type="text/javascript" src="navtreedata.js"></script>
|
15
|
<script type="text/javascript" src="navtree.js"></script>
|
16
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
17
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
18
|
<script type="text/javascript" src="search/search.js"></script>
|
19
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
20
|
</head>
|
21
|
<body>
|
22
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
23
|
<div id="titlearea">
|
24
|
<table cellspacing="0" cellpadding="0">
|
25
|
<tbody>
|
26
|
<tr id="projectrow">
|
27
|
<td id="projectalign">
|
28
|
<div id="projectname">LDClient<span id="projectnumber"> v.1</span>
|
29
|
</div>
|
30
|
<div id="projectbrief">Client application for the detection of Lauterbach debugger devices</div>
|
31
|
</td>
|
32
|
</tr>
|
33
|
</tbody>
|
34
|
</table>
|
35
|
</div>
|
36
|
<!-- end header part -->
|
37
|
<!-- Generated by Doxygen 1.9.4 -->
|
38
|
<script type="text/javascript">
|
39
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
40
|
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
|
41
|
/* @license-end */
|
42
|
</script>
|
43
|
<script type="text/javascript" src="menudata.js"></script>
|
44
|
<script type="text/javascript" src="menu.js"></script>
|
45
|
<script type="text/javascript">
|
46
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
47
|
$(function() {
|
48
|
initMenu('',true,false,'search.php','Search');
|
49
|
$(document).ready(function() { init_search(); });
|
50
|
});
|
51
|
/* @license-end */
|
52
|
</script>
|
53
|
<div id="main-nav"></div>
|
54
|
</div><!-- top -->
|
55
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
56
|
<div id="nav-tree">
|
57
|
<div id="nav-tree-contents">
|
58
|
<div id="nav-sync" class="sync"></div>
|
59
|
</div>
|
60
|
</div>
|
61
|
<div id="splitbar" style="-moz-user-select:none;"
|
62
|
class="ui-resizable-handle">
|
63
|
</div>
|
64
|
</div>
|
65
|
<script type="text/javascript">
|
66
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
67
|
$(document).ready(function(){initNavTree('class_l_d_client_1_1detection_1_1_process_detection.html',''); initResizable(); });
|
68
|
/* @license-end */
|
69
|
</script>
|
70
|
<div id="doc-content">
|
71
|
<!-- window showing the filter options -->
|
72
|
<div id="MSearchSelectWindow"
|
73
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
74
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
75
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
76
|
</div>
|
77
|
|
78
|
<!-- iframe showing the search results (closed by default) -->
|
79
|
<div id="MSearchResultsWindow">
|
80
|
<iframe src="javascript:void(0)" frameborder="0"
|
81
|
name="MSearchResults" id="MSearchResults">
|
82
|
</iframe>
|
83
|
</div>
|
84
|
|
85
|
<div class="header">
|
86
|
<div class="summary">
|
87
|
<a href="#pub-methods">Public Member Functions</a> |
|
88
|
<a href="#pub-attribs">Public Attributes</a> |
|
89
|
<a href="class_l_d_client_1_1detection_1_1_process_detection-members.html">List of all members</a> </div>
|
90
|
<div class="headertitle"><div class="title">LDClient.detection.ProcessDetection Class Reference</div></div>
|
91
|
</div><!--header-->
|
92
|
<div class="contents">
|
93
|
|
94
|
<p>This class takes care of process detection. When t32mtc (process) is detected, it means that the debugger is currently being used. The class keeps track of the current state of a debugger.
|
95
|
<a href="class_l_d_client_1_1detection_1_1_process_detection.html#details">More...</a></p>
|
96
|
<table class="memberdecls">
|
97
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
|
98
|
Public Member Functions</h2></td></tr>
|
99
|
<tr class="memitem:a586a1c6d9a48f2f7aa5389699bb4c679"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_d_client_1_1detection_1_1_process_detection.html#a586a1c6d9a48f2f7aa5389699bb4c679">ProcessDetection</a> (string processName, uint detectionPeriodMs, <a class="el" href="interface_l_d_client_1_1detection_1_1_i_info_fetcher.html">IInfoFetcher</a> infoFetcher, <a class="el" href="interface_l_d_client_1_1network_1_1_i_api_client.html">IApiClient</a> apiClient, <a class="el" href="interface_l_d_client_1_1detection_1_1_i_process_utils.html">IProcessUtils</a> processUtils)</td></tr>
|
100
|
<tr class="memdesc:a586a1c6d9a48f2f7aa5389699bb4c679"><td class="mdescLeft"> </td><td class="mdescRight">Creates an instance of this class. <a href="class_l_d_client_1_1detection_1_1_process_detection.html#a586a1c6d9a48f2f7aa5389699bb4c679">More...</a><br /></td></tr>
|
101
|
<tr class="separator:a586a1c6d9a48f2f7aa5389699bb4c679"><td class="memSeparator" colspan="2"> </td></tr>
|
102
|
<tr class="memitem:adc7f2823d21a1fbbddfe0328d05df3a8"><td class="memItemLeft" align="right" valign="top"><a id="adc7f2823d21a1fbbddfe0328d05df3a8" name="adc7f2823d21a1fbbddfe0328d05df3a8"></a>
|
103
|
async void </td><td class="memItemRight" valign="bottom"><b>RunPeriodicDetection</b> ()</td></tr>
|
104
|
<tr class="memdesc:adc7f2823d21a1fbbddfe0328d05df3a8"><td class="mdescLeft"> </td><td class="mdescRight">Periodically runs process detection. This method is instantiated as a thread from the main class (Program.cs). <br /></td></tr>
|
105
|
<tr class="separator:adc7f2823d21a1fbbddfe0328d05df3a8"><td class="memSeparator" colspan="2"> </td></tr>
|
106
|
</table><table class="memberdecls">
|
107
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
|
108
|
Public Attributes</h2></td></tr>
|
109
|
<tr class="memitem:acb2ce395f8b608c48165ae01677aa2a6"><td class="memItemLeft" align="right" valign="top"><a id="acb2ce395f8b608c48165ae01677aa2a6" name="acb2ce395f8b608c48165ae01677aa2a6"></a>
|
110
|
bool </td><td class="memItemRight" valign="bottom"><b>DetectionRunning</b> = false</td></tr>
|
111
|
<tr class="memdesc:acb2ce395f8b608c48165ae01677aa2a6"><td class="mdescLeft"> </td><td class="mdescRight">Flag used to stop the thread (process detection). <br /></td></tr>
|
112
|
<tr class="separator:acb2ce395f8b608c48165ae01677aa2a6"><td class="memSeparator" colspan="2"> </td></tr>
|
113
|
</table>
|
114
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
115
|
<div class="textblock"><p >This class takes care of process detection. When t32mtc (process) is detected, it means that the debugger is currently being used. The class keeps track of the current state of a debugger. </p>
|
116
|
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
117
|
<a id="a586a1c6d9a48f2f7aa5389699bb4c679" name="a586a1c6d9a48f2f7aa5389699bb4c679"></a>
|
118
|
<h2 class="memtitle"><span class="permalink"><a href="#a586a1c6d9a48f2f7aa5389699bb4c679">◆ </a></span>ProcessDetection()</h2>
|
119
|
|
120
|
<div class="memitem">
|
121
|
<div class="memproto">
|
122
|
<table class="memname">
|
123
|
<tr>
|
124
|
<td class="memname">LDClient.detection.ProcessDetection.ProcessDetection </td>
|
125
|
<td>(</td>
|
126
|
<td class="paramtype">string </td>
|
127
|
<td class="paramname"><em>processName</em>, </td>
|
128
|
</tr>
|
129
|
<tr>
|
130
|
<td class="paramkey"></td>
|
131
|
<td></td>
|
132
|
<td class="paramtype">uint </td>
|
133
|
<td class="paramname"><em>detectionPeriodMs</em>, </td>
|
134
|
</tr>
|
135
|
<tr>
|
136
|
<td class="paramkey"></td>
|
137
|
<td></td>
|
138
|
<td class="paramtype"><a class="el" href="interface_l_d_client_1_1detection_1_1_i_info_fetcher.html">IInfoFetcher</a> </td>
|
139
|
<td class="paramname"><em>infoFetcher</em>, </td>
|
140
|
</tr>
|
141
|
<tr>
|
142
|
<td class="paramkey"></td>
|
143
|
<td></td>
|
144
|
<td class="paramtype"><a class="el" href="interface_l_d_client_1_1network_1_1_i_api_client.html">IApiClient</a> </td>
|
145
|
<td class="paramname"><em>apiClient</em>, </td>
|
146
|
</tr>
|
147
|
<tr>
|
148
|
<td class="paramkey"></td>
|
149
|
<td></td>
|
150
|
<td class="paramtype"><a class="el" href="interface_l_d_client_1_1detection_1_1_i_process_utils.html">IProcessUtils</a> </td>
|
151
|
<td class="paramname"><em>processUtils</em> </td>
|
152
|
</tr>
|
153
|
<tr>
|
154
|
<td></td>
|
155
|
<td>)</td>
|
156
|
<td></td><td></td>
|
157
|
</tr>
|
158
|
</table>
|
159
|
</div><div class="memdoc">
|
160
|
|
161
|
<p>Creates an instance of this class. </p>
|
162
|
<dl class="params"><dt>Parameters</dt><dd>
|
163
|
<table class="params">
|
164
|
<tr><td class="paramname">processName</td><td>Name of the process the application detects</td></tr>
|
165
|
<tr><td class="paramname">detectionPeriodMs</td><td>How often the application check the current status of the process (cunning / not running)</td></tr>
|
166
|
<tr><td class="paramname">infoFetcher</td><td>Instance of <a class="el" href="class_l_d_client_1_1detection_1_1_info_fetcher.html" title="This class implements the IInfoFetcher interface which defines the functionality of an info fetcher.">InfoFetcher</a> used to fetch information from the debugger</td></tr>
|
167
|
<tr><td class="paramname">apiClient</td><td>Instance of API clients used for sending data off to the server</td></tr>
|
168
|
<tr><td class="paramname">processUtils</td><td>Instance of <a class="el" href="class_l_d_client_1_1detection_1_1_process_utils.html" title="This class implements the IProcessUtils interface. It implements methods that are used when dealing w...">ProcessUtils</a> which encapsulates common functionality when it comes to dealing with processes (limited by the needs of this application)</td></tr>
|
169
|
</table>
|
170
|
</dd>
|
171
|
</dl>
|
172
|
|
173
|
</div>
|
174
|
</div>
|
175
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
176
|
<li>review/aswi2022bug-thugs/ld_client/LDClient/detection/ProcessDetection.cs</li>
|
177
|
</ul>
|
178
|
</div><!-- contents -->
|
179
|
</div><!-- doc-content -->
|
180
|
<!-- start footer part -->
|
181
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
182
|
<ul>
|
183
|
<li class="navelem"><a class="el" href="namespace_l_d_client.html">LDClient</a></li><li class="navelem"><a class="el" href="namespace_l_d_client_1_1detection.html">detection</a></li><li class="navelem"><a class="el" href="class_l_d_client_1_1detection_1_1_process_detection.html">ProcessDetection</a></li>
|
184
|
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4 </li>
|
185
|
</ul>
|
186
|
</div>
|
187
|
</body>
|
188
|
</html>
|