This commit is contained in:
hasherezade
2024-04-07 22:23:54 +00:00
parent c22f7e79ad
commit b048ef4cf0
39 changed files with 993 additions and 698 deletions
+76 -76
View File
@@ -142,7 +142,7 @@ Protected Attributes</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00199">199</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00123">123</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
@@ -184,7 +184,7 @@ Here is the call graph for this function:</div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00216">216</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00140">140</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
@@ -223,7 +223,7 @@ Here is the call graph for this function:</div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00206">206</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00130">130</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
@@ -264,7 +264,7 @@ Here is the call graph for this function:</div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00229">229</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00153">153</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
@@ -301,7 +301,7 @@ Here is the call graph for this function:</div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00288">288</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00212">212</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
@@ -332,7 +332,7 @@ Here is the call graph for this function:</div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00391">391</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00314">314</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
@@ -353,30 +353,30 @@ Here is the call graph for this function:</div>
<area shape="poly" title=" " alt="" coords="362,122,400,122,400,128,362,128"/>
<area shape="rect" href="class_h_h_scanner.html#a4881091d77448e0812ab5581f01893c7" title=" " alt="" coords="410,215,608,240"/>
<area shape="poly" title=" " alt="" coords="331,136,363,146,423,175,475,204,473,209,421,179,361,151,329,141"/>
<area shape="rect" href="namespaceutil.html#a4afca6eda8fe7bc220cfdb824b79fd8b" title=" " alt="" coords="704,67,805,92"/>
<area shape="rect" href="namespaceutil.html#a4afca6eda8fe7bc220cfdb824b79fd8b" title=" " alt="" coords="703,67,805,92"/>
<area shape="poly" title=" " alt="" coords="603,105,688,89,689,94,604,110"/>
<area shape="rect" href="class_h_h_scan_report.html#a003c9bdcd02586fe059ce5cbf9200c94" title=" " alt="" coords="657,116,852,142"/>
<area shape="rect" href="class_h_h_scan_report.html#a003c9bdcd02586fe059ce5cbf9200c94" title=" " alt="" coords="656,116,852,142"/>
<area shape="poly" title=" " alt="" coords="531,212,587,181,655,150,675,144,676,149,657,155,589,186,534,217"/>
<area shape="rect" href="namespaceprocess__util.html#a4a258bf9fcaf9b1f5b6419f4e6a5d1e1" title=" " alt="" coords="656,165,853,191"/>
<area shape="poly" title=" " alt="" coords="576,211,672,192,673,197,577,217"/>
<area shape="rect" href="namespaceutil.html#a3849afaac9ec9e32eadd5e0abe8e1aa7" title=" " alt="" coords="678,215,831,240"/>
<area shape="poly" title=" " alt="" coords="609,225,662,225,662,230,609,230"/>
<area shape="rect" href="namespaceutil.html#afe3e470c6b385ed25f7d5f1d93b420cd" title=" " alt="" coords="685,264,824,290"/>
<area shape="poly" title=" " alt="" coords="577,238,673,258,672,263,576,244"/>
<area shape="rect" href="class_h_h_scanner.html#af1a026170edfe507268e6e21c5052bbb" title=" " alt="" coords="657,313,852,339"/>
<area shape="poly" title=" " alt="" coords="534,238,589,269,657,300,676,306,675,311,655,305,587,274,531,243"/>
<area shape="rect" href="namespaceutil.html#a1b58bbd7118af7892e3926017211542b" title=" " alt="" coords="677,363,832,388"/>
<area shape="poly" title=" " alt="" coords="524,239,578,293,616,323,658,349,669,355,667,359,655,354,613,328,574,297,520,243"/>
<area shape="rect" href="hh__report_8cpp.html#a658a84d039df1c8c4f7555a7f5de2e14" title=" " alt="" coords="905,116,1059,142"/>
<area shape="poly" title=" " alt="" coords="852,126,889,126,889,132,852,132"/>
<area shape="rect" href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01" title=" " alt="" coords="901,165,1063,191"/>
<area shape="poly" title=" " alt="" coords="853,176,885,176,885,181,853,181"/>
<area shape="rect" href="term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b" title=" " alt="" coords="945,313,1019,339"/>
<area shape="poly" title=" " alt="" coords="852,324,929,324,929,329,852,329"/>
<area shape="rect" href="term__util_8cpp.html#aff4c0279a81f579add3c3b1e9f208ee9" title=" " alt="" coords="1111,313,1232,339"/>
<area shape="poly" title=" " alt="" coords="1019,324,1095,324,1095,329,1019,329"/>
<area shape="rect" href="namespaceutil.html#a60893a3cb25d9aff16347e26b602141b" title=" " alt="" coords="902,363,1062,388"/>
<area shape="poly" title=" " alt="" coords="833,373,886,373,886,378,833,378"/>
<area shape="rect" href="namespaceutil.html#a3849afaac9ec9e32eadd5e0abe8e1aa7" title=" " alt="" coords="677,165,831,191"/>
<area shape="poly" title=" " alt="" coords="576,211,671,192,672,197,577,217"/>
<area shape="rect" href="namespaceutil.html#afe3e470c6b385ed25f7d5f1d93b420cd" title=" " alt="" coords="685,215,823,240"/>
<area shape="poly" title=" " alt="" coords="609,225,669,225,669,230,609,230"/>
<area shape="rect" href="namespaceprocess__util.html#af9bdd83e9c8262ef548737112964d2f9" title=" " alt="" coords="683,265,825,305"/>
<area shape="poly" title=" " alt="" coords="568,238,669,262,668,267,567,244"/>
<area shape="rect" href="class_h_h_scanner.html#af1a026170edfe507268e6e21c5052bbb" title=" " alt="" coords="657,329,851,355"/>
<area shape="poly" title=" " alt="" coords="530,239,585,276,657,314,677,322,675,327,655,319,583,281,527,243"/>
<area shape="rect" href="namespaceutil.html#a1b58bbd7118af7892e3926017211542b" title=" " alt="" coords="676,379,832,404"/>
<area shape="poly" title=" " alt="" coords="522,239,575,300,614,335,658,365,668,370,666,375,655,370,611,340,572,304,518,242"/>
<area shape="rect" href="hh__report_8cpp.html#a658a84d039df1c8c4f7555a7f5de2e14" title=" " alt="" coords="904,116,1058,142"/>
<area shape="poly" title=" " alt="" coords="852,126,888,126,888,132,852,132"/>
<area shape="rect" href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01" title=" " alt="" coords="900,272,1062,298"/>
<area shape="poly" title=" " alt="" coords="825,282,884,282,884,288,825,288"/>
<area shape="rect" href="term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b" title=" " alt="" coords="944,329,1018,355"/>
<area shape="poly" title=" " alt="" coords="852,340,928,340,928,345,852,345"/>
<area shape="rect" href="term__util_8cpp.html#aff4c0279a81f579add3c3b1e9f208ee9" title=" " alt="" coords="1110,329,1231,355"/>
<area shape="poly" title=" " alt="" coords="1018,340,1094,340,1094,345,1018,345"/>
<area shape="rect" href="namespaceutil.html#a60893a3cb25d9aff16347e26b602141b" title=" " alt="" coords="901,379,1061,404"/>
<area shape="poly" title=" " alt="" coords="832,389,885,389,885,394,832,394"/>
</map>
</div>
@@ -414,35 +414,35 @@ Here is the call graph for this function:</div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00327">327</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00251">251</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_h_h_scanner_a4881091d77448e0812ab5581f01893c7_cgraph.png" border="0" usemap="#aclass_h_h_scanner_a4881091d77448e0812ab5581f01893c7_cgraph" alt=""/></div>
<map name="aclass_h_h_scanner_a4881091d77448e0812ab5581f01893c7_cgraph" id="aclass_h_h_scanner_a4881091d77448e0812ab5581f01893c7_cgraph">
<area shape="rect" title=" " alt="" coords="5,129,204,155"/>
<area shape="rect" href="class_h_h_scan_report.html#a003c9bdcd02586fe059ce5cbf9200c94" title=" " alt="" coords="252,5,448,31"/>
<area shape="poly" title=" " alt="" coords="120,127,175,84,212,60,251,40,265,34,267,39,253,45,214,65,178,88,123,131"/>
<area shape="rect" href="namespaceprocess__util.html#a4a258bf9fcaf9b1f5b6419f4e6a5d1e1" title=" " alt="" coords="252,55,448,80"/>
<area shape="poly" title=" " alt="" coords="141,126,251,89,275,82,277,87,252,94,142,131"/>
<area shape="rect" href="namespaceutil.html#a3849afaac9ec9e32eadd5e0abe8e1aa7" title=" " alt="" coords="273,104,427,130"/>
<area shape="poly" title=" " alt="" coords="204,129,257,124,258,129,204,135"/>
<area shape="rect" href="namespaceutil.html#afe3e470c6b385ed25f7d5f1d93b420cd" title=" " alt="" coords="281,153,419,179"/>
<area shape="poly" title=" " alt="" coords="204,149,266,155,265,161,204,155"/>
<area shape="rect" href="class_h_h_scanner.html#af1a026170edfe507268e6e21c5052bbb" title=" " alt="" coords="253,203,447,228"/>
<area shape="poly" title=" " alt="" coords="144,153,252,189,277,196,275,201,251,194,142,158"/>
<area shape="rect" href="namespaceutil.html#a1b58bbd7118af7892e3926017211542b" title=" " alt="" coords="272,252,428,278"/>
<area shape="poly" title=" " alt="" coords="123,153,178,195,214,218,253,238,268,244,266,249,251,243,212,223,175,200,120,158"/>
<area shape="rect" href="hh__report_8cpp.html#a658a84d039df1c8c4f7555a7f5de2e14" title=" " alt="" coords="501,5,654,31"/>
<area shape="poly" title=" " alt="" coords="448,16,485,16,485,21,448,21"/>
<area shape="rect" href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01" title=" " alt="" coords="496,55,658,80"/>
<area shape="poly" title=" " alt="" coords="448,65,480,65,480,70,448,70"/>
<area shape="rect" href="term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b" title=" " alt="" coords="540,203,614,228"/>
<area shape="poly" title=" " alt="" coords="447,213,524,213,524,218,447,218"/>
<area shape="rect" href="term__util_8cpp.html#aff4c0279a81f579add3c3b1e9f208ee9" title=" " alt="" coords="706,203,828,228"/>
<area shape="poly" title=" " alt="" coords="615,213,691,213,691,218,615,218"/>
<area shape="rect" href="namespaceutil.html#a60893a3cb25d9aff16347e26b602141b" title=" " alt="" coords="497,252,657,278"/>
<area shape="poly" title=" " alt="" coords="428,262,482,262,482,268,428,268"/>
<area shape="rect" title=" " alt="" coords="5,133,204,159"/>
<area shape="rect" href="class_h_h_scan_report.html#a003c9bdcd02586fe059ce5cbf9200c94" title=" " alt="" coords="252,5,447,31"/>
<area shape="poly" title=" " alt="" coords="119,131,174,86,211,61,251,40,265,34,267,39,253,45,214,66,177,91,122,135"/>
<area shape="rect" href="namespaceutil.html#a3849afaac9ec9e32eadd5e0abe8e1aa7" title=" " alt="" coords="273,55,426,80"/>
<area shape="poly" title=" " alt="" coords="138,130,251,89,275,82,276,87,252,94,139,135"/>
<area shape="rect" href="namespaceutil.html#afe3e470c6b385ed25f7d5f1d93b420cd" title=" " alt="" coords="280,104,419,130"/>
<area shape="poly" title=" " alt="" coords="204,132,264,124,265,130,205,137"/>
<area shape="rect" href="namespaceprocess__util.html#af9bdd83e9c8262ef548737112964d2f9" title=" " alt="" coords="279,154,420,195"/>
<area shape="poly" title=" " alt="" coords="205,155,264,162,263,167,204,160"/>
<area shape="rect" href="class_h_h_scanner.html#af1a026170edfe507268e6e21c5052bbb" title=" " alt="" coords="252,219,447,244"/>
<area shape="poly" title=" " alt="" coords="136,157,253,204,278,211,276,217,251,209,134,162"/>
<area shape="rect" href="namespaceutil.html#a1b58bbd7118af7892e3926017211542b" title=" " alt="" coords="272,268,427,294"/>
<area shape="poly" title=" " alt="" coords="121,158,176,205,213,232,253,254,266,260,264,265,250,259,210,236,173,209,118,162"/>
<area shape="rect" href="hh__report_8cpp.html#a658a84d039df1c8c4f7555a7f5de2e14" title=" " alt="" coords="500,5,653,31"/>
<area shape="poly" title=" " alt="" coords="447,16,484,16,484,21,447,21"/>
<area shape="rect" href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01" title=" " alt="" coords="495,161,657,187"/>
<area shape="poly" title=" " alt="" coords="420,172,480,172,480,177,420,177"/>
<area shape="rect" href="term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b" title=" " alt="" coords="539,219,613,244"/>
<area shape="poly" title=" " alt="" coords="447,229,524,229,524,234,447,234"/>
<area shape="rect" href="term__util_8cpp.html#aff4c0279a81f579add3c3b1e9f208ee9" title=" " alt="" coords="705,219,827,244"/>
<area shape="poly" title=" " alt="" coords="614,229,690,229,690,234,614,234"/>
<area shape="rect" href="namespaceutil.html#a60893a3cb25d9aff16347e26b602141b" title=" " alt="" coords="496,268,656,294"/>
<area shape="poly" title=" " alt="" coords="427,278,481,278,481,284,427,284"/>
</map>
</div>
@@ -471,7 +471,7 @@ Here is the call graph for this function:</div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00250">250</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00174">174</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
@@ -482,30 +482,30 @@ Here is the call graph for this function:</div>
<area shape="poly" title=" " alt="" coords="141,122,255,86,256,92,143,127"/>
<area shape="rect" href="class_h_h_scanner.html#a4881091d77448e0812ab5581f01893c7" title=" " alt="" coords="239,153,437,179"/>
<area shape="poly" title=" " alt="" coords="191,146,224,150,223,155,191,152"/>
<area shape="rect" href="namespaceutil.html#a4afca6eda8fe7bc220cfdb824b79fd8b" title=" " alt="" coords="533,5,634,31"/>
<area shape="poly" title=" " alt="" coords="431,44,517,28,518,33,432,49"/>
<area shape="rect" href="class_h_h_scan_report.html#a003c9bdcd02586fe059ce5cbf9200c94" title=" " alt="" coords="486,55,681,80"/>
<area shape="rect" href="namespaceutil.html#a4afca6eda8fe7bc220cfdb824b79fd8b" title=" " alt="" coords="532,5,633,31"/>
<area shape="poly" title=" " alt="" coords="432,43,516,28,517,33,433,49"/>
<area shape="rect" href="class_h_h_scan_report.html#a003c9bdcd02586fe059ce5cbf9200c94" title=" " alt="" coords="485,55,680,80"/>
<area shape="poly" title=" " alt="" coords="360,151,415,120,484,89,503,83,505,88,486,94,418,125,362,155"/>
<area shape="rect" href="namespaceprocess__util.html#a4a258bf9fcaf9b1f5b6419f4e6a5d1e1" title=" " alt="" coords="485,104,681,130"/>
<area shape="rect" href="namespaceutil.html#a3849afaac9ec9e32eadd5e0abe8e1aa7" title=" " alt="" coords="506,104,659,130"/>
<area shape="poly" title=" " alt="" coords="405,150,500,131,501,136,406,155"/>
<area shape="rect" href="namespaceutil.html#a3849afaac9ec9e32eadd5e0abe8e1aa7" title=" " alt="" coords="507,153,660,179"/>
<area shape="poly" title=" " alt="" coords="438,164,491,164,491,169,438,169"/>
<area shape="rect" href="namespaceutil.html#afe3e470c6b385ed25f7d5f1d93b420cd" title=" " alt="" coords="514,203,652,228"/>
<area shape="poly" title=" " alt="" coords="406,177,501,196,500,202,405,182"/>
<area shape="rect" href="class_h_h_scanner.html#af1a026170edfe507268e6e21c5052bbb" title=" " alt="" coords="486,252,680,278"/>
<area shape="poly" title=" " alt="" coords="362,177,418,207,486,238,505,245,503,250,484,243,415,212,360,182"/>
<area shape="rect" href="namespaceutil.html#a1b58bbd7118af7892e3926017211542b" title=" " alt="" coords="506,301,661,327"/>
<area shape="poly" title=" " alt="" coords="352,177,407,231,445,262,486,288,498,293,496,298,484,293,441,266,403,235,349,181"/>
<area shape="rect" href="hh__report_8cpp.html#a658a84d039df1c8c4f7555a7f5de2e14" title=" " alt="" coords="734,55,887,80"/>
<area shape="poly" title=" " alt="" coords="681,65,718,65,718,70,681,70"/>
<area shape="rect" href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01" title=" " alt="" coords="729,104,892,130"/>
<area shape="poly" title=" " alt="" coords="682,114,714,114,714,120,682,120"/>
<area shape="rect" href="term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b" title=" " alt="" coords="773,252,848,278"/>
<area shape="poly" title=" " alt="" coords="680,262,758,262,758,268,680,268"/>
<area shape="rect" href="term__util_8cpp.html#aff4c0279a81f579add3c3b1e9f208ee9" title=" " alt="" coords="940,252,1061,278"/>
<area shape="poly" title=" " alt="" coords="848,262,924,262,924,268,848,268"/>
<area shape="rect" href="namespaceutil.html#a60893a3cb25d9aff16347e26b602141b" title=" " alt="" coords="730,301,891,327"/>
<area shape="poly" title=" " alt="" coords="661,312,715,312,715,317,661,317"/>
<area shape="rect" href="namespaceutil.html#afe3e470c6b385ed25f7d5f1d93b420cd" title=" " alt="" coords="514,153,652,179"/>
<area shape="poly" title=" " alt="" coords="438,164,498,164,498,169,438,169"/>
<area shape="rect" href="namespaceprocess__util.html#af9bdd83e9c8262ef548737112964d2f9" title=" " alt="" coords="512,203,653,244"/>
<area shape="poly" title=" " alt="" coords="397,177,498,201,496,206,395,182"/>
<area shape="rect" href="class_h_h_scanner.html#af1a026170edfe507268e6e21c5052bbb" title=" " alt="" coords="486,268,680,294"/>
<area shape="poly" title=" " alt="" coords="359,177,414,215,486,253,506,261,504,266,484,258,411,219,356,182"/>
<area shape="rect" href="namespaceutil.html#a1b58bbd7118af7892e3926017211542b" title=" " alt="" coords="505,317,660,343"/>
<area shape="poly" title=" " alt="" coords="351,178,404,239,443,274,486,304,497,309,494,314,484,308,439,278,400,242,347,181"/>
<area shape="rect" href="hh__report_8cpp.html#a658a84d039df1c8c4f7555a7f5de2e14" title=" " alt="" coords="733,55,886,80"/>
<area shape="poly" title=" " alt="" coords="680,65,717,65,717,70,680,70"/>
<area shape="rect" href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01" title=" " alt="" coords="728,211,891,236"/>
<area shape="poly" title=" " alt="" coords="654,221,713,221,713,226,654,226"/>
<area shape="rect" href="term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b" title=" " alt="" coords="772,268,847,294"/>
<area shape="poly" title=" " alt="" coords="680,278,757,278,757,284,680,284"/>
<area shape="rect" href="term__util_8cpp.html#aff4c0279a81f579add3c3b1e9f208ee9" title=" " alt="" coords="939,268,1060,294"/>
<area shape="poly" title=" " alt="" coords="847,278,923,278,923,284,847,284"/>
<area shape="rect" href="namespaceutil.html#a60893a3cb25d9aff16347e26b602141b" title=" " alt="" coords="729,317,890,343"/>
<area shape="poly" title=" " alt="" coords="661,328,714,328,714,333,661,333"/>
</map>
</div>
@@ -526,7 +526,7 @@ Here is the call graph for this function:</div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00404">404</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00327">327</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
@@ -1,25 +1,25 @@
<map id="HHScanner::scanNextProcess" name="HHScanner::scanNextProcess">
<area shape="rect" id="Node000001" title=" " alt="" coords="5,129,204,155"/>
<area shape="rect" id="Node000002" href="$class_h_h_scan_report.html#a003c9bdcd02586fe059ce5cbf9200c94" title=" " alt="" coords="252,5,448,31"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="120,127,175,84,212,60,251,40,265,34,267,39,253,45,214,65,178,88,123,131"/>
<area shape="rect" id="Node000004" href="$namespaceprocess__util.html#a4a258bf9fcaf9b1f5b6419f4e6a5d1e1" title=" " alt="" coords="252,55,448,80"/>
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="141,126,251,89,275,82,277,87,252,94,142,131"/>
<area shape="rect" id="Node000006" href="$namespaceutil.html#a3849afaac9ec9e32eadd5e0abe8e1aa7" title=" " alt="" coords="273,104,427,130"/>
<area shape="poly" id="edge5_Node000001_Node000006" title=" " alt="" coords="204,129,257,124,258,129,204,135"/>
<area shape="rect" id="Node000007" href="$namespaceutil.html#afe3e470c6b385ed25f7d5f1d93b420cd" title=" " alt="" coords="281,153,419,179"/>
<area shape="poly" id="edge6_Node000001_Node000007" title=" " alt="" coords="204,149,266,155,265,161,204,155"/>
<area shape="rect" id="Node000008" href="$class_h_h_scanner.html#af1a026170edfe507268e6e21c5052bbb" title=" " alt="" coords="253,203,447,228"/>
<area shape="poly" id="edge7_Node000001_Node000008" title=" " alt="" coords="144,153,252,189,277,196,275,201,251,194,142,158"/>
<area shape="rect" id="Node000011" href="$namespaceutil.html#a1b58bbd7118af7892e3926017211542b" title=" " alt="" coords="272,252,428,278"/>
<area shape="poly" id="edge10_Node000001_Node000011" title=" " alt="" coords="123,153,178,195,214,218,253,238,268,244,266,249,251,243,212,223,175,200,120,158"/>
<area shape="rect" id="Node000003" href="$hh__report_8cpp.html#a658a84d039df1c8c4f7555a7f5de2e14" title=" " alt="" coords="501,5,654,31"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="448,16,485,16,485,21,448,21"/>
<area shape="rect" id="Node000005" href="$namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01" title=" " alt="" coords="496,55,658,80"/>
<area shape="poly" id="edge4_Node000004_Node000005" title=" " alt="" coords="448,65,480,65,480,70,448,70"/>
<area shape="rect" id="Node000009" href="$term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b" title=" " alt="" coords="540,203,614,228"/>
<area shape="poly" id="edge8_Node000008_Node000009" title=" " alt="" coords="447,213,524,213,524,218,447,218"/>
<area shape="rect" id="Node000010" href="$term__util_8cpp.html#aff4c0279a81f579add3c3b1e9f208ee9" title=" " alt="" coords="706,203,828,228"/>
<area shape="poly" id="edge9_Node000009_Node000010" title=" " alt="" coords="615,213,691,213,691,218,615,218"/>
<area shape="rect" id="Node000012" href="$namespaceutil.html#a60893a3cb25d9aff16347e26b602141b" title=" " alt="" coords="497,252,657,278"/>
<area shape="poly" id="edge11_Node000011_Node000012" title=" " alt="" coords="428,262,482,262,482,268,428,268"/>
<area shape="rect" id="Node000001" title=" " alt="" coords="5,133,204,159"/>
<area shape="rect" id="Node000002" href="$class_h_h_scan_report.html#a003c9bdcd02586fe059ce5cbf9200c94" title=" " alt="" coords="252,5,447,31"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="119,131,174,86,211,61,251,40,265,34,267,39,253,45,214,66,177,91,122,135"/>
<area shape="rect" id="Node000004" href="$namespaceutil.html#a3849afaac9ec9e32eadd5e0abe8e1aa7" title=" " alt="" coords="273,55,426,80"/>
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="138,130,251,89,275,82,276,87,252,94,139,135"/>
<area shape="rect" id="Node000005" href="$namespaceutil.html#afe3e470c6b385ed25f7d5f1d93b420cd" title=" " alt="" coords="280,104,419,130"/>
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="204,132,264,124,265,130,205,137"/>
<area shape="rect" id="Node000006" href="$namespaceprocess__util.html#af9bdd83e9c8262ef548737112964d2f9" title=" " alt="" coords="279,154,420,195"/>
<area shape="poly" id="edge5_Node000001_Node000006" title=" " alt="" coords="205,155,264,162,263,167,204,160"/>
<area shape="rect" id="Node000008" href="$class_h_h_scanner.html#af1a026170edfe507268e6e21c5052bbb" title=" " alt="" coords="252,219,447,244"/>
<area shape="poly" id="edge7_Node000001_Node000008" title=" " alt="" coords="136,157,253,204,278,211,276,217,251,209,134,162"/>
<area shape="rect" id="Node000011" href="$namespaceutil.html#a1b58bbd7118af7892e3926017211542b" title=" " alt="" coords="272,268,427,294"/>
<area shape="poly" id="edge10_Node000001_Node000011" title=" " alt="" coords="121,158,176,205,213,232,253,254,266,260,264,265,250,259,210,236,173,209,118,162"/>
<area shape="rect" id="Node000003" href="$hh__report_8cpp.html#a658a84d039df1c8c4f7555a7f5de2e14" title=" " alt="" coords="500,5,653,31"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="447,16,484,16,484,21,447,21"/>
<area shape="rect" id="Node000007" href="$namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01" title=" " alt="" coords="495,161,657,187"/>
<area shape="poly" id="edge6_Node000006_Node000007" title=" " alt="" coords="420,172,480,172,480,177,420,177"/>
<area shape="rect" id="Node000009" href="$term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b" title=" " alt="" coords="539,219,613,244"/>
<area shape="poly" id="edge8_Node000008_Node000009" title=" " alt="" coords="447,229,524,229,524,234,447,234"/>
<area shape="rect" id="Node000010" href="$term__util_8cpp.html#aff4c0279a81f579add3c3b1e9f208ee9" title=" " alt="" coords="705,219,827,244"/>
<area shape="poly" id="edge9_Node000009_Node000010" title=" " alt="" coords="614,229,690,229,690,234,614,234"/>
<area shape="rect" id="Node000012" href="$namespaceutil.html#a60893a3cb25d9aff16347e26b602141b" title=" " alt="" coords="496,268,656,294"/>
<area shape="poly" id="edge11_Node000011_Node000012" title=" " alt="" coords="427,278,481,278,481,284,427,284"/>
</map>
@@ -1 +1 @@
936367153d32145389731a77283f6ec6
ff107d486668da202bb8d0a7eaf1f5bd
Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 36 KiB

@@ -4,28 +4,28 @@
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="141,122,255,86,256,92,143,127"/>
<area shape="rect" id="Node000004" href="$class_h_h_scanner.html#a4881091d77448e0812ab5581f01893c7" title=" " alt="" coords="239,153,437,179"/>
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="191,146,224,150,223,155,191,152"/>
<area shape="rect" id="Node000003" href="$namespaceutil.html#a4afca6eda8fe7bc220cfdb824b79fd8b" title=" " alt="" coords="533,5,634,31"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="431,44,517,28,518,33,432,49"/>
<area shape="rect" id="Node000005" href="$class_h_h_scan_report.html#a003c9bdcd02586fe059ce5cbf9200c94" title=" " alt="" coords="486,55,681,80"/>
<area shape="rect" id="Node000003" href="$namespaceutil.html#a4afca6eda8fe7bc220cfdb824b79fd8b" title=" " alt="" coords="532,5,633,31"/>
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="432,43,516,28,517,33,433,49"/>
<area shape="rect" id="Node000005" href="$class_h_h_scan_report.html#a003c9bdcd02586fe059ce5cbf9200c94" title=" " alt="" coords="485,55,680,80"/>
<area shape="poly" id="edge4_Node000004_Node000005" title=" " alt="" coords="360,151,415,120,484,89,503,83,505,88,486,94,418,125,362,155"/>
<area shape="rect" id="Node000007" href="$namespaceprocess__util.html#a4a258bf9fcaf9b1f5b6419f4e6a5d1e1" title=" " alt="" coords="485,104,681,130"/>
<area shape="rect" id="Node000007" href="$namespaceutil.html#a3849afaac9ec9e32eadd5e0abe8e1aa7" title=" " alt="" coords="506,104,659,130"/>
<area shape="poly" id="edge6_Node000004_Node000007" title=" " alt="" coords="405,150,500,131,501,136,406,155"/>
<area shape="rect" id="Node000009" href="$namespaceutil.html#a3849afaac9ec9e32eadd5e0abe8e1aa7" title=" " alt="" coords="507,153,660,179"/>
<area shape="poly" id="edge8_Node000004_Node000009" title=" " alt="" coords="438,164,491,164,491,169,438,169"/>
<area shape="rect" id="Node000010" href="$namespaceutil.html#afe3e470c6b385ed25f7d5f1d93b420cd" title=" " alt="" coords="514,203,652,228"/>
<area shape="poly" id="edge9_Node000004_Node000010" title=" " alt="" coords="406,177,501,196,500,202,405,182"/>
<area shape="rect" id="Node000011" href="$class_h_h_scanner.html#af1a026170edfe507268e6e21c5052bbb" title=" " alt="" coords="486,252,680,278"/>
<area shape="poly" id="edge10_Node000004_Node000011" title=" " alt="" coords="362,177,418,207,486,238,505,245,503,250,484,243,415,212,360,182"/>
<area shape="rect" id="Node000014" href="$namespaceutil.html#a1b58bbd7118af7892e3926017211542b" title=" " alt="" coords="506,301,661,327"/>
<area shape="poly" id="edge13_Node000004_Node000014" title=" " alt="" coords="352,177,407,231,445,262,486,288,498,293,496,298,484,293,441,266,403,235,349,181"/>
<area shape="rect" id="Node000006" href="$hh__report_8cpp.html#a658a84d039df1c8c4f7555a7f5de2e14" title=" " alt="" coords="734,55,887,80"/>
<area shape="poly" id="edge5_Node000005_Node000006" title=" " alt="" coords="681,65,718,65,718,70,681,70"/>
<area shape="rect" id="Node000008" href="$namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01" title=" " alt="" coords="729,104,892,130"/>
<area shape="poly" id="edge7_Node000007_Node000008" title=" " alt="" coords="682,114,714,114,714,120,682,120"/>
<area shape="rect" id="Node000012" href="$term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b" title=" " alt="" coords="773,252,848,278"/>
<area shape="poly" id="edge11_Node000011_Node000012" title=" " alt="" coords="680,262,758,262,758,268,680,268"/>
<area shape="rect" id="Node000013" href="$term__util_8cpp.html#aff4c0279a81f579add3c3b1e9f208ee9" title=" " alt="" coords="940,252,1061,278"/>
<area shape="poly" id="edge12_Node000012_Node000013" title=" " alt="" coords="848,262,924,262,924,268,848,268"/>
<area shape="rect" id="Node000015" href="$namespaceutil.html#a60893a3cb25d9aff16347e26b602141b" title=" " alt="" coords="730,301,891,327"/>
<area shape="poly" id="edge14_Node000014_Node000015" title=" " alt="" coords="661,312,715,312,715,317,661,317"/>
<area shape="rect" id="Node000008" href="$namespaceutil.html#afe3e470c6b385ed25f7d5f1d93b420cd" title=" " alt="" coords="514,153,652,179"/>
<area shape="poly" id="edge7_Node000004_Node000008" title=" " alt="" coords="438,164,498,164,498,169,438,169"/>
<area shape="rect" id="Node000009" href="$namespaceprocess__util.html#af9bdd83e9c8262ef548737112964d2f9" title=" " alt="" coords="512,203,653,244"/>
<area shape="poly" id="edge8_Node000004_Node000009" title=" " alt="" coords="397,177,498,201,496,206,395,182"/>
<area shape="rect" id="Node000011" href="$class_h_h_scanner.html#af1a026170edfe507268e6e21c5052bbb" title=" " alt="" coords="486,268,680,294"/>
<area shape="poly" id="edge10_Node000004_Node000011" title=" " alt="" coords="359,177,414,215,486,253,506,261,504,266,484,258,411,219,356,182"/>
<area shape="rect" id="Node000014" href="$namespaceutil.html#a1b58bbd7118af7892e3926017211542b" title=" " alt="" coords="505,317,660,343"/>
<area shape="poly" id="edge13_Node000004_Node000014" title=" " alt="" coords="351,178,404,239,443,274,486,304,497,309,494,314,484,308,439,278,400,242,347,181"/>
<area shape="rect" id="Node000006" href="$hh__report_8cpp.html#a658a84d039df1c8c4f7555a7f5de2e14" title=" " alt="" coords="733,55,886,80"/>
<area shape="poly" id="edge5_Node000005_Node000006" title=" " alt="" coords="680,65,717,65,717,70,680,70"/>
<area shape="rect" id="Node000010" href="$namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01" title=" " alt="" coords="728,211,891,236"/>
<area shape="poly" id="edge9_Node000009_Node000010" title=" " alt="" coords="654,221,713,221,713,226,654,226"/>
<area shape="rect" id="Node000012" href="$term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b" title=" " alt="" coords="772,268,847,294"/>
<area shape="poly" id="edge11_Node000011_Node000012" title=" " alt="" coords="680,278,757,278,757,284,680,284"/>
<area shape="rect" id="Node000013" href="$term__util_8cpp.html#aff4c0279a81f579add3c3b1e9f208ee9" title=" " alt="" coords="939,268,1060,294"/>
<area shape="poly" id="edge12_Node000012_Node000013" title=" " alt="" coords="847,278,923,278,923,284,847,284"/>
<area shape="rect" id="Node000015" href="$namespaceutil.html#a60893a3cb25d9aff16347e26b602141b" title=" " alt="" coords="729,317,890,343"/>
<area shape="poly" id="edge14_Node000014_Node000015" title=" " alt="" coords="661,328,714,328,714,333,661,333"/>
</map>
@@ -1 +1 @@
c5dcd3d04a6255e2aef5b2510b4a4808
d65ae5777c2280fa808b5bd95edc8742
Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 45 KiB

@@ -14,28 +14,28 @@
<area shape="poly" id="edge5_Node000005_Node000006" title=" " alt="" coords="362,122,400,122,400,128,362,128"/>
<area shape="rect" id="Node000008" href="$class_h_h_scanner.html#a4881091d77448e0812ab5581f01893c7" title=" " alt="" coords="410,215,608,240"/>
<area shape="poly" id="edge7_Node000005_Node000008" title=" " alt="" coords="331,136,363,146,423,175,475,204,473,209,421,179,361,151,329,141"/>
<area shape="rect" id="Node000007" href="$namespaceutil.html#a4afca6eda8fe7bc220cfdb824b79fd8b" title=" " alt="" coords="704,67,805,92"/>
<area shape="rect" id="Node000007" href="$namespaceutil.html#a4afca6eda8fe7bc220cfdb824b79fd8b" title=" " alt="" coords="703,67,805,92"/>
<area shape="poly" id="edge6_Node000006_Node000007" title=" " alt="" coords="603,105,688,89,689,94,604,110"/>
<area shape="rect" id="Node000009" href="$class_h_h_scan_report.html#a003c9bdcd02586fe059ce5cbf9200c94" title=" " alt="" coords="657,116,852,142"/>
<area shape="rect" id="Node000009" href="$class_h_h_scan_report.html#a003c9bdcd02586fe059ce5cbf9200c94" title=" " alt="" coords="656,116,852,142"/>
<area shape="poly" id="edge8_Node000008_Node000009" title=" " alt="" coords="531,212,587,181,655,150,675,144,676,149,657,155,589,186,534,217"/>
<area shape="rect" id="Node000011" href="$namespaceprocess__util.html#a4a258bf9fcaf9b1f5b6419f4e6a5d1e1" title=" " alt="" coords="656,165,853,191"/>
<area shape="poly" id="edge10_Node000008_Node000011" title=" " alt="" coords="576,211,672,192,673,197,577,217"/>
<area shape="rect" id="Node000013" href="$namespaceutil.html#a3849afaac9ec9e32eadd5e0abe8e1aa7" title=" " alt="" coords="678,215,831,240"/>
<area shape="poly" id="edge12_Node000008_Node000013" title=" " alt="" coords="609,225,662,225,662,230,609,230"/>
<area shape="rect" id="Node000014" href="$namespaceutil.html#afe3e470c6b385ed25f7d5f1d93b420cd" title=" " alt="" coords="685,264,824,290"/>
<area shape="poly" id="edge13_Node000008_Node000014" title=" " alt="" coords="577,238,673,258,672,263,576,244"/>
<area shape="rect" id="Node000015" href="$class_h_h_scanner.html#af1a026170edfe507268e6e21c5052bbb" title=" " alt="" coords="657,313,852,339"/>
<area shape="poly" id="edge14_Node000008_Node000015" title=" " alt="" coords="534,238,589,269,657,300,676,306,675,311,655,305,587,274,531,243"/>
<area shape="rect" id="Node000018" href="$namespaceutil.html#a1b58bbd7118af7892e3926017211542b" title=" " alt="" coords="677,363,832,388"/>
<area shape="poly" id="edge17_Node000008_Node000018" title=" " alt="" coords="524,239,578,293,616,323,658,349,669,355,667,359,655,354,613,328,574,297,520,243"/>
<area shape="rect" id="Node000010" href="$hh__report_8cpp.html#a658a84d039df1c8c4f7555a7f5de2e14" title=" " alt="" coords="905,116,1059,142"/>
<area shape="poly" id="edge9_Node000009_Node000010" title=" " alt="" coords="852,126,889,126,889,132,852,132"/>
<area shape="rect" id="Node000012" href="$namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01" title=" " alt="" coords="901,165,1063,191"/>
<area shape="poly" id="edge11_Node000011_Node000012" title=" " alt="" coords="853,176,885,176,885,181,853,181"/>
<area shape="rect" id="Node000016" href="$term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b" title=" " alt="" coords="945,313,1019,339"/>
<area shape="poly" id="edge15_Node000015_Node000016" title=" " alt="" coords="852,324,929,324,929,329,852,329"/>
<area shape="rect" id="Node000017" href="$term__util_8cpp.html#aff4c0279a81f579add3c3b1e9f208ee9" title=" " alt="" coords="1111,313,1232,339"/>
<area shape="poly" id="edge16_Node000016_Node000017" title=" " alt="" coords="1019,324,1095,324,1095,329,1019,329"/>
<area shape="rect" id="Node000019" href="$namespaceutil.html#a60893a3cb25d9aff16347e26b602141b" title=" " alt="" coords="902,363,1062,388"/>
<area shape="poly" id="edge18_Node000018_Node000019" title=" " alt="" coords="833,373,886,373,886,378,833,378"/>
<area shape="rect" id="Node000011" href="$namespaceutil.html#a3849afaac9ec9e32eadd5e0abe8e1aa7" title=" " alt="" coords="677,165,831,191"/>
<area shape="poly" id="edge10_Node000008_Node000011" title=" " alt="" coords="576,211,671,192,672,197,577,217"/>
<area shape="rect" id="Node000012" href="$namespaceutil.html#afe3e470c6b385ed25f7d5f1d93b420cd" title=" " alt="" coords="685,215,823,240"/>
<area shape="poly" id="edge11_Node000008_Node000012" title=" " alt="" coords="609,225,669,225,669,230,609,230"/>
<area shape="rect" id="Node000013" href="$namespaceprocess__util.html#af9bdd83e9c8262ef548737112964d2f9" title=" " alt="" coords="683,265,825,305"/>
<area shape="poly" id="edge12_Node000008_Node000013" title=" " alt="" coords="568,238,669,262,668,267,567,244"/>
<area shape="rect" id="Node000015" href="$class_h_h_scanner.html#af1a026170edfe507268e6e21c5052bbb" title=" " alt="" coords="657,329,851,355"/>
<area shape="poly" id="edge14_Node000008_Node000015" title=" " alt="" coords="530,239,585,276,657,314,677,322,675,327,655,319,583,281,527,243"/>
<area shape="rect" id="Node000018" href="$namespaceutil.html#a1b58bbd7118af7892e3926017211542b" title=" " alt="" coords="676,379,832,404"/>
<area shape="poly" id="edge17_Node000008_Node000018" title=" " alt="" coords="522,239,575,300,614,335,658,365,668,370,666,375,655,370,611,340,572,304,518,242"/>
<area shape="rect" id="Node000010" href="$hh__report_8cpp.html#a658a84d039df1c8c4f7555a7f5de2e14" title=" " alt="" coords="904,116,1058,142"/>
<area shape="poly" id="edge9_Node000009_Node000010" title=" " alt="" coords="852,126,888,126,888,132,852,132"/>
<area shape="rect" id="Node000014" href="$namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01" title=" " alt="" coords="900,272,1062,298"/>
<area shape="poly" id="edge13_Node000013_Node000014" title=" " alt="" coords="825,282,884,282,884,288,825,288"/>
<area shape="rect" id="Node000016" href="$term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b" title=" " alt="" coords="944,329,1018,355"/>
<area shape="poly" id="edge15_Node000015_Node000016" title=" " alt="" coords="852,340,928,340,928,345,852,345"/>
<area shape="rect" id="Node000017" href="$term__util_8cpp.html#aff4c0279a81f579add3c3b1e9f208ee9" title=" " alt="" coords="1110,329,1231,355"/>
<area shape="poly" id="edge16_Node000016_Node000017" title=" " alt="" coords="1018,340,1094,340,1094,345,1018,345"/>
<area shape="rect" id="Node000019" href="$namespaceutil.html#a60893a3cb25d9aff16347e26b602141b" title=" " alt="" coords="901,379,1061,404"/>
<area shape="poly" id="edge18_Node000018_Node000019" title=" " alt="" coords="832,389,885,389,885,394,832,394"/>
</map>
@@ -1 +1 @@
b0024a09d4315589385bb62fd501d9b1
42b70f78bedab1f85fbb3d65b416fa0e
Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 61 KiB

@@ -87,6 +87,8 @@ Files</h2></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top"><a href="process__privilege_8h_source.html"><span class="icondoc"></span></a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="process__privilege_8h.html">process_privilege.h</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top"><a href="process__util_8h_source.html"><span class="icondoc"></span></a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="process__util_8h.html">process_util.h</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top"><a href="strings__util_8cpp_source.html"><span class="icondoc"></span></a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="strings__util_8cpp.html">strings_util.cpp</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top"><a href="strings__util_8h_source.html"><span class="icondoc"></span></a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="strings__util_8h.html">strings_util.h</a></td></tr>
+2
View File
@@ -26,6 +26,7 @@
<a href="term__util_8h_source.html"/>
<a href="process__privilege_8cpp_source.html"/>
<a href="process__privilege_8h_source.html"/>
<a href="process__util_8h_source.html"/>
<a href="strings__util_8cpp_source.html"/>
<a href="strings__util_8h_source.html"/>
<a href="suspend_8cpp_source.html"/>
@@ -51,6 +52,7 @@
<a href="term__util_8h.html"/>
<a href="process__privilege_8cpp.html"/>
<a href="process__privilege_8h.html"/>
<a href="process__util_8h.html"/>
<a href="strings__util_8cpp.html"/>
<a href="strings__util_8h.html"/>
<a href="suspend_8cpp.html"/>
+20 -19
View File
@@ -85,25 +85,26 @@ $(function() {
<tr id="row_1_" class="even"><td class="entry"><span style="width:0px;display:inline-block;">&#160;</span><span id="arr_1_" class="arrow" onclick="dynsection.toggleFolder('1_')">&#9660;</span><span id="img_1_" class="iconfopen" onclick="dynsection.toggleFolder('1_')">&#160;</span><a class="el" href="dir_23ec12649285f9fabf3a6b7380226c28.html" target="_self">util</a></td><td class="desc"></td></tr>
<tr id="row_1_0_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="process__privilege_8cpp_source.html"><span class="icondoc"></span></a><a class="el" href="process__privilege_8cpp.html" target="_self">process_privilege.cpp</a></td><td class="desc"></td></tr>
<tr id="row_1_1_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="process__privilege_8h_source.html"><span class="icondoc"></span></a><a class="el" href="process__privilege_8h.html" target="_self">process_privilege.h</a></td><td class="desc"></td></tr>
<tr id="row_1_2_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="strings__util_8cpp_source.html"><span class="icondoc"></span></a><a class="el" href="strings__util_8cpp.html" target="_self">strings_util.cpp</a></td><td class="desc"></td></tr>
<tr id="row_1_3_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="strings__util_8h_source.html"><span class="icondoc"></span></a><a class="el" href="strings__util_8h.html" target="_self">strings_util.h</a></td><td class="desc"></td></tr>
<tr id="row_1_4_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="suspend_8cpp_source.html"><span class="icondoc"></span></a><a class="el" href="suspend_8cpp.html" target="_self">suspend.cpp</a></td><td class="desc"></td></tr>
<tr id="row_1_5_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="suspend_8h_source.html"><span class="icondoc"></span></a><a class="el" href="suspend_8h.html" target="_self">suspend.h</a></td><td class="desc"></td></tr>
<tr id="row_1_6_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="time__util_8cpp_source.html"><span class="icondoc"></span></a><a class="el" href="time__util_8cpp.html" target="_self">time_util.cpp</a></td><td class="desc"></td></tr>
<tr id="row_1_7_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="time__util_8h_source.html"><span class="icondoc"></span></a><a class="el" href="time__util_8h.html" target="_self">time_util.h</a></td><td class="desc"></td></tr>
<tr id="row_2_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="etw__listener_8cpp_source.html"><span class="icondoc"></span></a><a class="el" href="etw__listener_8cpp.html" target="_self">etw_listener.cpp</a></td><td class="desc"></td></tr>
<tr id="row_3_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="etw__listener_8h_source.html"><span class="icondoc"></span></a><a class="el" href="etw__listener_8h.html" target="_self">etw_listener.h</a></td><td class="desc"></td></tr>
<tr id="row_4_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="hh__params_8cpp_source.html"><span class="icondoc"></span></a><a class="el" href="hh__params_8cpp.html" target="_self">hh_params.cpp</a></td><td class="desc"></td></tr>
<tr id="row_5_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="hh__params_8h_source.html"><span class="icondoc"></span></a><a class="el" href="hh__params_8h.html" target="_self">hh_params.h</a></td><td class="desc"></td></tr>
<tr id="row_6_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="hh__report_8cpp_source.html"><span class="icondoc"></span></a><a class="el" href="hh__report_8cpp.html" target="_self">hh_report.cpp</a></td><td class="desc"></td></tr>
<tr id="row_7_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="hh__report_8h_source.html"><span class="icondoc"></span></a><a class="el" href="hh__report_8h.html" target="_self">hh_report.h</a></td><td class="desc"></td></tr>
<tr id="row_8_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="hh__scanner_8cpp_source.html"><span class="icondoc"></span></a><a class="el" href="hh__scanner_8cpp.html" target="_self">hh_scanner.cpp</a></td><td class="desc"></td></tr>
<tr id="row_9_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="hh__scanner_8h_source.html"><span class="icondoc"></span></a><a class="el" href="hh__scanner_8h.html" target="_self">hh_scanner.h</a></td><td class="desc"></td></tr>
<tr id="row_10_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="hh__ver__short_8h_source.html"><span class="icondoc"></span></a><a class="el" href="hh__ver__short_8h.html" target="_self">hh_ver_short.h</a></td><td class="desc"></td></tr>
<tr id="row_11_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="main_8cpp_source.html"><span class="icondoc"></span></a><a class="el" href="main_8cpp.html" target="_self">main.cpp</a></td><td class="desc"></td></tr>
<tr id="row_12_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="resources_8h_source.html"><span class="icondoc"></span></a><a class="el" href="resources_8h.html" target="_self">resources.h</a></td><td class="desc"></td></tr>
<tr id="row_13_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="term__util_8cpp_source.html"><span class="icondoc"></span></a><a class="el" href="term__util_8cpp.html" target="_self">term_util.cpp</a></td><td class="desc"></td></tr>
<tr id="row_14_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="term__util_8h_source.html"><span class="icondoc"></span></a><a class="el" href="term__util_8h.html" target="_self">term_util.h</a></td><td class="desc"></td></tr>
<tr id="row_1_2_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="process__util_8h_source.html"><span class="icondoc"></span></a><a class="el" href="process__util_8h.html" target="_self">process_util.h</a></td><td class="desc"></td></tr>
<tr id="row_1_3_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="strings__util_8cpp_source.html"><span class="icondoc"></span></a><a class="el" href="strings__util_8cpp.html" target="_self">strings_util.cpp</a></td><td class="desc"></td></tr>
<tr id="row_1_4_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="strings__util_8h_source.html"><span class="icondoc"></span></a><a class="el" href="strings__util_8h.html" target="_self">strings_util.h</a></td><td class="desc"></td></tr>
<tr id="row_1_5_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="suspend_8cpp_source.html"><span class="icondoc"></span></a><a class="el" href="suspend_8cpp.html" target="_self">suspend.cpp</a></td><td class="desc"></td></tr>
<tr id="row_1_6_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="suspend_8h_source.html"><span class="icondoc"></span></a><a class="el" href="suspend_8h.html" target="_self">suspend.h</a></td><td class="desc"></td></tr>
<tr id="row_1_7_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="time__util_8cpp_source.html"><span class="icondoc"></span></a><a class="el" href="time__util_8cpp.html" target="_self">time_util.cpp</a></td><td class="desc"></td></tr>
<tr id="row_1_8_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><a href="time__util_8h_source.html"><span class="icondoc"></span></a><a class="el" href="time__util_8h.html" target="_self">time_util.h</a></td><td class="desc"></td></tr>
<tr id="row_2_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="etw__listener_8cpp_source.html"><span class="icondoc"></span></a><a class="el" href="etw__listener_8cpp.html" target="_self">etw_listener.cpp</a></td><td class="desc"></td></tr>
<tr id="row_3_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="etw__listener_8h_source.html"><span class="icondoc"></span></a><a class="el" href="etw__listener_8h.html" target="_self">etw_listener.h</a></td><td class="desc"></td></tr>
<tr id="row_4_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="hh__params_8cpp_source.html"><span class="icondoc"></span></a><a class="el" href="hh__params_8cpp.html" target="_self">hh_params.cpp</a></td><td class="desc"></td></tr>
<tr id="row_5_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="hh__params_8h_source.html"><span class="icondoc"></span></a><a class="el" href="hh__params_8h.html" target="_self">hh_params.h</a></td><td class="desc"></td></tr>
<tr id="row_6_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="hh__report_8cpp_source.html"><span class="icondoc"></span></a><a class="el" href="hh__report_8cpp.html" target="_self">hh_report.cpp</a></td><td class="desc"></td></tr>
<tr id="row_7_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="hh__report_8h_source.html"><span class="icondoc"></span></a><a class="el" href="hh__report_8h.html" target="_self">hh_report.h</a></td><td class="desc"></td></tr>
<tr id="row_8_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="hh__scanner_8cpp_source.html"><span class="icondoc"></span></a><a class="el" href="hh__scanner_8cpp.html" target="_self">hh_scanner.cpp</a></td><td class="desc"></td></tr>
<tr id="row_9_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="hh__scanner_8h_source.html"><span class="icondoc"></span></a><a class="el" href="hh__scanner_8h.html" target="_self">hh_scanner.h</a></td><td class="desc"></td></tr>
<tr id="row_10_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="hh__ver__short_8h_source.html"><span class="icondoc"></span></a><a class="el" href="hh__ver__short_8h.html" target="_self">hh_ver_short.h</a></td><td class="desc"></td></tr>
<tr id="row_11_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="main_8cpp_source.html"><span class="icondoc"></span></a><a class="el" href="main_8cpp.html" target="_self">main.cpp</a></td><td class="desc"></td></tr>
<tr id="row_12_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="resources_8h_source.html"><span class="icondoc"></span></a><a class="el" href="resources_8h.html" target="_self">resources.h</a></td><td class="desc"></td></tr>
<tr id="row_13_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="term__util_8cpp_source.html"><span class="icondoc"></span></a><a class="el" href="term__util_8cpp.html" target="_self">term_util.cpp</a></td><td class="desc"></td></tr>
<tr id="row_14_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="term__util_8h_source.html"><span class="icondoc"></span></a><a class="el" href="term__util_8h.html" target="_self">term_util.h</a></td><td class="desc"></td></tr>
</table>
</div><!-- directory -->
</div><!-- contents -->
+2 -11
View File
@@ -92,14 +92,13 @@ $(function() {
<code>#include &quot;<a class="el" href="suspend_8h_source.html">util/suspend.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="time__util_8h_source.html">util/time_util.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="term__util_8h_source.html">term_util.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="process__util_8h_source.html">util/process_util.h</a>&quot;</code><br />
<code>#include &lt;paramkit.h&gt;</code><br />
</div>
<p><a href="hh__scanner_8cpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespaceprocess__util" id="r_namespaceprocess__util"><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess__util.html">process_util</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:namespacefiles__util" id="r_namespacefiles__util"><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacefiles__util.html">files_util</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:namespaceutil" id="r_namespaceutil"><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceutil.html">util</a></td></tr>
@@ -112,14 +111,6 @@ Macros</h2></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a1550838f32323b66051e0d05a0acdb01" id="r_a1550838f32323b66051e0d05a0acdb01"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01">process_util::is_wow_64</a> (HANDLE process)</td></tr>
<tr class="separator:a1550838f32323b66051e0d05a0acdb01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a258bf9fcaf9b1f5b6419f4e6a5d1e1" id="r_a4a258bf9fcaf9b1f5b6419f4e6a5d1e1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess__util.html#a4a258bf9fcaf9b1f5b6419f4e6a5d1e1">process_util::get_process_info</a> (DWORD processID, bool &amp;isWow64, char *szProcessName, DWORD processNameSize)</td></tr>
<tr class="separator:a4a258bf9fcaf9b1f5b6419f4e6a5d1e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9edce70fe41a8ec91d549fb9d71a3b10" id="r_a9edce70fe41a8ec91d549fb9d71a3b10"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess__util.html#a9edce70fe41a8ec91d549fb9d71a3b10">process_util::suspend_suspicious</a> (std::vector&lt; DWORD &gt; &amp;suspicious_pids)</td></tr>
<tr class="separator:a9edce70fe41a8ec91d549fb9d71a3b10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8765675543bcce40dec2c3207d76ce9" id="r_ad8765675543bcce40dec2c3207d76ce9"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess__util.html#ad8765675543bcce40dec2c3207d76ce9">process_util::kill_suspicious</a> (std::vector&lt; DWORD &gt; &amp;suspicious_pids)</td></tr>
<tr class="separator:ad8765675543bcce40dec2c3207d76ce9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a7fcfd84189964e87c1b572f1fe8fbe" id="r_a9a7fcfd84189964e87c1b572f1fe8fbe"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacefiles__util.html#a9a7fcfd84189964e87c1b572f1fe8fbe">files_util::join_path</a> (const std::string &amp;baseDir, const std::string &amp;subpath)</td></tr>
<tr class="separator:a9a7fcfd84189964e87c1b572f1fe8fbe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c2cf1240e4b850893c4e7a0a2ab641b" id="r_a9c2cf1240e4b850893c4e7a0a2ab641b"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacefiles__util.html#a9c2cf1240e4b850893c4e7a0a2ab641b">files_util::make_dir_name</a> (std::string baseDir, time_t timestamp)</td></tr>
@@ -149,7 +140,7 @@ Functions</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00018">18</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00019">19</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
</div>
</div>
+374 -462
View File
@@ -95,471 +95,384 @@ $(function() { codefold.init(0); });
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#include &quot;<a class="code" href="suspend_8h.html">util/suspend.h</a>&quot;</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="preprocessor">#include &quot;<a class="code" href="time__util_8h.html">util/time_util.h</a>&quot;</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#include &quot;<a class="code" href="term__util_8h.html">term_util.h</a>&quot;</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#include &lt;paramkit.h&gt;</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"><a class="line" href="hh__scanner_8cpp.html#ac02ff12a84f72a554a357650a1631c2f"> 18</a></span><span class="preprocessor">#define PID_FIELD_SIZE 4</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="keyword">using namespace </span>pesieve;</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
<div class="foldopen" id="foldopen00022" data-start="{" data-end="}">
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="namespaceprocess__util.html"> 22</a></span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceprocess__util.html">process_util</a> {</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> </div>
<div class="foldopen" id="foldopen00024" data-start="{" data-end="}">
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01"> 24</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01">is_wow_64</a>(HANDLE process)</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> {</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> FARPROC procPtr = GetProcAddress(GetModuleHandleA(<span class="stringliteral">&quot;kernel32&quot;</span>), <span class="stringliteral">&quot;IsWow64Process&quot;</span>);</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> <span class="keywordflow">if</span> (!procPtr) {</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> <span class="comment">//this system does not have a function IsWow64Process</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> }</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> BOOL(WINAPI * is_process_wow64)(IN HANDLE, OUT PBOOL)</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> = (BOOL(WINAPI*)(IN HANDLE, OUT PBOOL))procPtr;</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> BOOL isCurrWow64 = FALSE;</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <span class="keywordflow">if</span> (!is_process_wow64(process, &amp;isCurrWow64)) {</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> }</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <span class="keywordflow">return</span> isCurrWow64 ? true : <span class="keyword">false</span>;</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> }</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include &quot;<a class="code" href="process__util_8h.html">util/process_util.h</a>&quot;</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> </div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#include &lt;paramkit.h&gt;</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="hh__scanner_8cpp.html#ac02ff12a84f72a554a357650a1631c2f"> 19</a></span><span class="preprocessor">#define PID_FIELD_SIZE 4</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="keyword">using namespace </span>pesieve;</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
<div class="foldopen" id="foldopen00023" data-start="{" data-end="}">
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="namespacefiles__util.html"> 23</a></span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacefiles__util.html">files_util</a> {</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
<div class="foldopen" id="foldopen00025" data-start="{" data-end="}">
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="namespacefiles__util.html#a9a7fcfd84189964e87c1b572f1fe8fbe"> 25</a></span> std::string <a class="code hl_function" href="namespacefiles__util.html#a9a7fcfd84189964e87c1b572f1fe8fbe">join_path</a>(<span class="keyword">const</span> std::string &amp;baseDir, <span class="keyword">const</span> std::string &amp;subpath)</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> {</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> std::stringstream stream;</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> <span class="keywordflow">if</span> (baseDir.length() &gt; 0) {</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> stream &lt;&lt; baseDir;</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> stream &lt;&lt; <span class="stringliteral">&quot;\\&quot;</span>;</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> }</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> stream &lt;&lt; subpath;</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <span class="keywordflow">return</span> stream.str();</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> }</div>
</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
<div class="foldopen" id="foldopen00036" data-start="{" data-end="}">
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="namespacefiles__util.html#a9c2cf1240e4b850893c4e7a0a2ab641b"> 36</a></span> std::string <a class="code hl_function" href="namespacefiles__util.html#a9c2cf1240e4b850893c4e7a0a2ab641b">make_dir_name</a>(std::string baseDir, time_t timestamp)</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> {</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> std::stringstream stream;</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <span class="keywordflow">if</span> (baseDir.length() &gt; 0) {</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> stream &lt;&lt; baseDir;</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> stream &lt;&lt; <span class="stringliteral">&quot;\\&quot;</span>;</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> }</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> stream &lt;&lt; <span class="stringliteral">&quot;scan_&quot;</span>;</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> stream &lt;&lt; timestamp;</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keywordflow">return</span> stream.str();</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> }</div>
</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
<div class="foldopen" id="foldopen00041" data-start="{" data-end="}">
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="namespaceprocess__util.html#a4a258bf9fcaf9b1f5b6419f4e6a5d1e1"> 41</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceprocess__util.html#a4a258bf9fcaf9b1f5b6419f4e6a5d1e1">get_process_info</a>(DWORD processID, <span class="keywordtype">bool</span> &amp;isWow64, <span class="keywordtype">char</span>* szProcessName, DWORD processNameSize)</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> {</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> HANDLE hProcess = OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION | PROCESS_VM_READ, FALSE, processID);</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <span class="keywordflow">if</span> (!hProcess) {</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> }</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <span class="keywordtype">bool</span> is_ok = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="keywordflow">if</span> (szProcessName &amp;&amp; processNameSize &gt; 0) {</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> DWORD cbNeeded = 0;</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> HMODULE hMod = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> memset(szProcessName, 0, processNameSize);</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="keywordflow">if</span> (EnumProcessModules(hProcess, &amp;hMod, <span class="keyword">sizeof</span>(hMod), &amp;cbNeeded)) {</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> GetModuleBaseNameA(hProcess, hMod, szProcessName, processNameSize);</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> } <span class="keywordflow">else</span> { is_ok = <span class="keyword">false</span>; }</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> }</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> isWow64 = <a class="code hl_function" href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01">is_wow_64</a>(hProcess);</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> CloseHandle(hProcess);</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <span class="keywordflow">return</span> is_ok;</div>
<div class="foldopen" id="foldopen00048" data-start="{" data-end="}">
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="namespacefiles__util.html#abab65a3cbe43de11dd5d25ed5e4d47e5"> 48</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespacefiles__util.html#abab65a3cbe43de11dd5d25ed5e4d47e5">set_output_dir</a>(t_params &amp;args, <span class="keyword">const</span> std::string &amp;new_dir)</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> {</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <span class="keyword">const</span> <span class="keywordtype">size_t</span> new_len = new_dir.length();</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <span class="keywordflow">if</span> (!new_len) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* new_dir_cstr = new_dir.c_str();</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <span class="keywordtype">size_t</span> buffer_len = <span class="keyword">sizeof</span>(args.output_dir) - 1; <span class="comment">//leave one char for &#39;\0&#39;</span></div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="keywordflow">if</span> (new_len &gt; buffer_len) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> </div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> memset(args.output_dir, 0, buffer_len);</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> memcpy(args.output_dir, new_dir_cstr, new_len);</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> }</div>
</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
<div class="foldopen" id="foldopen00062" data-start="{" data-end="}">
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="namespaceprocess__util.html#a9edce70fe41a8ec91d549fb9d71a3b10"> 62</a></span> <span class="keywordtype">size_t</span> <a class="code hl_function" href="namespaceprocess__util.html#a9edce70fe41a8ec91d549fb9d71a3b10">suspend_suspicious</a>(std::vector&lt;DWORD&gt; &amp;suspicious_pids)</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="namespacefiles__util.html#af87086ea253d2c9f93852ad9b40fd7ac"> 62</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespacefiles__util.html#af87086ea253d2c9f93852ad9b40fd7ac">write_to_file</a>(<span class="keyword">const</span> std::string &amp;report_path, <span class="keyword">const</span> std::string &amp;summary_str, <span class="keyword">const</span> <span class="keywordtype">bool</span> append)</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> {</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="keywordtype">size_t</span> done = 0;</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> std::vector&lt;DWORD&gt;::iterator itr;</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="keywordflow">for</span> (itr = suspicious_pids.begin(); itr != suspicious_pids.end(); ++itr) {</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> DWORD pid = *itr;</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="keywordflow">if</span> (!<a class="code hl_function" href="suspend_8cpp.html#a3c63f252433e6e7532e441ed5cacca9d">suspend_process</a>(pid)) {</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> std::cerr &lt;&lt; <span class="stringliteral">&quot;Could not suspend the process. PID = &quot;</span> &lt;&lt; pid &lt;&lt; std::endl;</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> }</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> }</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <span class="keywordflow">return</span> done;</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> }</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> std::ofstream final_report;</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <span class="keywordflow">if</span> (append) {</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> final_report.open(report_path, std::ios_base::app);</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> }</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> final_report.open(report_path);</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> }</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <span class="keywordflow">if</span> (final_report.is_open()) {</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> final_report &lt;&lt; summary_str;</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> final_report.close();</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> }</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> }</div>
</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> </div>
<div class="foldopen" id="foldopen00075" data-start="{" data-end="}">
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="namespaceprocess__util.html#ad8765675543bcce40dec2c3207d76ce9"> 75</a></span> <span class="keywordtype">size_t</span> <a class="code hl_function" href="namespaceprocess__util.html#ad8765675543bcce40dec2c3207d76ce9">kill_suspicious</a>(std::vector&lt;DWORD&gt; &amp;suspicious_pids)</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> {</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="keywordtype">size_t</span> killed = 0;</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> std::vector&lt;DWORD&gt;::iterator itr;</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="keywordflow">for</span> (itr = suspicious_pids.begin(); itr != suspicious_pids.end(); ++itr) {</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> DWORD pid = *itr;</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> HANDLE hProcess = OpenProcess(PROCESS_TERMINATE, FALSE, pid);</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="keywordflow">if</span> (!hProcess) {</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <span class="keywordflow">continue</span>;</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> }</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <span class="keywordflow">if</span> (TerminateProcess(hProcess, 0)) {</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> killed++;</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> }</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> std::cerr &lt;&lt; <span class="stringliteral">&quot;Could not terminate the process. PID = &quot;</span> &lt;&lt; pid &lt;&lt; std::endl;</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> }</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> CloseHandle(hProcess);</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> }</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="keywordflow">return</span> killed;</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> }</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span>}; <span class="comment">// namespace files_util </span></div>
</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span>}; <span class="comment">// namespace process_util</span></div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> </div>
<div class="foldopen" id="foldopen00080" data-start="{" data-end="}">
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="namespaceutil.html"> 80</a></span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceutil.html">util</a> {</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> </div>
<div class="foldopen" id="foldopen00082" data-start="{" data-end="}">
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="namespaceutil.html#a3849afaac9ec9e32eadd5e0abe8e1aa7"> 82</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceutil.html#a3849afaac9ec9e32eadd5e0abe8e1aa7">is_searched_name</a>(<span class="keyword">const</span> WCHAR* processName, std::set&lt;std::wstring&gt; &amp;names_list)</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> {</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> std::set&lt;std::wstring&gt;::iterator itr;</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <span class="keywordflow">for</span> (itr = names_list.begin(); itr != names_list.end(); ++itr) {</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <span class="keyword">const</span> WCHAR* searchedName = itr-&gt;c_str();</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="keywordflow">if</span> (_wcsicmp(processName, searchedName) == 0) {</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> }</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> }</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> }</div>
</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> </div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> </div>
<div class="foldopen" id="foldopen00099" data-start="{" data-end="}">
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"><a class="line" href="namespacefiles__util.html"> 99</a></span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacefiles__util.html">files_util</a> {</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> </div>
<div class="foldopen" id="foldopen00101" data-start="{" data-end="}">
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="namespacefiles__util.html#a9a7fcfd84189964e87c1b572f1fe8fbe"> 101</a></span> std::string <a class="code hl_function" href="namespacefiles__util.html#a9a7fcfd84189964e87c1b572f1fe8fbe">join_path</a>(<span class="keyword">const</span> std::string &amp;baseDir, <span class="keyword">const</span> std::string &amp;subpath)</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> {</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> std::stringstream stream;</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <span class="keywordflow">if</span> (baseDir.length() &gt; 0) {</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> stream &lt;&lt; baseDir;</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> stream &lt;&lt; <span class="stringliteral">&quot;\\&quot;</span>;</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> }</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> stream &lt;&lt; subpath;</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="keywordflow">return</span> stream.str();</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> }</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> </div>
<div class="foldopen" id="foldopen00094" data-start="{" data-end="}">
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="namespaceutil.html#afe3e470c6b385ed25f7d5f1d93b420cd"> 94</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceutil.html#afe3e470c6b385ed25f7d5f1d93b420cd">is_searched_pid</a>(<span class="keywordtype">long</span> pid, std::set&lt;long&gt; &amp;pids_list)</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> {</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> std::set&lt;long&gt;::iterator found = pids_list.find(pid);</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="keywordflow">if</span> (found != pids_list.end()) {</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> }</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> }</div>
</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> </div>
<div class="foldopen" id="foldopen00112" data-start="{" data-end="}">
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"><a class="line" href="namespacefiles__util.html#a9c2cf1240e4b850893c4e7a0a2ab641b"> 112</a></span> std::string <a class="code hl_function" href="namespacefiles__util.html#a9c2cf1240e4b850893c4e7a0a2ab641b">make_dir_name</a>(std::string baseDir, time_t timestamp)</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> {</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> std::stringstream stream;</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <span class="keywordflow">if</span> (baseDir.length() &gt; 0) {</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> stream &lt;&lt; baseDir;</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> stream &lt;&lt; <span class="stringliteral">&quot;\\&quot;</span>;</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> }</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> stream &lt;&lt; <span class="stringliteral">&quot;scan_&quot;</span>;</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> stream &lt;&lt; timestamp;</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <span class="keywordflow">return</span> stream.str();</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> }</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> </div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> TYPE_T&gt;</div>
<div class="foldopen" id="foldopen00104" data-start="{" data-end="}">
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"><a class="line" href="namespaceutil.html#a4afca6eda8fe7bc220cfdb824b79fd8b"> 104</a></span> std::string <a class="code hl_function" href="namespaceutil.html#a4afca6eda8fe7bc220cfdb824b79fd8b">list_to_str</a>(std::set&lt;TYPE_T&gt; &amp;list)</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> {</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> std::wstringstream stream;</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> </div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> std::set&lt;TYPE_T&gt;::iterator itr;</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="keywordflow">for</span> (itr = list.begin(); itr != list.end(); ) {</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> stream &lt;&lt; *itr;</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> ++itr;</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="keywordflow">if</span> (itr != list.end()) {</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> stream &lt;&lt; <span class="stringliteral">&quot;, &quot;</span>;</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> }</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> }</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <span class="keywordflow">return</span> std::wstring_convert&lt;std::codecvt_utf8&lt;wchar_t&gt;&gt;().to_bytes(stream.str());</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> }</div>
</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> </div>
<div class="foldopen" id="foldopen00124" data-start="{" data-end="}">
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"><a class="line" href="namespacefiles__util.html#abab65a3cbe43de11dd5d25ed5e4d47e5"> 124</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespacefiles__util.html#abab65a3cbe43de11dd5d25ed5e4d47e5">set_output_dir</a>(t_params &amp;args, <span class="keyword">const</span> std::string &amp;new_dir)</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> {</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <span class="keyword">const</span> <span class="keywordtype">size_t</span> new_len = new_dir.length();</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <span class="keywordflow">if</span> (!new_len) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> </div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* new_dir_cstr = new_dir.c_str();</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> <span class="keywordtype">size_t</span> buffer_len = <span class="keyword">sizeof</span>(args.output_dir) - 1; <span class="comment">//leave one char for &#39;\0&#39;</span></div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <span class="keywordflow">if</span> (new_len &gt; buffer_len) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> </div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> memset(args.output_dir, 0, buffer_len);</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> memcpy(args.output_dir, new_dir_cstr, new_len);</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> }</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> </div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span>}; <span class="comment">//namespace util</span></div>
</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> </div>
<div class="foldopen" id="foldopen00138" data-start="{" data-end="}">
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"><a class="line" href="namespacefiles__util.html#af87086ea253d2c9f93852ad9b40fd7ac"> 138</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespacefiles__util.html#af87086ea253d2c9f93852ad9b40fd7ac">write_to_file</a>(<span class="keyword">const</span> std::string &amp;report_path, <span class="keyword">const</span> std::string &amp;summary_str, <span class="keyword">const</span> <span class="keywordtype">bool</span> append)</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> {</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> std::ofstream final_report;</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <span class="keywordflow">if</span> (append) {</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> final_report.open(report_path, std::ios_base::app);</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> }</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> final_report.open(report_path);</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> }</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <span class="keywordflow">if</span> (final_report.is_open()) {</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> final_report &lt;&lt; summary_str;</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> final_report.close();</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> }</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> }</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> </div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span><span class="comment">//----</span></div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> </div>
<div class="foldopen" id="foldopen00123" data-start="{" data-end="}">
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"><a class="line" href="class_h_h_scanner.html#abae28bb490b101cb3d1136eb76a5df33"> 123</a></span><a class="code hl_function" href="class_h_h_scanner.html#abae28bb490b101cb3d1136eb76a5df33">HHScanner::HHScanner</a>(<a class="code hl_struct" href="structhh__params.html">t_hh_params</a> &amp;_args)</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> : hh_args(_args)</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span>{</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <a class="code hl_variable" href="class_h_h_scanner.html#a989d1551cc43e9497ca232db41ee9e5b">initTime</a> = time(NULL);</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <a class="code hl_variable" href="class_h_h_scanner.html#a64bb7d15ea59c9fe7e25f266e05005b9">isScannerWow64</a> = <a class="code hl_function" href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01">process_util::is_wow_64</a>(GetCurrentProcess());</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span>}</div>
</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span>}; <span class="comment">// namespace files_util </span></div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> </div>
<div class="foldopen" id="foldopen00130" data-start="{" data-end="}">
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"><a class="line" href="class_h_h_scanner.html#adec367c7541ba8e334c7f674e57f429a"> 130</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="class_h_h_scanner.html#adec367c7541ba8e334c7f674e57f429a">HHScanner::isScannerCompatibile</a>()</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span>{</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span><span class="preprocessor">#ifndef _WIN64</span></div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01">process_util::is_wow_64</a>(GetCurrentProcess())) {</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> }</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span>}</div>
</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> </div>
<div class="foldopen" id="foldopen00156" data-start="{" data-end="}">
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"><a class="line" href="namespaceutil.html"> 156</a></span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceutil.html">util</a> {</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> </div>
<div class="foldopen" id="foldopen00158" data-start="{" data-end="}">
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"><a class="line" href="namespaceutil.html#a3849afaac9ec9e32eadd5e0abe8e1aa7"> 158</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceutil.html#a3849afaac9ec9e32eadd5e0abe8e1aa7">is_searched_name</a>(<span class="keyword">const</span> WCHAR* processName, std::set&lt;std::wstring&gt; &amp;names_list)</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> {</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> std::set&lt;std::wstring&gt;::iterator itr;</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> <span class="keywordflow">for</span> (itr = names_list.begin(); itr != names_list.end(); ++itr) {</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> <span class="keyword">const</span> WCHAR* searchedName = itr-&gt;c_str();</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> <span class="keywordflow">if</span> (_wcsicmp(processName, searchedName) == 0) {</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> }</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> }</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> }</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> </div>
<div class="foldopen" id="foldopen00140" data-start="{" data-end="}">
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"><a class="line" href="class_h_h_scanner.html#ab704a295bea1cea7d7b7d00fc97a5683"> 140</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="class_h_h_scanner.html#ab704a295bea1cea7d7b7d00fc97a5683">HHScanner::initOutDir</a>(time_t scan_time, pesieve::t_params &amp;pesieve_args)</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span>{</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <span class="comment">//set unique path</span></div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#adc6d18cfa1bcec72107e2022418bf8f3">unique_dir</a>) {</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> this-&gt;<a class="code hl_variable" href="class_h_h_scanner.html#a238a4958607b0f74d44c27c1505b1906">outDir</a> = <a class="code hl_function" href="namespacefiles__util.html#a9c2cf1240e4b850893c4e7a0a2ab641b">files_util::make_dir_name</a>(<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a7777b45895ca0788d061e1f4c5f60a7b">out_dir</a>, scan_time);</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <a class="code hl_function" href="namespacefiles__util.html#abab65a3cbe43de11dd5d25ed5e4d47e5">files_util::set_output_dir</a>(pesieve_args, <a class="code hl_variable" href="class_h_h_scanner.html#a238a4958607b0f74d44c27c1505b1906">outDir</a>);</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> }</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> this-&gt;<a class="code hl_variable" href="class_h_h_scanner.html#a238a4958607b0f74d44c27c1505b1906">outDir</a> = <a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a7777b45895ca0788d061e1f4c5f60a7b">out_dir</a>;</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> <a class="code hl_function" href="namespacefiles__util.html#abab65a3cbe43de11dd5d25ed5e4d47e5">files_util::set_output_dir</a>(pesieve_args, <a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a7777b45895ca0788d061e1f4c5f60a7b">out_dir</a>);</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> }</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span>}</div>
</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> </div>
<div class="foldopen" id="foldopen00170" data-start="{" data-end="}">
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"><a class="line" href="namespaceutil.html#afe3e470c6b385ed25f7d5f1d93b420cd"> 170</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceutil.html#afe3e470c6b385ed25f7d5f1d93b420cd">is_searched_pid</a>(<span class="keywordtype">long</span> pid, std::set&lt;long&gt; &amp;pids_list)</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> {</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> std::set&lt;long&gt;::iterator found = pids_list.find(pid);</div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> <span class="keywordflow">if</span> (found != pids_list.end()) {</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> }</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> }</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> </div>
<div class="foldopen" id="foldopen00153" data-start="{" data-end="}">
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"><a class="line" href="class_h_h_scanner.html#a6700be392afaa57e77ddc4c649e718f1"> 153</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="class_h_h_scanner.html#a6700be392afaa57e77ddc4c649e718f1">HHScanner::printScanRoundStats</a>(<span class="keywordtype">size_t</span> found, <span class="keywordtype">size_t</span> ignored_count)</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span>{</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <span class="keywordflow">if</span> (!found &amp;&amp; <a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#aaada133523530dfd49401621b336d74b">names_list</a>.size() &gt; 0) {</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> <span class="keywordflow">if</span> (!<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a9c00556752d2c127c5c5b205c166976b">quiet</a>) {</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> std::cout &lt;&lt; <span class="stringliteral">&quot;[WARNING] No process from the list: {&quot;</span> &lt;&lt; <a class="code hl_function" href="namespaceutil.html#a4afca6eda8fe7bc220cfdb824b79fd8b">util::list_to_str</a>(<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#aaada133523530dfd49401621b336d74b">names_list</a>) &lt;&lt; <span class="stringliteral">&quot;} was found!&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> }</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> }</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> <span class="keywordflow">if</span> (!found &amp;&amp; <a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a179cffc6577cad21f16e07ca3ae14a67">pids_list</a>.size() &gt; 0) {</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> <span class="keywordflow">if</span> (!<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a9c00556752d2c127c5c5b205c166976b">quiet</a>) {</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> std::cout &lt;&lt; <span class="stringliteral">&quot;[WARNING] No process from the list: {&quot;</span> &lt;&lt; <a class="code hl_function" href="namespaceutil.html#a4afca6eda8fe7bc220cfdb824b79fd8b">util::list_to_str</a>(<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a179cffc6577cad21f16e07ca3ae14a67">pids_list</a>) &lt;&lt; <span class="stringliteral">&quot;} was found!&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> }</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> }</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <span class="keywordflow">if</span> (ignored_count &gt; 0) {</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> <span class="keywordflow">if</span> (!<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a9c00556752d2c127c5c5b205c166976b">quiet</a>) {</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> std::string info1 = (ignored_count &gt; 1) ? <span class="stringliteral">&quot;processes&quot;</span> : <span class="stringliteral">&quot;process&quot;</span>;</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> std::string info2 = (ignored_count &gt; 1) ? <span class="stringliteral">&quot;were&quot;</span> : <span class="stringliteral">&quot;was&quot;</span>;</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> std::cout &lt;&lt; <span class="stringliteral">&quot;[INFO] &quot;</span> &lt;&lt; std::dec &lt;&lt; ignored_count &lt;&lt; <span class="stringliteral">&quot; &quot;</span> &lt;&lt; info1 &lt;&lt; <span class="stringliteral">&quot; from the list : {&quot;</span> &lt;&lt; <a class="code hl_function" href="namespaceutil.html#a4afca6eda8fe7bc220cfdb824b79fd8b">util::list_to_str</a>(<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a5d1f3507578157518e3104ca58696003">ignored_names_list</a>) &lt;&lt; <span class="stringliteral">&quot;} &quot;</span> &lt;&lt; info2 &lt;&lt; <span class="stringliteral">&quot; ignored!&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> }</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> }</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span>}</div>
</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> </div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> TYPE_T&gt;</div>
<div class="foldopen" id="foldopen00180" data-start="{" data-end="}">
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"><a class="line" href="namespaceutil.html#a4afca6eda8fe7bc220cfdb824b79fd8b"> 180</a></span> std::string <a class="code hl_function" href="namespaceutil.html#a4afca6eda8fe7bc220cfdb824b79fd8b">list_to_str</a>(std::set&lt;TYPE_T&gt; &amp;list)</div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> {</div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> std::wstringstream stream;</div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> </div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> std::set&lt;TYPE_T&gt;::iterator itr;</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> <span class="keywordflow">for</span> (itr = list.begin(); itr != list.end(); ) {</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> stream &lt;&lt; *itr;</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> ++itr;</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> <span class="keywordflow">if</span> (itr != list.end()) {</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> stream &lt;&lt; <span class="stringliteral">&quot;, &quot;</span>;</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> }</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> }</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> <span class="keywordflow">return</span> std::wstring_convert&lt;std::codecvt_utf8&lt;wchar_t&gt;&gt;().to_bytes(stream.str());</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> }</div>
</div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> </div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span>}; <span class="comment">//namespace util</span></div>
</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> </div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span><span class="comment">//----</span></div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> </div>
<div class="foldopen" id="foldopen00199" data-start="{" data-end="}">
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"><a class="line" href="class_h_h_scanner.html#abae28bb490b101cb3d1136eb76a5df33"> 199</a></span><a class="code hl_function" href="class_h_h_scanner.html#abae28bb490b101cb3d1136eb76a5df33">HHScanner::HHScanner</a>(<a class="code hl_struct" href="structhh__params.html">t_hh_params</a> &amp;_args)</div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> : hh_args(_args)</div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span>{</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> <a class="code hl_variable" href="class_h_h_scanner.html#a989d1551cc43e9497ca232db41ee9e5b">initTime</a> = time(NULL);</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> <a class="code hl_variable" href="class_h_h_scanner.html#a64bb7d15ea59c9fe7e25f266e05005b9">isScannerWow64</a> = <a class="code hl_function" href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01">process_util::is_wow_64</a>(GetCurrentProcess());</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span>}</div>
</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> </div>
<div class="foldopen" id="foldopen00206" data-start="{" data-end="}">
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"><a class="line" href="class_h_h_scanner.html#adec367c7541ba8e334c7f674e57f429a"> 206</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="class_h_h_scanner.html#adec367c7541ba8e334c7f674e57f429a">HHScanner::isScannerCompatibile</a>()</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span>{</div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span><span class="preprocessor">#ifndef _WIN64</span></div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01">process_util::is_wow_64</a>(GetCurrentProcess())) {</div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> }</div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span>}</div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> </div>
<div class="foldopen" id="foldopen00174" data-start="{" data-end="}">
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"><a class="line" href="class_h_h_scanner.html#a8528d5f27f05bfefcd2278318dc61846"> 174</a></span><span class="keywordtype">size_t</span> <a class="code hl_function" href="class_h_h_scanner.html#a8528d5f27f05bfefcd2278318dc61846">HHScanner::scanProcesses</a>(<a class="code hl_class" href="class_h_h_scan_report.html">HHScanReport</a> &amp;my_report)</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span>{</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> <span class="keywordtype">size_t</span> count = 0;</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> <span class="keywordtype">size_t</span> scanned_count = 0;</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> <span class="keywordtype">size_t</span> ignored_count = 0;</div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> </div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> HANDLE hProcessSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);</div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> <span class="keywordflow">if</span> (hProcessSnapShot == INVALID_HANDLE_VALUE) {</div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> <span class="keyword">const</span> DWORD err = GetLastError();</div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> std::cerr &lt;&lt; <span class="stringliteral">&quot;[-] Could not create modules snapshot. Error: &quot;</span> &lt;&lt; std::dec &lt;&lt; err &lt;&lt; std::endl;</div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> }</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> </div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> PROCESSENTRY32 pe32 = { 0 };</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> pe32.dwSize = <span class="keyword">sizeof</span>(PROCESSENTRY32);</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> </div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> <span class="comment">//check all modules in the process, including the main module:</span></div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> <span class="keywordflow">if</span> (!Process32First(hProcessSnapShot, &amp;pe32)) {</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> CloseHandle(hProcessSnapShot);</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> std::cerr &lt;&lt; <span class="stringliteral">&quot;[-] Could not enumerate processes. Error: &quot;</span> &lt;&lt; GetLastError() &lt;&lt; std::endl;</div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> }</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> <span class="keywordflow">do</span> {</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> <span class="comment">// scan callback</span></div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> <span class="keyword">const</span> <a class="code hl_typedef" href="hh__scanner_8h.html#ad5caa6b1d4b11989c8ff90d46fc231aa">t_single_scan_status</a> stat = <a class="code hl_function" href="class_h_h_scanner.html#a4881091d77448e0812ab5581f01893c7">scanNextProcess</a>(pe32.th32ProcessID, pe32.szExeFile, my_report);</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> <span class="keywordflow">if</span> (stat == <a class="code hl_enumvalue" href="hh__scanner_8h.html#a71125474e5d0570a7970dbfeac97d2d4a92a79c026616fa779bd92df2b65a626b">SSCAN_IGNORED</a>) ignored_count++;</div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> <span class="keywordflow">if</span> (stat == <a class="code hl_enumvalue" href="hh__scanner_8h.html#a71125474e5d0570a7970dbfeac97d2d4af8af3004a5fccfada6848162d6bb2202">SSCAN_SUCCESS</a>) scanned_count++;</div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> count++;</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> </div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> } <span class="keywordflow">while</span> (Process32Next(hProcessSnapShot, &amp;pe32));</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> </div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> <span class="comment">//close the handles</span></div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> CloseHandle(hProcessSnapShot);</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> </div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> <a class="code hl_function" href="class_h_h_scanner.html#a6700be392afaa57e77ddc4c649e718f1">printScanRoundStats</a>(scanned_count, ignored_count);</div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> <span class="keywordflow">return</span> count;</div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span>}</div>
</div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> </div>
<div class="foldopen" id="foldopen00212" data-start="{" data-end="}">
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"><a class="line" href="class_h_h_scanner.html#af1a026170edfe507268e6e21c5052bbb"> 212</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="class_h_h_scanner.html#af1a026170edfe507268e6e21c5052bbb">HHScanner::printSingleReport</a>(pesieve::t_report&amp; report)</div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span>{</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a9c00556752d2c127c5c5b205c166976b">quiet</a>) <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> </div>
<div class="foldopen" id="foldopen00216" data-start="{" data-end="}">
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"><a class="line" href="class_h_h_scanner.html#ab704a295bea1cea7d7b7d00fc97a5683"> 216</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="class_h_h_scanner.html#ab704a295bea1cea7d7b7d00fc97a5683">HHScanner::initOutDir</a>(time_t scan_time, pesieve::t_params &amp;pesieve_args)</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span>{</div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> <span class="comment">//set unique path</span></div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#adc6d18cfa1bcec72107e2022418bf8f3">unique_dir</a>) {</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> this-&gt;<a class="code hl_variable" href="class_h_h_scanner.html#a238a4958607b0f74d44c27c1505b1906">outDir</a> = <a class="code hl_function" href="namespacefiles__util.html#a9c2cf1240e4b850893c4e7a0a2ab641b">files_util::make_dir_name</a>(<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a7777b45895ca0788d061e1f4c5f60a7b">out_dir</a>, scan_time);</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> <a class="code hl_function" href="namespacefiles__util.html#abab65a3cbe43de11dd5d25ed5e4d47e5">files_util::set_output_dir</a>(pesieve_args, <a class="code hl_variable" href="class_h_h_scanner.html#a238a4958607b0f74d44c27c1505b1906">outDir</a>);</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> }</div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> this-&gt;<a class="code hl_variable" href="class_h_h_scanner.html#a238a4958607b0f74d44c27c1505b1906">outDir</a> = <a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a7777b45895ca0788d061e1f4c5f60a7b">out_dir</a>;</div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> <a class="code hl_function" href="namespacefiles__util.html#abab65a3cbe43de11dd5d25ed5e4d47e5">files_util::set_output_dir</a>(pesieve_args, <a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a7777b45895ca0788d061e1f4c5f60a7b">out_dir</a>);</div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> }</div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span>}</div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> <span class="keywordflow">if</span> (report.errors == pesieve::ERROR_SCAN_FAILURE) {</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> WORD old_color = <a class="code hl_function" href="term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b">set_color</a>(<a class="code hl_define" href="term__util_8h.html#a57815732ee1775789c29534c08b0a856">MAKE_COLOR</a>(<a class="code hl_define" href="term__util_8h.html#a7e76a14a479114a4b9b20782bb00e69a">SILVER</a>, <a class="code hl_define" href="term__util_8h.html#adf1abd1d6844a43cca874c266bb57b9b">DARK_RED</a>));</div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> <span class="keywordflow">if</span> (report.errors == pesieve::ERROR_SCAN_FAILURE) {</div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> std::cout &lt;&lt; <span class="stringliteral">&quot;[!] Could not access: &quot;</span> &lt;&lt; std::dec &lt;&lt; report.pid;</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> }</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> <a class="code hl_function" href="term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b">set_color</a>(old_color);</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> std::cout &lt;&lt; std::endl;</div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> }</div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span><span class="preprocessor">#ifndef _WIN64</span></div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> <span class="keywordflow">if</span> (report.is_64bit) {</div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> WORD old_color = <a class="code hl_function" href="term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b">set_color</a>(<a class="code hl_define" href="term__util_8h.html#a57815732ee1775789c29534c08b0a856">MAKE_COLOR</a>(<a class="code hl_define" href="term__util_8h.html#a7e76a14a479114a4b9b20782bb00e69a">SILVER</a>, <a class="code hl_define" href="term__util_8h.html#a908d63d1e1a62efbe7c61685f9144a7d">DARK_MAGENTA</a>));</div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> std::cout &lt;&lt; <span class="stringliteral">&quot;[!] Partial scan: &quot;</span> &lt;&lt; std::dec &lt;&lt; report.pid &lt;&lt; <span class="stringliteral">&quot; : &quot;</span> &lt;&lt; (report.is_64bit ? 64 : 32) &lt;&lt; <span class="stringliteral">&quot;b&quot;</span>;</div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> <a class="code hl_function" href="term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b">set_color</a>(old_color);</div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> std::cout &lt;&lt; std::endl;</div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> }</div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> <span class="keywordflow">if</span> (report.suspicious) {</div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> <span class="keywordtype">int</span> color = <a class="code hl_define" href="term__util_8h.html#abf681265909adf3d3e8116c93c0ba179">YELLOW</a>;</div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> <span class="keywordflow">if</span> (report.replaced || report.implanted) {</div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> color = <a class="code hl_define" href="term__util_8h.html#a8d23feea868a983c8c2b661e1e16972f">RED</a>;</div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> }</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> <span class="keywordflow">if</span> (report.is_managed) {</div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> color = <a class="code hl_define" href="term__util_8h.html#a57815732ee1775789c29534c08b0a856">MAKE_COLOR</a>(color, <a class="code hl_define" href="term__util_8h.html#ab17de36a1b487f9ad9ef7dabd63531ab">DARK_BLUE</a>);</div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> }</div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> WORD old_color = <a class="code hl_function" href="term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b">set_color</a>(color);</div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> std::cout &lt;&lt; <span class="stringliteral">&quot;&gt;&gt; Detected: &quot;</span> &lt;&lt; std::dec &lt;&lt; report.pid;</div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> <span class="keywordflow">if</span> (report.is_managed) {</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> std::cout &lt;&lt; <span class="stringliteral">&quot; [.NET]&quot;</span>;</div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> }</div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> <a class="code hl_function" href="term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b">set_color</a>(old_color);</div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span> std::cout &lt;&lt; std::endl;</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span> }</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span>}</div>
</div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> </div>
<div class="foldopen" id="foldopen00229" data-start="{" data-end="}">
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"><a class="line" href="class_h_h_scanner.html#a6700be392afaa57e77ddc4c649e718f1"> 229</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="class_h_h_scanner.html#a6700be392afaa57e77ddc4c649e718f1">HHScanner::printScanRoundStats</a>(<span class="keywordtype">size_t</span> found, <span class="keywordtype">size_t</span> ignored_count)</div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span>{</div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> <span class="keywordflow">if</span> (!found &amp;&amp; <a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#aaada133523530dfd49401621b336d74b">names_list</a>.size() &gt; 0) {</div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> <span class="keywordflow">if</span> (!<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a9c00556752d2c127c5c5b205c166976b">quiet</a>) {</div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> std::cout &lt;&lt; <span class="stringliteral">&quot;[WARNING] No process from the list: {&quot;</span> &lt;&lt; <a class="code hl_function" href="namespaceutil.html#a4afca6eda8fe7bc220cfdb824b79fd8b">util::list_to_str</a>(<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#aaada133523530dfd49401621b336d74b">names_list</a>) &lt;&lt; <span class="stringliteral">&quot;} was found!&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> }</div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> }</div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> <span class="keywordflow">if</span> (!found &amp;&amp; <a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a179cffc6577cad21f16e07ca3ae14a67">pids_list</a>.size() &gt; 0) {</div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> <span class="keywordflow">if</span> (!<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a9c00556752d2c127c5c5b205c166976b">quiet</a>) {</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> std::cout &lt;&lt; <span class="stringliteral">&quot;[WARNING] No process from the list: {&quot;</span> &lt;&lt; <a class="code hl_function" href="namespaceutil.html#a4afca6eda8fe7bc220cfdb824b79fd8b">util::list_to_str</a>(<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a179cffc6577cad21f16e07ca3ae14a67">pids_list</a>) &lt;&lt; <span class="stringliteral">&quot;} was found!&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> }</div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> }</div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> <span class="keywordflow">if</span> (ignored_count &gt; 0) {</div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> <span class="keywordflow">if</span> (!<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a9c00556752d2c127c5c5b205c166976b">quiet</a>) {</div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> std::string info1 = (ignored_count &gt; 1) ? <span class="stringliteral">&quot;processes&quot;</span> : <span class="stringliteral">&quot;process&quot;</span>;</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> std::string info2 = (ignored_count &gt; 1) ? <span class="stringliteral">&quot;were&quot;</span> : <span class="stringliteral">&quot;was&quot;</span>;</div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> std::cout &lt;&lt; <span class="stringliteral">&quot;[INFO] &quot;</span> &lt;&lt; std::dec &lt;&lt; ignored_count &lt;&lt; <span class="stringliteral">&quot; &quot;</span> &lt;&lt; info1 &lt;&lt; <span class="stringliteral">&quot; from the list : {&quot;</span> &lt;&lt; <a class="code hl_function" href="namespaceutil.html#a4afca6eda8fe7bc220cfdb824b79fd8b">util::list_to_str</a>(<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a5d1f3507578157518e3104ca58696003">ignored_names_list</a>) &lt;&lt; <span class="stringliteral">&quot;} &quot;</span> &lt;&lt; info2 &lt;&lt; <span class="stringliteral">&quot; ignored!&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> }</div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span> }</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span>}</div>
</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> </div>
<div class="foldopen" id="foldopen00250" data-start="{" data-end="}">
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"><a class="line" href="class_h_h_scanner.html#a8528d5f27f05bfefcd2278318dc61846"> 250</a></span><span class="keywordtype">size_t</span> <a class="code hl_function" href="class_h_h_scanner.html#a8528d5f27f05bfefcd2278318dc61846">HHScanner::scanProcesses</a>(<a class="code hl_class" href="class_h_h_scan_report.html">HHScanReport</a> &amp;my_report)</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span>{</div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> <span class="keywordtype">size_t</span> count = 0;</div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> <span class="keywordtype">size_t</span> scanned_count = 0;</div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> <span class="keywordtype">size_t</span> ignored_count = 0;</div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> </div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> HANDLE hProcessSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);</div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> <span class="keywordflow">if</span> (hProcessSnapShot == INVALID_HANDLE_VALUE) {</div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span> <span class="keyword">const</span> DWORD err = GetLastError();</div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> std::cerr &lt;&lt; <span class="stringliteral">&quot;[-] Could not create modules snapshot. Error: &quot;</span> &lt;&lt; std::dec &lt;&lt; err &lt;&lt; std::endl;</div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span> </div>
<div class="foldopen" id="foldopen00251" data-start="{" data-end="}">
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"><a class="line" href="class_h_h_scanner.html#a4881091d77448e0812ab5581f01893c7"> 251</a></span><a class="code hl_typedef" href="hh__scanner_8h.html#ad5caa6b1d4b11989c8ff90d46fc231aa">t_single_scan_status</a> <a class="code hl_function" href="class_h_h_scanner.html#a4881091d77448e0812ab5581f01893c7">HHScanner::scanNextProcess</a>(DWORD pid, WCHAR* exe_file, <a class="code hl_class" href="class_h_h_scan_report.html">HHScanReport</a> &amp;my_report)</div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span>{</div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> <span class="keywordtype">bool</span> found = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> </div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> <span class="keyword">const</span> <span class="keywordtype">bool</span> is_process_wow64 = <a class="code hl_function" href="namespaceprocess__util.html#af9bdd83e9c8262ef548737112964d2f9">process_util::is_wow_64_by_pid</a>(pid);</div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> </div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> <span class="keyword">const</span> <span class="keywordtype">bool</span> check_time = (<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#aeaa430eb92a01d64b063bc3537ceb4c8">ptimes</a> != <a class="code hl_define" href="hh__params_8h.html#a6144407ab3bcb041574c2367ac1e455f">TIME_UNDEFINED</a>) ? <span class="keyword">true</span> : <span class="keyword">false</span>;</div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span><span class="preprocessor">#ifdef _DEBUG</span></div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> <span class="keywordflow">if</span> (check_time) {</div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> std::cout &lt;&lt; <span class="stringliteral">&quot;Init Time: &quot;</span> &lt;&lt; std::hex &lt;&lt; this-&gt;<a class="code hl_variable" href="class_h_h_scanner.html#a989d1551cc43e9497ca232db41ee9e5b">initTime</a> &lt;&lt; std::endl;</div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> }</div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span> </div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> PROCESSENTRY32 pe32 = { 0 };</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> pe32.dwSize = <span class="keyword">sizeof</span>(PROCESSENTRY32);</div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span> </div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span> <span class="comment">//check all modules in the process, including the main module:</span></div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span> <span class="keywordflow">if</span> (!Process32First(hProcessSnapShot, &amp;pe32)) {</div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span> CloseHandle(hProcessSnapShot);</div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"> 269</span> std::cerr &lt;&lt; <span class="stringliteral">&quot;[-] Could not enumerate processes. Error: &quot;</span> &lt;&lt; GetLastError() &lt;&lt; std::endl;</div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span> <span class="keywordflow">return</span> 0;</div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"> 271</span> }</div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno"> 272</span> <span class="keywordflow">do</span> {</div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno"> 273</span> <span class="comment">// scan callback</span></div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span> <span class="keyword">const</span> <a class="code hl_typedef" href="hh__scanner_8h.html#ad5caa6b1d4b11989c8ff90d46fc231aa">t_single_scan_status</a> stat = <a class="code hl_function" href="class_h_h_scanner.html#a4881091d77448e0812ab5581f01893c7">scanNextProcess</a>(pe32.th32ProcessID, pe32.szExeFile, my_report);</div>
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"> 275</span> <span class="keywordflow">if</span> (stat == <a class="code hl_enumvalue" href="hh__scanner_8h.html#a71125474e5d0570a7970dbfeac97d2d4a92a79c026616fa779bd92df2b65a626b">SSCAN_IGNORED</a>) ignored_count++;</div>
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno"> 276</span> <span class="keywordflow">if</span> (stat == <a class="code hl_enumvalue" href="hh__scanner_8h.html#a71125474e5d0570a7970dbfeac97d2d4af8af3004a5fccfada6848162d6bb2202">SSCAN_SUCCESS</a>) scanned_count++;</div>
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"> 277</span> count++;</div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"> 278</span> </div>
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"> 279</span> } <span class="keywordflow">while</span> (Process32Next(hProcessSnapShot, &amp;pe32));</div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span> </div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span> <span class="comment">//close the handles</span></div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span> CloseHandle(hProcessSnapShot);</div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> </div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> <a class="code hl_function" href="class_h_h_scanner.html#a6700be392afaa57e77ddc4c649e718f1">printScanRoundStats</a>(scanned_count, ignored_count);</div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> <span class="keywordflow">return</span> count;</div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span>}</div>
</div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> </div>
<div class="foldopen" id="foldopen00288" data-start="{" data-end="}">
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"><a class="line" href="class_h_h_scanner.html#af1a026170edfe507268e6e21c5052bbb"> 288</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="class_h_h_scanner.html#af1a026170edfe507268e6e21c5052bbb">HHScanner::printSingleReport</a>(pesieve::t_report&amp; report)</div>
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span>{</div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a9c00556752d2c127c5c5b205c166976b">quiet</a>) <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> <span class="comment">// filter by the time</span></div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> time_t time_diff = 0;</div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span> <span class="keywordflow">if</span> (check_time) { <span class="comment">// if the parameter was set</span></div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span> <span class="keyword">const</span> time_t process_time = <a class="code hl_function" href="namespaceutil.html#a1b58bbd7118af7892e3926017211542b">util::process_start_time</a>(pid);</div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span> <span class="keywordflow">if</span> (process_time == <a class="code hl_define" href="time__util_8h.html#a0dd0def9d0d1f83eab3aa811bedbc3e4">INVALID_TIME</a>) <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="hh__scanner_8h.html#a71125474e5d0570a7970dbfeac97d2d4ae5df3c6d61ca83c8c222906ea943c7c8">SSCAN_ERROR0</a>; <span class="comment">//skip process if cannot retrieve the time</span></div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span> </div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"> 269</span> <span class="comment">// if HH was started after the process</span></div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span> <span class="keywordflow">if</span> (this-&gt;<a class="code hl_variable" href="class_h_h_scanner.html#a989d1551cc43e9497ca232db41ee9e5b">initTime</a> &gt; process_time) {</div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"> 271</span> time_diff = this-&gt;<a class="code hl_variable" href="class_h_h_scanner.html#a989d1551cc43e9497ca232db41ee9e5b">initTime</a> - process_time;</div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno"> 272</span> <span class="keywordflow">if</span> (time_diff &gt; <a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#aeaa430eb92a01d64b063bc3537ceb4c8">ptimes</a>) <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="hh__scanner_8h.html#a71125474e5d0570a7970dbfeac97d2d4a4cd58d13fa112594c7c4a6800e445842">SSCAN_NOT_MATCH</a>; <span class="comment">// skip process created before the supplied time</span></div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno"> 273</span> }</div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span> }</div>
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"> 275</span> <span class="comment">//filter by the names/PIDs</span></div>
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno"> 276</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#aaada133523530dfd49401621b336d74b">names_list</a>.size() || <a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a179cffc6577cad21f16e07ca3ae14a67">pids_list</a>.size()) {</div>
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"> 277</span> <span class="keywordflow">if</span> (!<a class="code hl_function" href="namespaceutil.html#a3849afaac9ec9e32eadd5e0abe8e1aa7">util::is_searched_name</a>(exe_file, <a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#aaada133523530dfd49401621b336d74b">names_list</a>) &amp;&amp; !<a class="code hl_function" href="namespaceutil.html#afe3e470c6b385ed25f7d5f1d93b420cd">util::is_searched_pid</a>(pid, <a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a179cffc6577cad21f16e07ca3ae14a67">pids_list</a>)) {</div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"> 278</span> <span class="comment">//it is not the searched process, so skip it</span></div>
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"> 279</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="hh__scanner_8h.html#a71125474e5d0570a7970dbfeac97d2d4a4cd58d13fa112594c7c4a6800e445842">SSCAN_NOT_MATCH</a>;</div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span> }</div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span> found = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span> }</div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> <span class="keywordflow">if</span> (!found &amp;&amp; <a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a5d1f3507578157518e3104ca58696003">ignored_names_list</a>.size()) {</div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="namespaceutil.html#a3849afaac9ec9e32eadd5e0abe8e1aa7">util::is_searched_name</a>(exe_file, <a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a5d1f3507578157518e3104ca58696003">ignored_names_list</a>)) {</div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="hh__scanner_8h.html#a71125474e5d0570a7970dbfeac97d2d4a92a79c026616fa779bd92df2b65a626b">SSCAN_IGNORED</a>;</div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span> }</div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> }</div>
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> <span class="keywordflow">if</span> (!<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a9c00556752d2c127c5c5b205c166976b">quiet</a>) {</div>
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> std::cout &lt;&lt; <span class="stringliteral">&quot;&gt;&gt; Scanning PID: &quot;</span> &lt;&lt; std::setw(<a class="code hl_define" href="hh__scanner_8cpp.html#ac02ff12a84f72a554a357650a1631c2f">PID_FIELD_SIZE</a>) &lt;&lt; std::dec &lt;&lt; pid;</div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> std::wcout &lt;&lt; <span class="stringliteral">&quot; : &quot;</span> &lt;&lt; exe_file;</div>
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> </div>
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span> <span class="keywordflow">if</span> (report.errors == pesieve::ERROR_SCAN_FAILURE) {</div>
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno"> 293</span> WORD old_color = <a class="code hl_function" href="term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b">set_color</a>(<a class="code hl_define" href="term__util_8h.html#a57815732ee1775789c29534c08b0a856">MAKE_COLOR</a>(<a class="code hl_define" href="term__util_8h.html#a7e76a14a479114a4b9b20782bb00e69a">SILVER</a>, <a class="code hl_define" href="term__util_8h.html#adf1abd1d6844a43cca874c266bb57b9b">DARK_RED</a>));</div>
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno"> 294</span> <span class="keywordflow">if</span> (report.errors == pesieve::ERROR_SCAN_FAILURE) {</div>
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno"> 295</span> std::cout &lt;&lt; <span class="stringliteral">&quot;[!] Could not access: &quot;</span> &lt;&lt; std::dec &lt;&lt; report.pid;</div>
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno"> 296</span> }</div>
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno"> 297</span> <a class="code hl_function" href="term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b">set_color</a>(old_color);</div>
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span> <span class="keywordflow">if</span> (is_process_wow64) {</div>
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno"> 293</span> std::cout &lt;&lt; <span class="stringliteral">&quot; : 32b&quot;</span>;</div>
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno"> 294</span> }</div>
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno"> 295</span> <span class="keywordflow">if</span> (check_time) {</div>
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno"> 296</span> std::cout &lt;&lt; <span class="stringliteral">&quot; : &quot;</span> &lt;&lt; time_diff &lt;&lt; <span class="stringliteral">&quot;s&quot;</span>;</div>
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno"> 297</span> }</div>
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno"> 298</span> std::cout &lt;&lt; std::endl;</div>
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno"> 299</span> <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno"> 300</span> }</div>
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno"> 301</span><span class="preprocessor">#ifndef _WIN64</span></div>
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno"> 302</span> <span class="keywordflow">if</span> (report.is_64bit) {</div>
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno"> 303</span> WORD old_color = <a class="code hl_function" href="term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b">set_color</a>(<a class="code hl_define" href="term__util_8h.html#a57815732ee1775789c29534c08b0a856">MAKE_COLOR</a>(<a class="code hl_define" href="term__util_8h.html#a7e76a14a479114a4b9b20782bb00e69a">SILVER</a>, <a class="code hl_define" href="term__util_8h.html#a908d63d1e1a62efbe7c61685f9144a7d">DARK_MAGENTA</a>));</div>
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno"> 304</span> std::cout &lt;&lt; <span class="stringliteral">&quot;[!] Partial scan: &quot;</span> &lt;&lt; std::dec &lt;&lt; report.pid &lt;&lt; <span class="stringliteral">&quot; : &quot;</span> &lt;&lt; (report.is_64bit ? 64 : 32) &lt;&lt; <span class="stringliteral">&quot;b&quot;</span>;</div>
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno"> 305</span> <a class="code hl_function" href="term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b">set_color</a>(old_color);</div>
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno"> 306</span> std::cout &lt;&lt; std::endl;</div>
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno"> 307</span> }</div>
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno"> 308</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno"> 309</span> <span class="keywordflow">if</span> (report.suspicious) {</div>
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno"> 310</span> <span class="keywordtype">int</span> color = <a class="code hl_define" href="term__util_8h.html#abf681265909adf3d3e8116c93c0ba179">YELLOW</a>;</div>
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno"> 311</span> <span class="keywordflow">if</span> (report.replaced || report.implanted) {</div>
<div class="line"><a id="l00312" name="l00312"></a><span class="lineno"> 312</span> color = <a class="code hl_define" href="term__util_8h.html#a8d23feea868a983c8c2b661e1e16972f">RED</a>;</div>
<div class="line"><a id="l00313" name="l00313"></a><span class="lineno"> 313</span> }</div>
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno"> 314</span> <span class="keywordflow">if</span> (report.is_managed) {</div>
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno"> 315</span> color = <a class="code hl_define" href="term__util_8h.html#a57815732ee1775789c29534c08b0a856">MAKE_COLOR</a>(color, <a class="code hl_define" href="term__util_8h.html#ab17de36a1b487f9ad9ef7dabd63531ab">DARK_BLUE</a>);</div>
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno"> 316</span> }</div>
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno"> 317</span> WORD old_color = <a class="code hl_function" href="term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b">set_color</a>(color);</div>
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno"> 318</span> std::cout &lt;&lt; <span class="stringliteral">&quot;&gt;&gt; Detected: &quot;</span> &lt;&lt; std::dec &lt;&lt; report.pid;</div>
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno"> 319</span> <span class="keywordflow">if</span> (report.is_managed) {</div>
<div class="line"><a id="l00320" name="l00320"></a><span class="lineno"> 320</span> std::cout &lt;&lt; <span class="stringliteral">&quot; [.NET]&quot;</span>;</div>
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno"> 321</span> }</div>
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno"> 322</span> <a class="code hl_function" href="term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b">set_color</a>(old_color);</div>
<div class="line"><a id="l00323" name="l00323"></a><span class="lineno"> 323</span> std::cout &lt;&lt; std::endl;</div>
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno"> 324</span> }</div>
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno"> 299</span> }</div>
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno"> 300</span> <span class="comment">//perform the scan:</span></div>
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno"> 301</span> pesieve::t_params &amp;pesieve_args = this-&gt;<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a6e835a4060ea3db6af99e5ff8aae8834">pesieve_args</a>;</div>
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno"> 302</span> pesieve_args.pid = pid;</div>
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno"> 303</span> </div>
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno"> 304</span> pesieve::t_report report = PESieve_scan(pesieve_args);</div>
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno"> 305</span> my_report.<a class="code hl_function" href="class_h_h_scan_report.html#a003c9bdcd02586fe059ce5cbf9200c94">appendReport</a>(report, exe_file);</div>
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno"> 306</span> </div>
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno"> 307</span> <a class="code hl_function" href="class_h_h_scanner.html#af1a026170edfe507268e6e21c5052bbb">printSingleReport</a>(report);</div>
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno"> 308</span> <span class="keywordflow">if</span> (report.scanned &gt; 0) {</div>
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno"> 309</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="hh__scanner_8h.html#a71125474e5d0570a7970dbfeac97d2d4af8af3004a5fccfada6848162d6bb2202">SSCAN_SUCCESS</a>;</div>
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno"> 310</span> }</div>
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno"> 311</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="hh__scanner_8h.html#a71125474e5d0570a7970dbfeac97d2d4abbe276584c09951446b598f9ff89246b">SSCAN_ERROR1</a>;</div>
<div class="line"><a id="l00312" name="l00312"></a><span class="lineno"> 312</span>}</div>
</div>
<div class="line"><a id="l00313" name="l00313"></a><span class="lineno"> 313</span> </div>
<div class="foldopen" id="foldopen00314" data-start="{" data-end="}">
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno"><a class="line" href="class_h_h_scanner.html#ab4515f951cf9a9c2f1761493e6f9b9eb"> 314</a></span><a class="code hl_class" href="class_h_h_scan_report.html">HHScanReport</a>* <a class="code hl_function" href="class_h_h_scanner.html#ab4515f951cf9a9c2f1761493e6f9b9eb">HHScanner::scan</a>()</div>
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno"> 315</span>{</div>
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno"> 316</span> <span class="keyword">const</span> time_t scan_start = time(NULL); <span class="comment">//start time of the current scan</span></div>
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno"> 317</span> pesieve::t_params &amp;pesieve_args = this-&gt;<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a6e835a4060ea3db6af99e5ff8aae8834">pesieve_args</a>;</div>
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno"> 318</span> <a class="code hl_function" href="class_h_h_scanner.html#ab704a295bea1cea7d7b7d00fc97a5683">initOutDir</a>(scan_start, pesieve_args);</div>
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno"> 319</span> </div>
<div class="line"><a id="l00320" name="l00320"></a><span class="lineno"> 320</span> <a class="code hl_class" href="class_h_h_scan_report.html">HHScanReport</a> *my_report = <span class="keyword">new</span> <a class="code hl_class" href="class_h_h_scan_report.html">HHScanReport</a>(GetTickCount(), scan_start);</div>
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno"> 321</span> <a class="code hl_function" href="class_h_h_scanner.html#a8528d5f27f05bfefcd2278318dc61846">scanProcesses</a>(*my_report);</div>
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno"> 322</span> </div>
<div class="line"><a id="l00323" name="l00323"></a><span class="lineno"> 323</span> my_report-&gt;<a class="code hl_function" href="class_h_h_scan_report.html#a15b2afc2c28036efa8e034a2ecf3ff0c">setEndTick</a>(GetTickCount(), time(NULL));</div>
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno"> 324</span> <span class="keywordflow">return</span> my_report;</div>
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno"> 325</span>}</div>
</div>
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno"> 326</span> </div>
<div class="foldopen" id="foldopen00327" data-start="{" data-end="}">
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno"><a class="line" href="class_h_h_scanner.html#a4881091d77448e0812ab5581f01893c7"> 327</a></span><a class="code hl_typedef" href="hh__scanner_8h.html#ad5caa6b1d4b11989c8ff90d46fc231aa">t_single_scan_status</a> <a class="code hl_function" href="class_h_h_scanner.html#a4881091d77448e0812ab5581f01893c7">HHScanner::scanNextProcess</a>(DWORD pid, WCHAR* exe_file, <a class="code hl_class" href="class_h_h_scan_report.html">HHScanReport</a> &amp;my_report)</div>
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno"><a class="line" href="class_h_h_scanner.html#a6c20de8e1a13034173c42c2e87267af3"> 327</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="class_h_h_scanner.html#a6c20de8e1a13034173c42c2e87267af3">HHScanner::summarizeScan</a>(<a class="code hl_class" href="class_h_h_scan_report.html">HHScanReport</a> *hh_report)</div>
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno"> 328</span>{</div>
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno"> 329</span> <span class="keywordtype">bool</span> found = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno"> 330</span> </div>
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno"> 331</span> <span class="keywordtype">bool</span> is_process_wow64 = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno"> 332</span> <a class="code hl_function" href="namespaceprocess__util.html#a4a258bf9fcaf9b1f5b6419f4e6a5d1e1">process_util::get_process_info</a>(pid, is_process_wow64, <span class="keyword">nullptr</span>, 0);</div>
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno"> 333</span> </div>
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno"> 334</span> <span class="keyword">const</span> <span class="keywordtype">bool</span> check_time = (<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#aeaa430eb92a01d64b063bc3537ceb4c8">ptimes</a> != <a class="code hl_define" href="hh__params_8h.html#a6144407ab3bcb041574c2367ac1e455f">TIME_UNDEFINED</a>) ? <span class="keyword">true</span> : <span class="keyword">false</span>;</div>
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno"> 335</span><span class="preprocessor">#ifdef _DEBUG</span></div>
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno"> 336</span> <span class="keywordflow">if</span> (check_time) {</div>
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno"> 337</span> std::cout &lt;&lt; <span class="stringliteral">&quot;Init Time: &quot;</span> &lt;&lt; std::hex &lt;&lt; this-&gt;<a class="code hl_variable" href="class_h_h_scanner.html#a989d1551cc43e9497ca232db41ee9e5b">initTime</a> &lt;&lt; std::endl;</div>
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno"> 338</span> }</div>
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno"> 339</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00340" name="l00340"></a><span class="lineno"> 340</span> <span class="comment">// filter by the time</span></div>
<div class="line"><a id="l00341" name="l00341"></a><span class="lineno"> 341</span> time_t time_diff = 0;</div>
<div class="line"><a id="l00342" name="l00342"></a><span class="lineno"> 342</span> <span class="keywordflow">if</span> (check_time) { <span class="comment">// if the parameter was set</span></div>
<div class="line"><a id="l00343" name="l00343"></a><span class="lineno"> 343</span> <span class="keyword">const</span> time_t process_time = <a class="code hl_function" href="namespaceutil.html#a1b58bbd7118af7892e3926017211542b">util::process_start_time</a>(pid);</div>
<div class="line"><a id="l00344" name="l00344"></a><span class="lineno"> 344</span> <span class="keywordflow">if</span> (process_time == <a class="code hl_define" href="time__util_8h.html#a0dd0def9d0d1f83eab3aa811bedbc3e4">INVALID_TIME</a>) <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="hh__scanner_8h.html#a71125474e5d0570a7970dbfeac97d2d4ae5df3c6d61ca83c8c222906ea943c7c8">SSCAN_ERROR0</a>; <span class="comment">//skip process if cannot retrieve the time</span></div>
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno"> 345</span> </div>
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno"> 346</span> <span class="comment">// if HH was started after the process</span></div>
<div class="line"><a id="l00347" name="l00347"></a><span class="lineno"> 347</span> <span class="keywordflow">if</span> (this-&gt;<a class="code hl_variable" href="class_h_h_scanner.html#a989d1551cc43e9497ca232db41ee9e5b">initTime</a> &gt; process_time) {</div>
<div class="line"><a id="l00348" name="l00348"></a><span class="lineno"> 348</span> time_diff = this-&gt;<a class="code hl_variable" href="class_h_h_scanner.html#a989d1551cc43e9497ca232db41ee9e5b">initTime</a> - process_time;</div>
<div class="line"><a id="l00349" name="l00349"></a><span class="lineno"> 349</span> <span class="keywordflow">if</span> (time_diff &gt; <a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#aeaa430eb92a01d64b063bc3537ceb4c8">ptimes</a>) <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="hh__scanner_8h.html#a71125474e5d0570a7970dbfeac97d2d4a4cd58d13fa112594c7c4a6800e445842">SSCAN_NOT_MATCH</a>; <span class="comment">// skip process created before the supplied time</span></div>
<div class="line"><a id="l00350" name="l00350"></a><span class="lineno"> 350</span> }</div>
<div class="line"><a id="l00351" name="l00351"></a><span class="lineno"> 351</span> }</div>
<div class="line"><a id="l00352" name="l00352"></a><span class="lineno"> 352</span> <span class="comment">//filter by the names/PIDs</span></div>
<div class="line"><a id="l00353" name="l00353"></a><span class="lineno"> 353</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#aaada133523530dfd49401621b336d74b">names_list</a>.size() || <a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a179cffc6577cad21f16e07ca3ae14a67">pids_list</a>.size()) {</div>
<div class="line"><a id="l00354" name="l00354"></a><span class="lineno"> 354</span> <span class="keywordflow">if</span> (!<a class="code hl_function" href="namespaceutil.html#a3849afaac9ec9e32eadd5e0abe8e1aa7">util::is_searched_name</a>(exe_file, <a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#aaada133523530dfd49401621b336d74b">names_list</a>) &amp;&amp; !<a class="code hl_function" href="namespaceutil.html#afe3e470c6b385ed25f7d5f1d93b420cd">util::is_searched_pid</a>(pid, <a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a179cffc6577cad21f16e07ca3ae14a67">pids_list</a>)) {</div>
<div class="line"><a id="l00355" name="l00355"></a><span class="lineno"> 355</span> <span class="comment">//it is not the searched process, so skip it</span></div>
<div class="line"><a id="l00356" name="l00356"></a><span class="lineno"> 356</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="hh__scanner_8h.html#a71125474e5d0570a7970dbfeac97d2d4a4cd58d13fa112594c7c4a6800e445842">SSCAN_NOT_MATCH</a>;</div>
<div class="line"><a id="l00357" name="l00357"></a><span class="lineno"> 357</span> }</div>
<div class="line"><a id="l00358" name="l00358"></a><span class="lineno"> 358</span> found = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00359" name="l00359"></a><span class="lineno"> 359</span> }</div>
<div class="line"><a id="l00360" name="l00360"></a><span class="lineno"> 360</span> <span class="keywordflow">if</span> (!found &amp;&amp; <a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a5d1f3507578157518e3104ca58696003">ignored_names_list</a>.size()) {</div>
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno"> 361</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="namespaceutil.html#a3849afaac9ec9e32eadd5e0abe8e1aa7">util::is_searched_name</a>(exe_file, <a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a5d1f3507578157518e3104ca58696003">ignored_names_list</a>)) {</div>
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno"> 362</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="hh__scanner_8h.html#a71125474e5d0570a7970dbfeac97d2d4a92a79c026616fa779bd92df2b65a626b">SSCAN_IGNORED</a>;</div>
<div class="line"><a id="l00363" name="l00363"></a><span class="lineno"> 363</span> }</div>
<div class="line"><a id="l00364" name="l00364"></a><span class="lineno"> 364</span> }</div>
<div class="line"><a id="l00365" name="l00365"></a><span class="lineno"> 365</span> <span class="keywordflow">if</span> (!<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a9c00556752d2c127c5c5b205c166976b">quiet</a>) {</div>
<div class="line"><a id="l00366" name="l00366"></a><span class="lineno"> 366</span> std::cout &lt;&lt; <span class="stringliteral">&quot;&gt;&gt; Scanning PID: &quot;</span> &lt;&lt; std::setw(<a class="code hl_define" href="hh__scanner_8cpp.html#ac02ff12a84f72a554a357650a1631c2f">PID_FIELD_SIZE</a>) &lt;&lt; std::dec &lt;&lt; pid;</div>
<div class="line"><a id="l00367" name="l00367"></a><span class="lineno"> 367</span> std::wcout &lt;&lt; <span class="stringliteral">&quot; : &quot;</span> &lt;&lt; exe_file;</div>
<div class="line"><a id="l00368" name="l00368"></a><span class="lineno"> 368</span> </div>
<div class="line"><a id="l00369" name="l00369"></a><span class="lineno"> 369</span> <span class="keywordflow">if</span> (is_process_wow64) {</div>
<div class="line"><a id="l00370" name="l00370"></a><span class="lineno"> 370</span> std::cout &lt;&lt; <span class="stringliteral">&quot; : 32b&quot;</span>;</div>
<div class="line"><a id="l00371" name="l00371"></a><span class="lineno"> 371</span> }</div>
<div class="line"><a id="l00372" name="l00372"></a><span class="lineno"> 372</span> <span class="keywordflow">if</span> (check_time) {</div>
<div class="line"><a id="l00373" name="l00373"></a><span class="lineno"> 373</span> std::cout &lt;&lt; <span class="stringliteral">&quot; : &quot;</span> &lt;&lt; time_diff &lt;&lt; <span class="stringliteral">&quot;s&quot;</span>;</div>
<div class="line"><a id="l00374" name="l00374"></a><span class="lineno"> 374</span> }</div>
<div class="line"><a id="l00375" name="l00375"></a><span class="lineno"> 375</span> std::cout &lt;&lt; std::endl;</div>
<div class="line"><a id="l00376" name="l00376"></a><span class="lineno"> 376</span> }</div>
<div class="line"><a id="l00377" name="l00377"></a><span class="lineno"> 377</span> <span class="comment">//perform the scan:</span></div>
<div class="line"><a id="l00378" name="l00378"></a><span class="lineno"> 378</span> pesieve::t_params &amp;pesieve_args = this-&gt;<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a6e835a4060ea3db6af99e5ff8aae8834">pesieve_args</a>;</div>
<div class="line"><a id="l00379" name="l00379"></a><span class="lineno"> 379</span> pesieve_args.pid = pid;</div>
<div class="line"><a id="l00380" name="l00380"></a><span class="lineno"> 380</span> </div>
<div class="line"><a id="l00381" name="l00381"></a><span class="lineno"> 381</span> pesieve::t_report report = PESieve_scan(pesieve_args);</div>
<div class="line"><a id="l00382" name="l00382"></a><span class="lineno"> 382</span> my_report.<a class="code hl_function" href="class_h_h_scan_report.html#a003c9bdcd02586fe059ce5cbf9200c94">appendReport</a>(report, exe_file);</div>
<div class="line"><a id="l00383" name="l00383"></a><span class="lineno"> 383</span> </div>
<div class="line"><a id="l00384" name="l00384"></a><span class="lineno"> 384</span> <a class="code hl_function" href="class_h_h_scanner.html#af1a026170edfe507268e6e21c5052bbb">printSingleReport</a>(report);</div>
<div class="line"><a id="l00385" name="l00385"></a><span class="lineno"> 385</span> <span class="keywordflow">if</span> (report.scanned &gt; 0) {</div>
<div class="line"><a id="l00386" name="l00386"></a><span class="lineno"> 386</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="hh__scanner_8h.html#a71125474e5d0570a7970dbfeac97d2d4af8af3004a5fccfada6848162d6bb2202">SSCAN_SUCCESS</a>;</div>
<div class="line"><a id="l00387" name="l00387"></a><span class="lineno"> 387</span> }</div>
<div class="line"><a id="l00388" name="l00388"></a><span class="lineno"> 388</span> <span class="keywordflow">return</span> <a class="code hl_enumvalue" href="hh__scanner_8h.html#a71125474e5d0570a7970dbfeac97d2d4abbe276584c09951446b598f9ff89246b">SSCAN_ERROR1</a>;</div>
<div class="line"><a id="l00389" name="l00389"></a><span class="lineno"> 389</span>}</div>
</div>
<div class="line"><a id="l00390" name="l00390"></a><span class="lineno"> 390</span> </div>
<div class="foldopen" id="foldopen00391" data-start="{" data-end="}">
<div class="line"><a id="l00391" name="l00391"></a><span class="lineno"><a class="line" href="class_h_h_scanner.html#ab4515f951cf9a9c2f1761493e6f9b9eb"> 391</a></span><a class="code hl_class" href="class_h_h_scan_report.html">HHScanReport</a>* <a class="code hl_function" href="class_h_h_scanner.html#ab4515f951cf9a9c2f1761493e6f9b9eb">HHScanner::scan</a>()</div>
<div class="line"><a id="l00392" name="l00392"></a><span class="lineno"> 392</span>{</div>
<div class="line"><a id="l00393" name="l00393"></a><span class="lineno"> 393</span> <span class="keyword">const</span> time_t scan_start = time(NULL); <span class="comment">//start time of the current scan</span></div>
<div class="line"><a id="l00394" name="l00394"></a><span class="lineno"> 394</span> pesieve::t_params &amp;pesieve_args = this-&gt;<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a6e835a4060ea3db6af99e5ff8aae8834">pesieve_args</a>;</div>
<div class="line"><a id="l00395" name="l00395"></a><span class="lineno"> 395</span> <a class="code hl_function" href="class_h_h_scanner.html#ab704a295bea1cea7d7b7d00fc97a5683">initOutDir</a>(scan_start, pesieve_args);</div>
<div class="line"><a id="l00396" name="l00396"></a><span class="lineno"> 396</span> </div>
<div class="line"><a id="l00397" name="l00397"></a><span class="lineno"> 397</span> <a class="code hl_class" href="class_h_h_scan_report.html">HHScanReport</a> *my_report = <span class="keyword">new</span> <a class="code hl_class" href="class_h_h_scan_report.html">HHScanReport</a>(GetTickCount(), scan_start);</div>
<div class="line"><a id="l00398" name="l00398"></a><span class="lineno"> 398</span> <a class="code hl_function" href="class_h_h_scanner.html#a8528d5f27f05bfefcd2278318dc61846">scanProcesses</a>(*my_report);</div>
<div class="line"><a id="l00399" name="l00399"></a><span class="lineno"> 399</span> </div>
<div class="line"><a id="l00400" name="l00400"></a><span class="lineno"> 400</span> my_report-&gt;<a class="code hl_function" href="class_h_h_scan_report.html#a15b2afc2c28036efa8e034a2ecf3ff0c">setEndTick</a>(GetTickCount(), time(NULL));</div>
<div class="line"><a id="l00401" name="l00401"></a><span class="lineno"> 401</span> <span class="keywordflow">return</span> my_report;</div>
<div class="line"><a id="l00402" name="l00402"></a><span class="lineno"> 402</span>}</div>
</div>
<div class="line"><a id="l00403" name="l00403"></a><span class="lineno"> 403</span> </div>
<div class="foldopen" id="foldopen00404" data-start="{" data-end="}">
<div class="line"><a id="l00404" name="l00404"></a><span class="lineno"><a class="line" href="class_h_h_scanner.html#a6c20de8e1a13034173c42c2e87267af3"> 404</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="class_h_h_scanner.html#a6c20de8e1a13034173c42c2e87267af3">HHScanner::summarizeScan</a>(<a class="code hl_class" href="class_h_h_scan_report.html">HHScanReport</a> *hh_report)</div>
<div class="line"><a id="l00405" name="l00405"></a><span class="lineno"> 405</span>{</div>
<div class="line"><a id="l00406" name="l00406"></a><span class="lineno"> 406</span> <span class="keywordflow">if</span> (!hh_report) <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00407" name="l00407"></a><span class="lineno"> 407</span> std::string summary_str;</div>
<div class="line"><a id="l00408" name="l00408"></a><span class="lineno"> 408</span> </div>
<div class="line"><a id="l00409" name="l00409"></a><span class="lineno"> 409</span> <span class="keywordflow">if</span> (!this-&gt;<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a4c710dd9009a2ee6a31580ca62c200de">json_output</a>) {</div>
<div class="line"><a id="l00410" name="l00410"></a><span class="lineno"> 410</span> summary_str = hh_report-&gt;<a class="code hl_function" href="class_h_h_scan_report.html#ad7283b381ccf47bc892e264ddd6eae90">toString</a>();</div>
<div class="line"><a id="l00411" name="l00411"></a><span class="lineno"> 411</span> std::cout &lt;&lt; summary_str;</div>
<div class="line"><a id="l00412" name="l00412"></a><span class="lineno"> 412</span> }</div>
<div class="line"><a id="l00413" name="l00413"></a><span class="lineno"> 413</span> <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00414" name="l00414"></a><span class="lineno"> 414</span> summary_str = hh_report-&gt;<a class="code hl_function" href="class_h_h_scan_report.html#a9d63466cb4cb100244b164ae5e7cc846">toJSON</a>(this-&gt;<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>);</div>
<div class="line"><a id="l00415" name="l00415"></a><span class="lineno"> 415</span> std::cout &lt;&lt; summary_str;</div>
<div class="line"><a id="l00416" name="l00416"></a><span class="lineno"> 416</span> }</div>
<div class="line"><a id="l00417" name="l00417"></a><span class="lineno"> 417</span> </div>
<div class="line"><a id="l00418" name="l00418"></a><span class="lineno"> 418</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a6e835a4060ea3db6af99e5ff8aae8834">pesieve_args</a>.out_filter != OUT_NO_DIR) {</div>
<div class="line"><a id="l00419" name="l00419"></a><span class="lineno"> 419</span> <span class="comment">//file the same report into the directory with dumps:</span></div>
<div class="line"><a id="l00420" name="l00420"></a><span class="lineno"> 420</span> <span class="keywordflow">if</span> (hh_report-&gt;<a class="code hl_variable" href="class_h_h_scan_report.html#a8ec4849570e43fbf4a915300becceb92">suspicious</a>.size()) {</div>
<div class="line"><a id="l00421" name="l00421"></a><span class="lineno"> 421</span> std::string report_path = <a class="code hl_function" href="namespacefiles__util.html#a9a7fcfd84189964e87c1b572f1fe8fbe">files_util::join_path</a>(this-&gt;<a class="code hl_variable" href="class_h_h_scanner.html#a238a4958607b0f74d44c27c1505b1906">outDir</a>, <span class="stringliteral">&quot;summary.json&quot;</span>);</div>
<div class="line"><a id="l00422" name="l00422"></a><span class="lineno"> 422</span> <a class="code hl_function" href="namespacefiles__util.html#af87086ea253d2c9f93852ad9b40fd7ac">files_util::write_to_file</a>(report_path, hh_report-&gt;<a class="code hl_function" href="class_h_h_scan_report.html#a9d63466cb4cb100244b164ae5e7cc846">toJSON</a>(this-&gt;hh_args), <span class="keyword">false</span>);</div>
<div class="line"><a id="l00423" name="l00423"></a><span class="lineno"> 423</span> }</div>
<div class="line"><a id="l00424" name="l00424"></a><span class="lineno"> 424</span> }</div>
<div class="line"><a id="l00425" name="l00425"></a><span class="lineno"> 425</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a48a6a280e36ad9430b9be539faff3f5c">log</a>) {</div>
<div class="line"><a id="l00426" name="l00426"></a><span class="lineno"> 426</span> <a class="code hl_function" href="namespacefiles__util.html#af87086ea253d2c9f93852ad9b40fd7ac">files_util::write_to_file</a>(<span class="stringliteral">&quot;hollows_hunter.log&quot;</span>, summary_str, <span class="keyword">true</span>);</div>
<div class="line"><a id="l00427" name="l00427"></a><span class="lineno"> 427</span> }</div>
<div class="line"><a id="l00428" name="l00428"></a><span class="lineno"> 428</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#ada2ba65bfb7d9e5395dd38ad4003d1cd">suspend_suspicious</a>) {</div>
<div class="line"><a id="l00429" name="l00429"></a><span class="lineno"> 429</span> <a class="code hl_function" href="namespaceprocess__util.html#a9edce70fe41a8ec91d549fb9d71a3b10">process_util::suspend_suspicious</a>(hh_report-&gt;<a class="code hl_variable" href="class_h_h_scan_report.html#a8ec4849570e43fbf4a915300becceb92">suspicious</a>);</div>
<div class="line"><a id="l00430" name="l00430"></a><span class="lineno"> 430</span> }</div>
<div class="line"><a id="l00431" name="l00431"></a><span class="lineno"> 431</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a4c77070993ef883769c1dfb8c2092c88">kill_suspicious</a>) {</div>
<div class="line"><a id="l00432" name="l00432"></a><span class="lineno"> 432</span> <a class="code hl_function" href="namespaceprocess__util.html#ad8765675543bcce40dec2c3207d76ce9">process_util::kill_suspicious</a>(hh_report-&gt;<a class="code hl_variable" href="class_h_h_scan_report.html#a8ec4849570e43fbf4a915300becceb92">suspicious</a>);</div>
<div class="line"><a id="l00433" name="l00433"></a><span class="lineno"> 433</span> }</div>
<div class="line"><a id="l00434" name="l00434"></a><span class="lineno"> 434</span>}</div>
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno"> 329</span> <span class="keywordflow">if</span> (!hh_report) <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno"> 330</span> std::string summary_str;</div>
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno"> 331</span> </div>
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno"> 332</span> <span class="keywordflow">if</span> (!this-&gt;<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a4c710dd9009a2ee6a31580ca62c200de">json_output</a>) {</div>
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno"> 333</span> summary_str = hh_report-&gt;<a class="code hl_function" href="class_h_h_scan_report.html#ad7283b381ccf47bc892e264ddd6eae90">toString</a>();</div>
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno"> 334</span> std::cout &lt;&lt; summary_str;</div>
<div class="line"><a id="l00335" name="l00335"></a><span class="lineno"> 335</span> }</div>
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno"> 336</span> <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno"> 337</span> summary_str = hh_report-&gt;<a class="code hl_function" href="class_h_h_scan_report.html#a9d63466cb4cb100244b164ae5e7cc846">toJSON</a>(this-&gt;<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>);</div>
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno"> 338</span> std::cout &lt;&lt; summary_str;</div>
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno"> 339</span> }</div>
<div class="line"><a id="l00340" name="l00340"></a><span class="lineno"> 340</span> </div>
<div class="line"><a id="l00341" name="l00341"></a><span class="lineno"> 341</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a6e835a4060ea3db6af99e5ff8aae8834">pesieve_args</a>.out_filter != OUT_NO_DIR) {</div>
<div class="line"><a id="l00342" name="l00342"></a><span class="lineno"> 342</span> <span class="comment">//file the same report into the directory with dumps:</span></div>
<div class="line"><a id="l00343" name="l00343"></a><span class="lineno"> 343</span> <span class="keywordflow">if</span> (hh_report-&gt;<a class="code hl_variable" href="class_h_h_scan_report.html#a8ec4849570e43fbf4a915300becceb92">suspicious</a>.size()) {</div>
<div class="line"><a id="l00344" name="l00344"></a><span class="lineno"> 344</span> std::string report_path = <a class="code hl_function" href="namespacefiles__util.html#a9a7fcfd84189964e87c1b572f1fe8fbe">files_util::join_path</a>(this-&gt;<a class="code hl_variable" href="class_h_h_scanner.html#a238a4958607b0f74d44c27c1505b1906">outDir</a>, <span class="stringliteral">&quot;summary.json&quot;</span>);</div>
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno"> 345</span> <a class="code hl_function" href="namespacefiles__util.html#af87086ea253d2c9f93852ad9b40fd7ac">files_util::write_to_file</a>(report_path, hh_report-&gt;<a class="code hl_function" href="class_h_h_scan_report.html#a9d63466cb4cb100244b164ae5e7cc846">toJSON</a>(this-&gt;hh_args), <span class="keyword">false</span>);</div>
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno"> 346</span> }</div>
<div class="line"><a id="l00347" name="l00347"></a><span class="lineno"> 347</span> }</div>
<div class="line"><a id="l00348" name="l00348"></a><span class="lineno"> 348</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a48a6a280e36ad9430b9be539faff3f5c">log</a>) {</div>
<div class="line"><a id="l00349" name="l00349"></a><span class="lineno"> 349</span> <a class="code hl_function" href="namespacefiles__util.html#af87086ea253d2c9f93852ad9b40fd7ac">files_util::write_to_file</a>(<span class="stringliteral">&quot;hollows_hunter.log&quot;</span>, summary_str, <span class="keyword">true</span>);</div>
<div class="line"><a id="l00350" name="l00350"></a><span class="lineno"> 350</span> }</div>
<div class="line"><a id="l00351" name="l00351"></a><span class="lineno"> 351</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#ada2ba65bfb7d9e5395dd38ad4003d1cd">suspend_suspicious</a>) {</div>
<div class="line"><a id="l00352" name="l00352"></a><span class="lineno"> 352</span> <a class="code hl_function" href="namespaceprocess__util.html#a9edce70fe41a8ec91d549fb9d71a3b10">process_util::suspend_suspicious</a>(hh_report-&gt;<a class="code hl_variable" href="class_h_h_scan_report.html#a8ec4849570e43fbf4a915300becceb92">suspicious</a>);</div>
<div class="line"><a id="l00353" name="l00353"></a><span class="lineno"> 353</span> }</div>
<div class="line"><a id="l00354" name="l00354"></a><span class="lineno"> 354</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">hh_args</a>.<a class="code hl_variable" href="structhh__params.html#a4c77070993ef883769c1dfb8c2092c88">kill_suspicious</a>) {</div>
<div class="line"><a id="l00355" name="l00355"></a><span class="lineno"> 355</span> <a class="code hl_function" href="namespaceprocess__util.html#ad8765675543bcce40dec2c3207d76ce9">process_util::kill_suspicious</a>(hh_report-&gt;<a class="code hl_variable" href="class_h_h_scan_report.html#a8ec4849570e43fbf4a915300becceb92">suspicious</a>);</div>
<div class="line"><a id="l00356" name="l00356"></a><span class="lineno"> 356</span> }</div>
<div class="line"><a id="l00357" name="l00357"></a><span class="lineno"> 357</span>}</div>
</div>
<div class="ttc" id="aclass_h_h_scan_report_html"><div class="ttname"><a href="class_h_h_scan_report.html">HHScanReport</a></div><div class="ttdef"><b>Definition</b> <a href="hh__report_8h_source.html#l00012">hh_report.h:13</a></div></div>
<div class="ttc" id="aclass_h_h_scan_report_html_a003c9bdcd02586fe059ce5cbf9200c94"><div class="ttname"><a href="class_h_h_scan_report.html#a003c9bdcd02586fe059ce5cbf9200c94">HHScanReport::appendReport</a></div><div class="ttdeci">bool appendReport(pesieve::t_report &amp;scan_report, const std::wstring &amp;img_name)</div><div class="ttdef"><b>Definition</b> <a href="hh__report_8cpp_source.html#l00026">hh_report.cpp:26</a></div></div>
@@ -568,20 +481,20 @@ $(function() { codefold.init(0); });
<div class="ttc" id="aclass_h_h_scan_report_html_a9d63466cb4cb100244b164ae5e7cc846"><div class="ttname"><a href="class_h_h_scan_report.html#a9d63466cb4cb100244b164ae5e7cc846">HHScanReport::toJSON</a></div><div class="ttdeci">std::string toJSON(const t_hh_params &amp;params)</div><div class="ttdef"><b>Definition</b> <a href="hh__report_8cpp_source.html#l00102">hh_report.cpp:102</a></div></div>
<div class="ttc" id="aclass_h_h_scan_report_html_ad7283b381ccf47bc892e264ddd6eae90"><div class="ttname"><a href="class_h_h_scan_report.html#ad7283b381ccf47bc892e264ddd6eae90">HHScanReport::toString</a></div><div class="ttdeci">std::string toString()</div><div class="ttdef"><b>Definition</b> <a href="hh__report_8cpp_source.html#l00147">hh_report.cpp:147</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_a238a4958607b0f74d44c27c1505b1906"><div class="ttname"><a href="class_h_h_scanner.html#a238a4958607b0f74d44c27c1505b1906">HHScanner::outDir</a></div><div class="ttdeci">std::string outDir</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8h_source.html#l00042">hh_scanner.h:42</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_a4881091d77448e0812ab5581f01893c7"><div class="ttname"><a href="class_h_h_scanner.html#a4881091d77448e0812ab5581f01893c7">HHScanner::scanNextProcess</a></div><div class="ttdeci">t_single_scan_status scanNextProcess(DWORD pid, WCHAR *image_buf, HHScanReport &amp;report)</div><div class="ttdef"><b>Definition</b> <a href="#l00327">hh_scanner.cpp:327</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_a4881091d77448e0812ab5581f01893c7"><div class="ttname"><a href="class_h_h_scanner.html#a4881091d77448e0812ab5581f01893c7">HHScanner::scanNextProcess</a></div><div class="ttdeci">t_single_scan_status scanNextProcess(DWORD pid, WCHAR *image_buf, HHScanReport &amp;report)</div><div class="ttdef"><b>Definition</b> <a href="#l00251">hh_scanner.cpp:251</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_a64bb7d15ea59c9fe7e25f266e05005b9"><div class="ttname"><a href="class_h_h_scanner.html#a64bb7d15ea59c9fe7e25f266e05005b9">HHScanner::isScannerWow64</a></div><div class="ttdeci">bool isScannerWow64</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8h_source.html#l00046">hh_scanner.h:46</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_a6700be392afaa57e77ddc4c649e718f1"><div class="ttname"><a href="class_h_h_scanner.html#a6700be392afaa57e77ddc4c649e718f1">HHScanner::printScanRoundStats</a></div><div class="ttdeci">void printScanRoundStats(size_t found, size_t ignored_count)</div><div class="ttdef"><b>Definition</b> <a href="#l00229">hh_scanner.cpp:229</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_a6c20de8e1a13034173c42c2e87267af3"><div class="ttname"><a href="class_h_h_scanner.html#a6c20de8e1a13034173c42c2e87267af3">HHScanner::summarizeScan</a></div><div class="ttdeci">void summarizeScan(HHScanReport *hh_report)</div><div class="ttdef"><b>Definition</b> <a href="#l00404">hh_scanner.cpp:404</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_a8528d5f27f05bfefcd2278318dc61846"><div class="ttname"><a href="class_h_h_scanner.html#a8528d5f27f05bfefcd2278318dc61846">HHScanner::scanProcesses</a></div><div class="ttdeci">size_t scanProcesses(HHScanReport &amp;my_report)</div><div class="ttdef"><b>Definition</b> <a href="#l00250">hh_scanner.cpp:250</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_a6700be392afaa57e77ddc4c649e718f1"><div class="ttname"><a href="class_h_h_scanner.html#a6700be392afaa57e77ddc4c649e718f1">HHScanner::printScanRoundStats</a></div><div class="ttdeci">void printScanRoundStats(size_t found, size_t ignored_count)</div><div class="ttdef"><b>Definition</b> <a href="#l00153">hh_scanner.cpp:153</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_a6c20de8e1a13034173c42c2e87267af3"><div class="ttname"><a href="class_h_h_scanner.html#a6c20de8e1a13034173c42c2e87267af3">HHScanner::summarizeScan</a></div><div class="ttdeci">void summarizeScan(HHScanReport *hh_report)</div><div class="ttdef"><b>Definition</b> <a href="#l00327">hh_scanner.cpp:327</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_a8528d5f27f05bfefcd2278318dc61846"><div class="ttname"><a href="class_h_h_scanner.html#a8528d5f27f05bfefcd2278318dc61846">HHScanner::scanProcesses</a></div><div class="ttdeci">size_t scanProcesses(HHScanReport &amp;my_report)</div><div class="ttdef"><b>Definition</b> <a href="#l00174">hh_scanner.cpp:174</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_a989d1551cc43e9497ca232db41ee9e5b"><div class="ttname"><a href="class_h_h_scanner.html#a989d1551cc43e9497ca232db41ee9e5b">HHScanner::initTime</a></div><div class="ttdeci">time_t initTime</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8h_source.html#l00045">hh_scanner.h:45</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_aa9841ff29a663251372cf65e2db3cbef"><div class="ttname"><a href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">HHScanner::hh_args</a></div><div class="ttdeci">t_hh_params &amp; hh_args</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8h_source.html#l00041">hh_scanner.h:41</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_ab4515f951cf9a9c2f1761493e6f9b9eb"><div class="ttname"><a href="class_h_h_scanner.html#ab4515f951cf9a9c2f1761493e6f9b9eb">HHScanner::scan</a></div><div class="ttdeci">HHScanReport * scan()</div><div class="ttdef"><b>Definition</b> <a href="#l00391">hh_scanner.cpp:391</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_ab704a295bea1cea7d7b7d00fc97a5683"><div class="ttname"><a href="class_h_h_scanner.html#ab704a295bea1cea7d7b7d00fc97a5683">HHScanner::initOutDir</a></div><div class="ttdeci">void initOutDir(time_t scan_time, pesieve::t_params &amp;pesieve_args)</div><div class="ttdef"><b>Definition</b> <a href="#l00216">hh_scanner.cpp:216</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_abae28bb490b101cb3d1136eb76a5df33"><div class="ttname"><a href="class_h_h_scanner.html#abae28bb490b101cb3d1136eb76a5df33">HHScanner::HHScanner</a></div><div class="ttdeci">HHScanner(t_hh_params &amp;_args)</div><div class="ttdef"><b>Definition</b> <a href="#l00199">hh_scanner.cpp:199</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_adec367c7541ba8e334c7f674e57f429a"><div class="ttname"><a href="class_h_h_scanner.html#adec367c7541ba8e334c7f674e57f429a">HHScanner::isScannerCompatibile</a></div><div class="ttdeci">static bool isScannerCompatibile()</div><div class="ttdef"><b>Definition</b> <a href="#l00206">hh_scanner.cpp:206</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_af1a026170edfe507268e6e21c5052bbb"><div class="ttname"><a href="class_h_h_scanner.html#af1a026170edfe507268e6e21c5052bbb">HHScanner::printSingleReport</a></div><div class="ttdeci">void printSingleReport(pesieve::t_report &amp;report)</div><div class="ttdef"><b>Definition</b> <a href="#l00288">hh_scanner.cpp:288</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_ab4515f951cf9a9c2f1761493e6f9b9eb"><div class="ttname"><a href="class_h_h_scanner.html#ab4515f951cf9a9c2f1761493e6f9b9eb">HHScanner::scan</a></div><div class="ttdeci">HHScanReport * scan()</div><div class="ttdef"><b>Definition</b> <a href="#l00314">hh_scanner.cpp:314</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_ab704a295bea1cea7d7b7d00fc97a5683"><div class="ttname"><a href="class_h_h_scanner.html#ab704a295bea1cea7d7b7d00fc97a5683">HHScanner::initOutDir</a></div><div class="ttdeci">void initOutDir(time_t scan_time, pesieve::t_params &amp;pesieve_args)</div><div class="ttdef"><b>Definition</b> <a href="#l00140">hh_scanner.cpp:140</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_abae28bb490b101cb3d1136eb76a5df33"><div class="ttname"><a href="class_h_h_scanner.html#abae28bb490b101cb3d1136eb76a5df33">HHScanner::HHScanner</a></div><div class="ttdeci">HHScanner(t_hh_params &amp;_args)</div><div class="ttdef"><b>Definition</b> <a href="#l00123">hh_scanner.cpp:123</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_adec367c7541ba8e334c7f674e57f429a"><div class="ttname"><a href="class_h_h_scanner.html#adec367c7541ba8e334c7f674e57f429a">HHScanner::isScannerCompatibile</a></div><div class="ttdeci">static bool isScannerCompatibile()</div><div class="ttdef"><b>Definition</b> <a href="#l00130">hh_scanner.cpp:130</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_af1a026170edfe507268e6e21c5052bbb"><div class="ttname"><a href="class_h_h_scanner.html#af1a026170edfe507268e6e21c5052bbb">HHScanner::printSingleReport</a></div><div class="ttdeci">void printSingleReport(pesieve::t_report &amp;report)</div><div class="ttdef"><b>Definition</b> <a href="#l00212">hh_scanner.cpp:212</a></div></div>
<div class="ttc" id="ahh__params_8h_html_a6144407ab3bcb041574c2367ac1e455f"><div class="ttname"><a href="hh__params_8h.html#a6144407ab3bcb041574c2367ac1e455f">TIME_UNDEFINED</a></div><div class="ttdeci">#define TIME_UNDEFINED</div><div class="ttdef"><b>Definition</b> <a href="hh__params_8h_source.html#l00007">hh_params.h:7</a></div></div>
<div class="ttc" id="ahh__scanner_8cpp_html_ac02ff12a84f72a554a357650a1631c2f"><div class="ttname"><a href="hh__scanner_8cpp.html#ac02ff12a84f72a554a357650a1631c2f">PID_FIELD_SIZE</a></div><div class="ttdeci">#define PID_FIELD_SIZE</div><div class="ttdef"><b>Definition</b> <a href="#l00018">hh_scanner.cpp:18</a></div></div>
<div class="ttc" id="ahh__scanner_8cpp_html_ac02ff12a84f72a554a357650a1631c2f"><div class="ttname"><a href="hh__scanner_8cpp.html#ac02ff12a84f72a554a357650a1631c2f">PID_FIELD_SIZE</a></div><div class="ttdeci">#define PID_FIELD_SIZE</div><div class="ttdef"><b>Definition</b> <a href="#l00019">hh_scanner.cpp:19</a></div></div>
<div class="ttc" id="ahh__scanner_8h_html"><div class="ttname"><a href="hh__scanner_8h.html">hh_scanner.h</a></div></div>
<div class="ttc" id="ahh__scanner_8h_html_a71125474e5d0570a7970dbfeac97d2d4a4cd58d13fa112594c7c4a6800e445842"><div class="ttname"><a href="hh__scanner_8h.html#a71125474e5d0570a7970dbfeac97d2d4a4cd58d13fa112594c7c4a6800e445842">SSCAN_NOT_MATCH</a></div><div class="ttdeci">@ SSCAN_NOT_MATCH</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8h_source.html#l00018">hh_scanner.h:18</a></div></div>
<div class="ttc" id="ahh__scanner_8h_html_a71125474e5d0570a7970dbfeac97d2d4a92a79c026616fa779bd92df2b65a626b"><div class="ttname"><a href="hh__scanner_8h.html#a71125474e5d0570a7970dbfeac97d2d4a92a79c026616fa779bd92df2b65a626b">SSCAN_IGNORED</a></div><div class="ttdeci">@ SSCAN_IGNORED</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8h_source.html#l00019">hh_scanner.h:19</a></div></div>
@@ -589,21 +502,21 @@ $(function() { codefold.init(0); });
<div class="ttc" id="ahh__scanner_8h_html_a71125474e5d0570a7970dbfeac97d2d4ae5df3c6d61ca83c8c222906ea943c7c8"><div class="ttname"><a href="hh__scanner_8h.html#a71125474e5d0570a7970dbfeac97d2d4ae5df3c6d61ca83c8c222906ea943c7c8">SSCAN_ERROR0</a></div><div class="ttdeci">@ SSCAN_ERROR0</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8h_source.html#l00017">hh_scanner.h:17</a></div></div>
<div class="ttc" id="ahh__scanner_8h_html_a71125474e5d0570a7970dbfeac97d2d4af8af3004a5fccfada6848162d6bb2202"><div class="ttname"><a href="hh__scanner_8h.html#a71125474e5d0570a7970dbfeac97d2d4af8af3004a5fccfada6848162d6bb2202">SSCAN_SUCCESS</a></div><div class="ttdeci">@ SSCAN_SUCCESS</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8h_source.html#l00021">hh_scanner.h:20</a></div></div>
<div class="ttc" id="ahh__scanner_8h_html_ad5caa6b1d4b11989c8ff90d46fc231aa"><div class="ttname"><a href="hh__scanner_8h.html#ad5caa6b1d4b11989c8ff90d46fc231aa">t_single_scan_status</a></div><div class="ttdeci">enum single_status t_single_scan_status</div></div>
<div class="ttc" id="anamespacefiles__util_html"><div class="ttname"><a href="namespacefiles__util.html">files_util</a></div><div class="ttdef"><b>Definition</b> <a href="#l00099">hh_scanner.cpp:99</a></div></div>
<div class="ttc" id="anamespacefiles__util_html_a9a7fcfd84189964e87c1b572f1fe8fbe"><div class="ttname"><a href="namespacefiles__util.html#a9a7fcfd84189964e87c1b572f1fe8fbe">files_util::join_path</a></div><div class="ttdeci">std::string join_path(const std::string &amp;baseDir, const std::string &amp;subpath)</div><div class="ttdef"><b>Definition</b> <a href="#l00101">hh_scanner.cpp:101</a></div></div>
<div class="ttc" id="anamespacefiles__util_html_a9c2cf1240e4b850893c4e7a0a2ab641b"><div class="ttname"><a href="namespacefiles__util.html#a9c2cf1240e4b850893c4e7a0a2ab641b">files_util::make_dir_name</a></div><div class="ttdeci">std::string make_dir_name(std::string baseDir, time_t timestamp)</div><div class="ttdef"><b>Definition</b> <a href="#l00112">hh_scanner.cpp:112</a></div></div>
<div class="ttc" id="anamespacefiles__util_html_abab65a3cbe43de11dd5d25ed5e4d47e5"><div class="ttname"><a href="namespacefiles__util.html#abab65a3cbe43de11dd5d25ed5e4d47e5">files_util::set_output_dir</a></div><div class="ttdeci">bool set_output_dir(t_params &amp;args, const std::string &amp;new_dir)</div><div class="ttdef"><b>Definition</b> <a href="#l00124">hh_scanner.cpp:124</a></div></div>
<div class="ttc" id="anamespacefiles__util_html_af87086ea253d2c9f93852ad9b40fd7ac"><div class="ttname"><a href="namespacefiles__util.html#af87086ea253d2c9f93852ad9b40fd7ac">files_util::write_to_file</a></div><div class="ttdeci">bool write_to_file(const std::string &amp;report_path, const std::string &amp;summary_str, const bool append)</div><div class="ttdef"><b>Definition</b> <a href="#l00138">hh_scanner.cpp:138</a></div></div>
<div class="ttc" id="anamespaceprocess__util_html"><div class="ttname"><a href="namespaceprocess__util.html">process_util</a></div><div class="ttdef"><b>Definition</b> <a href="#l00022">hh_scanner.cpp:22</a></div></div>
<div class="ttc" id="anamespaceprocess__util_html_a1550838f32323b66051e0d05a0acdb01"><div class="ttname"><a href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01">process_util::is_wow_64</a></div><div class="ttdeci">bool is_wow_64(HANDLE process)</div><div class="ttdef"><b>Definition</b> <a href="#l00024">hh_scanner.cpp:24</a></div></div>
<div class="ttc" id="anamespaceprocess__util_html_a4a258bf9fcaf9b1f5b6419f4e6a5d1e1"><div class="ttname"><a href="namespaceprocess__util.html#a4a258bf9fcaf9b1f5b6419f4e6a5d1e1">process_util::get_process_info</a></div><div class="ttdeci">bool get_process_info(DWORD processID, bool &amp;isWow64, char *szProcessName, DWORD processNameSize)</div><div class="ttdef"><b>Definition</b> <a href="#l00041">hh_scanner.cpp:41</a></div></div>
<div class="ttc" id="anamespaceprocess__util_html_a9edce70fe41a8ec91d549fb9d71a3b10"><div class="ttname"><a href="namespaceprocess__util.html#a9edce70fe41a8ec91d549fb9d71a3b10">process_util::suspend_suspicious</a></div><div class="ttdeci">size_t suspend_suspicious(std::vector&lt; DWORD &gt; &amp;suspicious_pids)</div><div class="ttdef"><b>Definition</b> <a href="#l00062">hh_scanner.cpp:62</a></div></div>
<div class="ttc" id="anamespaceprocess__util_html_ad8765675543bcce40dec2c3207d76ce9"><div class="ttname"><a href="namespaceprocess__util.html#ad8765675543bcce40dec2c3207d76ce9">process_util::kill_suspicious</a></div><div class="ttdeci">size_t kill_suspicious(std::vector&lt; DWORD &gt; &amp;suspicious_pids)</div><div class="ttdef"><b>Definition</b> <a href="#l00075">hh_scanner.cpp:75</a></div></div>
<div class="ttc" id="anamespaceutil_html"><div class="ttname"><a href="namespaceutil.html">util</a></div><div class="ttdef"><b>Definition</b> <a href="#l00156">hh_scanner.cpp:156</a></div></div>
<div class="ttc" id="anamespacefiles__util_html"><div class="ttname"><a href="namespacefiles__util.html">files_util</a></div><div class="ttdef"><b>Definition</b> <a href="#l00023">hh_scanner.cpp:23</a></div></div>
<div class="ttc" id="anamespacefiles__util_html_a9a7fcfd84189964e87c1b572f1fe8fbe"><div class="ttname"><a href="namespacefiles__util.html#a9a7fcfd84189964e87c1b572f1fe8fbe">files_util::join_path</a></div><div class="ttdeci">std::string join_path(const std::string &amp;baseDir, const std::string &amp;subpath)</div><div class="ttdef"><b>Definition</b> <a href="#l00025">hh_scanner.cpp:25</a></div></div>
<div class="ttc" id="anamespacefiles__util_html_a9c2cf1240e4b850893c4e7a0a2ab641b"><div class="ttname"><a href="namespacefiles__util.html#a9c2cf1240e4b850893c4e7a0a2ab641b">files_util::make_dir_name</a></div><div class="ttdeci">std::string make_dir_name(std::string baseDir, time_t timestamp)</div><div class="ttdef"><b>Definition</b> <a href="#l00036">hh_scanner.cpp:36</a></div></div>
<div class="ttc" id="anamespacefiles__util_html_abab65a3cbe43de11dd5d25ed5e4d47e5"><div class="ttname"><a href="namespacefiles__util.html#abab65a3cbe43de11dd5d25ed5e4d47e5">files_util::set_output_dir</a></div><div class="ttdeci">bool set_output_dir(t_params &amp;args, const std::string &amp;new_dir)</div><div class="ttdef"><b>Definition</b> <a href="#l00048">hh_scanner.cpp:48</a></div></div>
<div class="ttc" id="anamespacefiles__util_html_af87086ea253d2c9f93852ad9b40fd7ac"><div class="ttname"><a href="namespacefiles__util.html#af87086ea253d2c9f93852ad9b40fd7ac">files_util::write_to_file</a></div><div class="ttdeci">bool write_to_file(const std::string &amp;report_path, const std::string &amp;summary_str, const bool append)</div><div class="ttdef"><b>Definition</b> <a href="#l00062">hh_scanner.cpp:62</a></div></div>
<div class="ttc" id="anamespaceprocess__util_html_a1550838f32323b66051e0d05a0acdb01"><div class="ttname"><a href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01">process_util::is_wow_64</a></div><div class="ttdeci">bool is_wow_64(HANDLE process)</div><div class="ttdef"><b>Definition</b> <a href="process__util_8h_source.html#l00009">process_util.h:9</a></div></div>
<div class="ttc" id="anamespaceprocess__util_html_a9edce70fe41a8ec91d549fb9d71a3b10"><div class="ttname"><a href="namespaceprocess__util.html#a9edce70fe41a8ec91d549fb9d71a3b10">process_util::suspend_suspicious</a></div><div class="ttdeci">size_t suspend_suspicious(std::vector&lt; DWORD &gt; &amp;suspicious_pids)</div><div class="ttdef"><b>Definition</b> <a href="process__util_8h_source.html#l00057">process_util.h:57</a></div></div>
<div class="ttc" id="anamespaceprocess__util_html_ad8765675543bcce40dec2c3207d76ce9"><div class="ttname"><a href="namespaceprocess__util.html#ad8765675543bcce40dec2c3207d76ce9">process_util::kill_suspicious</a></div><div class="ttdeci">size_t kill_suspicious(std::vector&lt; DWORD &gt; &amp;suspicious_pids)</div><div class="ttdef"><b>Definition</b> <a href="process__util_8h_source.html#l00070">process_util.h:70</a></div></div>
<div class="ttc" id="anamespaceprocess__util_html_af9bdd83e9c8262ef548737112964d2f9"><div class="ttname"><a href="namespaceprocess__util.html#af9bdd83e9c8262ef548737112964d2f9">process_util::is_wow_64_by_pid</a></div><div class="ttdeci">bool is_wow_64_by_pid(DWORD processID)</div><div class="ttdef"><b>Definition</b> <a href="process__util_8h_source.html#l00027">process_util.h:27</a></div></div>
<div class="ttc" id="anamespaceutil_html"><div class="ttname"><a href="namespaceutil.html">util</a></div><div class="ttdef"><b>Definition</b> <a href="#l00080">hh_scanner.cpp:80</a></div></div>
<div class="ttc" id="anamespaceutil_html_a1b58bbd7118af7892e3926017211542b"><div class="ttname"><a href="namespaceutil.html#a1b58bbd7118af7892e3926017211542b">util::process_start_time</a></div><div class="ttdeci">LONGLONG process_start_time(DWORD processID)</div><div class="ttdef"><b>Definition</b> <a href="time__util_8cpp_source.html#l00042">time_util.cpp:42</a></div></div>
<div class="ttc" id="anamespaceutil_html_a3849afaac9ec9e32eadd5e0abe8e1aa7"><div class="ttname"><a href="namespaceutil.html#a3849afaac9ec9e32eadd5e0abe8e1aa7">util::is_searched_name</a></div><div class="ttdeci">bool is_searched_name(const WCHAR *processName, std::set&lt; std::wstring &gt; &amp;names_list)</div><div class="ttdef"><b>Definition</b> <a href="#l00158">hh_scanner.cpp:158</a></div></div>
<div class="ttc" id="anamespaceutil_html_a4afca6eda8fe7bc220cfdb824b79fd8b"><div class="ttname"><a href="namespaceutil.html#a4afca6eda8fe7bc220cfdb824b79fd8b">util::list_to_str</a></div><div class="ttdeci">std::string list_to_str(std::set&lt; TYPE_T &gt; &amp;list)</div><div class="ttdef"><b>Definition</b> <a href="#l00180">hh_scanner.cpp:180</a></div></div>
<div class="ttc" id="anamespaceutil_html_afe3e470c6b385ed25f7d5f1d93b420cd"><div class="ttname"><a href="namespaceutil.html#afe3e470c6b385ed25f7d5f1d93b420cd">util::is_searched_pid</a></div><div class="ttdeci">bool is_searched_pid(long pid, std::set&lt; long &gt; &amp;pids_list)</div><div class="ttdef"><b>Definition</b> <a href="#l00170">hh_scanner.cpp:170</a></div></div>
<div class="ttc" id="anamespaceutil_html_a3849afaac9ec9e32eadd5e0abe8e1aa7"><div class="ttname"><a href="namespaceutil.html#a3849afaac9ec9e32eadd5e0abe8e1aa7">util::is_searched_name</a></div><div class="ttdeci">bool is_searched_name(const WCHAR *processName, std::set&lt; std::wstring &gt; &amp;names_list)</div><div class="ttdef"><b>Definition</b> <a href="#l00082">hh_scanner.cpp:82</a></div></div>
<div class="ttc" id="anamespaceutil_html_a4afca6eda8fe7bc220cfdb824b79fd8b"><div class="ttname"><a href="namespaceutil.html#a4afca6eda8fe7bc220cfdb824b79fd8b">util::list_to_str</a></div><div class="ttdeci">std::string list_to_str(std::set&lt; TYPE_T &gt; &amp;list)</div><div class="ttdef"><b>Definition</b> <a href="#l00104">hh_scanner.cpp:104</a></div></div>
<div class="ttc" id="anamespaceutil_html_afe3e470c6b385ed25f7d5f1d93b420cd"><div class="ttname"><a href="namespaceutil.html#afe3e470c6b385ed25f7d5f1d93b420cd">util::is_searched_pid</a></div><div class="ttdeci">bool is_searched_pid(long pid, std::set&lt; long &gt; &amp;pids_list)</div><div class="ttdef"><b>Definition</b> <a href="#l00094">hh_scanner.cpp:94</a></div></div>
<div class="ttc" id="aprocess__util_8h_html"><div class="ttname"><a href="process__util_8h.html">process_util.h</a></div></div>
<div class="ttc" id="astructhh__params_html"><div class="ttname"><a href="structhh__params.html">hh_params</a></div><div class="ttdef"><b>Definition</b> <a href="hh__params_8h_source.html#l00011">hh_params.h:12</a></div></div>
<div class="ttc" id="astructhh__params_html_a179cffc6577cad21f16e07ca3ae14a67"><div class="ttname"><a href="structhh__params.html#a179cffc6577cad21f16e07ca3ae14a67">hh_params::pids_list</a></div><div class="ttdeci">std::set&lt; long &gt; pids_list</div><div class="ttdef"><b>Definition</b> <a href="hh__params_8h_source.html#l00025">hh_params.h:25</a></div></div>
<div class="ttc" id="astructhh__params_html_a48a6a280e36ad9430b9be539faff3f5c"><div class="ttname"><a href="structhh__params.html#a48a6a280e36ad9430b9be539faff3f5c">hh_params::log</a></div><div class="ttdeci">bool log</div><div class="ttdef"><b>Definition</b> <a href="hh__params_8h_source.html#l00021">hh_params.h:21</a></div></div>
@@ -617,7 +530,6 @@ $(function() { codefold.init(0); });
<div class="ttc" id="astructhh__params_html_ada2ba65bfb7d9e5395dd38ad4003d1cd"><div class="ttname"><a href="structhh__params.html#ada2ba65bfb7d9e5395dd38ad4003d1cd">hh_params::suspend_suspicious</a></div><div class="ttdeci">bool suspend_suspicious</div><div class="ttdef"><b>Definition</b> <a href="hh__params_8h_source.html#l00018">hh_params.h:18</a></div></div>
<div class="ttc" id="astructhh__params_html_adc6d18cfa1bcec72107e2022418bf8f3"><div class="ttname"><a href="structhh__params.html#adc6d18cfa1bcec72107e2022418bf8f3">hh_params::unique_dir</a></div><div class="ttdeci">bool unique_dir</div><div class="ttdef"><b>Definition</b> <a href="hh__params_8h_source.html#l00015">hh_params.h:15</a></div></div>
<div class="ttc" id="astructhh__params_html_aeaa430eb92a01d64b063bc3537ceb4c8"><div class="ttname"><a href="structhh__params.html#aeaa430eb92a01d64b063bc3537ceb4c8">hh_params::ptimes</a></div><div class="ttdeci">LONGLONG ptimes</div><div class="ttdef"><b>Definition</b> <a href="hh__params_8h_source.html#l00023">hh_params.h:23</a></div></div>
<div class="ttc" id="asuspend_8cpp_html_a3c63f252433e6e7532e441ed5cacca9d"><div class="ttname"><a href="suspend_8cpp.html#a3c63f252433e6e7532e441ed5cacca9d">suspend_process</a></div><div class="ttdeci">bool suspend_process(DWORD processId)</div><div class="ttdef"><b>Definition</b> <a href="suspend_8cpp_source.html#l00007">suspend.cpp:7</a></div></div>
<div class="ttc" id="asuspend_8h_html"><div class="ttname"><a href="suspend_8h.html">suspend.h</a></div></div>
<div class="ttc" id="aterm__util_8cpp_html_a72fb5a7886c4d8ed5e351d64ad5c536b"><div class="ttname"><a href="term__util_8cpp.html#a72fb5a7886c4d8ed5e351d64ad5c536b">set_color</a></div><div class="ttdeci">WORD set_color(WORD color)</div><div class="ttdef"><b>Definition</b> <a href="term__util_8cpp_source.html#l00017">term_util.cpp:17</a></div></div>
<div class="ttc" id="aterm__util_8h_html"><div class="ttname"><a href="term__util_8h.html">term_util.h</a></div></div>
+9 -9
View File
@@ -139,18 +139,18 @@ $(function() { codefold.init(0); });
<div class="ttc" id="aclass_h_h_scan_report_html"><div class="ttname"><a href="class_h_h_scan_report.html">HHScanReport</a></div><div class="ttdef"><b>Definition</b> <a href="hh__report_8h_source.html#l00012">hh_report.h:13</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html"><div class="ttname"><a href="class_h_h_scanner.html">HHScanner</a></div><div class="ttdef"><b>Definition</b> <a href="#l00023">hh_scanner.h:23</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_a238a4958607b0f74d44c27c1505b1906"><div class="ttname"><a href="class_h_h_scanner.html#a238a4958607b0f74d44c27c1505b1906">HHScanner::outDir</a></div><div class="ttdeci">std::string outDir</div><div class="ttdef"><b>Definition</b> <a href="#l00042">hh_scanner.h:42</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_a4881091d77448e0812ab5581f01893c7"><div class="ttname"><a href="class_h_h_scanner.html#a4881091d77448e0812ab5581f01893c7">HHScanner::scanNextProcess</a></div><div class="ttdeci">t_single_scan_status scanNextProcess(DWORD pid, WCHAR *image_buf, HHScanReport &amp;report)</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00327">hh_scanner.cpp:327</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_a4881091d77448e0812ab5581f01893c7"><div class="ttname"><a href="class_h_h_scanner.html#a4881091d77448e0812ab5581f01893c7">HHScanner::scanNextProcess</a></div><div class="ttdeci">t_single_scan_status scanNextProcess(DWORD pid, WCHAR *image_buf, HHScanReport &amp;report)</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00251">hh_scanner.cpp:251</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_a64bb7d15ea59c9fe7e25f266e05005b9"><div class="ttname"><a href="class_h_h_scanner.html#a64bb7d15ea59c9fe7e25f266e05005b9">HHScanner::isScannerWow64</a></div><div class="ttdeci">bool isScannerWow64</div><div class="ttdef"><b>Definition</b> <a href="#l00046">hh_scanner.h:46</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_a6700be392afaa57e77ddc4c649e718f1"><div class="ttname"><a href="class_h_h_scanner.html#a6700be392afaa57e77ddc4c649e718f1">HHScanner::printScanRoundStats</a></div><div class="ttdeci">void printScanRoundStats(size_t found, size_t ignored_count)</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00229">hh_scanner.cpp:229</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_a6c20de8e1a13034173c42c2e87267af3"><div class="ttname"><a href="class_h_h_scanner.html#a6c20de8e1a13034173c42c2e87267af3">HHScanner::summarizeScan</a></div><div class="ttdeci">void summarizeScan(HHScanReport *hh_report)</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00404">hh_scanner.cpp:404</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_a8528d5f27f05bfefcd2278318dc61846"><div class="ttname"><a href="class_h_h_scanner.html#a8528d5f27f05bfefcd2278318dc61846">HHScanner::scanProcesses</a></div><div class="ttdeci">size_t scanProcesses(HHScanReport &amp;my_report)</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00250">hh_scanner.cpp:250</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_a6700be392afaa57e77ddc4c649e718f1"><div class="ttname"><a href="class_h_h_scanner.html#a6700be392afaa57e77ddc4c649e718f1">HHScanner::printScanRoundStats</a></div><div class="ttdeci">void printScanRoundStats(size_t found, size_t ignored_count)</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00153">hh_scanner.cpp:153</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_a6c20de8e1a13034173c42c2e87267af3"><div class="ttname"><a href="class_h_h_scanner.html#a6c20de8e1a13034173c42c2e87267af3">HHScanner::summarizeScan</a></div><div class="ttdeci">void summarizeScan(HHScanReport *hh_report)</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00327">hh_scanner.cpp:327</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_a8528d5f27f05bfefcd2278318dc61846"><div class="ttname"><a href="class_h_h_scanner.html#a8528d5f27f05bfefcd2278318dc61846">HHScanner::scanProcesses</a></div><div class="ttdeci">size_t scanProcesses(HHScanReport &amp;my_report)</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00174">hh_scanner.cpp:174</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_a989d1551cc43e9497ca232db41ee9e5b"><div class="ttname"><a href="class_h_h_scanner.html#a989d1551cc43e9497ca232db41ee9e5b">HHScanner::initTime</a></div><div class="ttdeci">time_t initTime</div><div class="ttdef"><b>Definition</b> <a href="#l00045">hh_scanner.h:45</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_aa9841ff29a663251372cf65e2db3cbef"><div class="ttname"><a href="class_h_h_scanner.html#aa9841ff29a663251372cf65e2db3cbef">HHScanner::hh_args</a></div><div class="ttdeci">t_hh_params &amp; hh_args</div><div class="ttdef"><b>Definition</b> <a href="#l00041">hh_scanner.h:41</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_ab4515f951cf9a9c2f1761493e6f9b9eb"><div class="ttname"><a href="class_h_h_scanner.html#ab4515f951cf9a9c2f1761493e6f9b9eb">HHScanner::scan</a></div><div class="ttdeci">HHScanReport * scan()</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00391">hh_scanner.cpp:391</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_ab704a295bea1cea7d7b7d00fc97a5683"><div class="ttname"><a href="class_h_h_scanner.html#ab704a295bea1cea7d7b7d00fc97a5683">HHScanner::initOutDir</a></div><div class="ttdeci">void initOutDir(time_t scan_time, pesieve::t_params &amp;pesieve_args)</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00216">hh_scanner.cpp:216</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_abae28bb490b101cb3d1136eb76a5df33"><div class="ttname"><a href="class_h_h_scanner.html#abae28bb490b101cb3d1136eb76a5df33">HHScanner::HHScanner</a></div><div class="ttdeci">HHScanner(t_hh_params &amp;_args)</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00199">hh_scanner.cpp:199</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_adec367c7541ba8e334c7f674e57f429a"><div class="ttname"><a href="class_h_h_scanner.html#adec367c7541ba8e334c7f674e57f429a">HHScanner::isScannerCompatibile</a></div><div class="ttdeci">static bool isScannerCompatibile()</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00206">hh_scanner.cpp:206</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_af1a026170edfe507268e6e21c5052bbb"><div class="ttname"><a href="class_h_h_scanner.html#af1a026170edfe507268e6e21c5052bbb">HHScanner::printSingleReport</a></div><div class="ttdeci">void printSingleReport(pesieve::t_report &amp;report)</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00288">hh_scanner.cpp:288</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_ab4515f951cf9a9c2f1761493e6f9b9eb"><div class="ttname"><a href="class_h_h_scanner.html#ab4515f951cf9a9c2f1761493e6f9b9eb">HHScanner::scan</a></div><div class="ttdeci">HHScanReport * scan()</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00314">hh_scanner.cpp:314</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_ab704a295bea1cea7d7b7d00fc97a5683"><div class="ttname"><a href="class_h_h_scanner.html#ab704a295bea1cea7d7b7d00fc97a5683">HHScanner::initOutDir</a></div><div class="ttdeci">void initOutDir(time_t scan_time, pesieve::t_params &amp;pesieve_args)</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00140">hh_scanner.cpp:140</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_abae28bb490b101cb3d1136eb76a5df33"><div class="ttname"><a href="class_h_h_scanner.html#abae28bb490b101cb3d1136eb76a5df33">HHScanner::HHScanner</a></div><div class="ttdeci">HHScanner(t_hh_params &amp;_args)</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00123">hh_scanner.cpp:123</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_adec367c7541ba8e334c7f674e57f429a"><div class="ttname"><a href="class_h_h_scanner.html#adec367c7541ba8e334c7f674e57f429a">HHScanner::isScannerCompatibile</a></div><div class="ttdeci">static bool isScannerCompatibile()</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00130">hh_scanner.cpp:130</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_af1a026170edfe507268e6e21c5052bbb"><div class="ttname"><a href="class_h_h_scanner.html#af1a026170edfe507268e6e21c5052bbb">HHScanner::printSingleReport</a></div><div class="ttdeci">void printSingleReport(pesieve::t_report &amp;report)</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00212">hh_scanner.cpp:212</a></div></div>
<div class="ttc" id="ahh__params_8h_html"><div class="ttname"><a href="hh__params_8h.html">hh_params.h</a></div></div>
<div class="ttc" id="ahh__report_8h_html"><div class="ttname"><a href="hh__report_8h.html">hh_report.h</a></div></div>
<div class="ttc" id="ahh__scanner_8h_html_a316fb776978a9d4b668b2ff824c7d781"><div class="ttname"><a href="hh__scanner_8h.html#a316fb776978a9d4b668b2ff824c7d781">g_hh_args</a></div><div class="ttdeci">t_hh_params g_hh_args</div><div class="ttdef"><b>Definition</b> <a href="main_8cpp_source.html#l00030">main.cpp:30</a></div></div>
+1 -1
View File
@@ -200,7 +200,7 @@ $(function() { codefold.init(0); });
<div class="ttc" id="aclass_h_h_scan_report_html"><div class="ttname"><a href="class_h_h_scan_report.html">HHScanReport</a></div><div class="ttdef"><b>Definition</b> <a href="hh__report_8h_source.html#l00012">hh_report.h:13</a></div></div>
<div class="ttc" id="aclass_h_h_scan_report_html_a10b9aaf6b6f15a816500daff8b200746"><div class="ttname"><a href="class_h_h_scan_report.html#a10b9aaf6b6f15a816500daff8b200746">HHScanReport::countSuspicious</a></div><div class="ttdeci">size_t countSuspicious() const</div><div class="ttdef"><b>Definition</b> <a href="hh__report_8h_source.html#l00039">hh_report.h:39</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html"><div class="ttname"><a href="class_h_h_scanner.html">HHScanner</a></div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8h_source.html#l00023">hh_scanner.h:23</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_adec367c7541ba8e334c7f674e57f429a"><div class="ttname"><a href="class_h_h_scanner.html#adec367c7541ba8e334c7f674e57f429a">HHScanner::isScannerCompatibile</a></div><div class="ttdeci">static bool isScannerCompatibile()</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00206">hh_scanner.cpp:206</a></div></div>
<div class="ttc" id="aclass_h_h_scanner_html_adec367c7541ba8e334c7f674e57f429a"><div class="ttname"><a href="class_h_h_scanner.html#adec367c7541ba8e334c7f674e57f429a">HHScanner::isScannerCompatibile</a></div><div class="ttdeci">static bool isScannerCompatibile()</div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00130">hh_scanner.cpp:130</a></div></div>
<div class="ttc" id="aetw__listener_8cpp_html_a04ed7dd8998af138c7cca0225c99be08"><div class="ttname"><a href="etw__listener_8cpp.html#a04ed7dd8998af138c7cca0225c99be08">ETWstart</a></div><div class="ttdeci">bool ETWstart()</div><div class="ttdef"><b>Definition</b> <a href="etw__listener_8cpp_source.html#l00118">etw_listener.cpp:118</a></div></div>
<div class="ttc" id="aetw__listener_8h_html"><div class="ttname"><a href="etw__listener_8h.html">etw_listener.h</a></div></div>
<div class="ttc" id="ahh__scanner_8h_html"><div class="ttname"><a href="hh__scanner_8h.html">hh_scanner.h</a></div></div>
+4 -4
View File
@@ -110,7 +110,7 @@ Functions</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00101">101</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00025">25</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
</div>
</div>
@@ -133,7 +133,7 @@ Functions</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00112">112</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00036">36</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
</div>
</div>
@@ -156,7 +156,7 @@ Functions</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00124">124</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00048">48</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
</div>
</div>
@@ -184,7 +184,7 @@ Functions</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00138">138</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00062">62</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
</div>
</div>
+2 -1
View File
@@ -75,12 +75,13 @@ $(function() {
<div class="contents">
<div class="textblock">Here is a list of all namespace members with links to the namespace documentation for each member:</div><ul>
<li>FileTime_to_POSIX()&#160;:&#160;<a class="el" href="namespaceutil.html#a60893a3cb25d9aff16347e26b602141b">util</a></li>
<li>get_process_info()&#160;:&#160;<a class="el" href="namespaceprocess__util.html#a4a258bf9fcaf9b1f5b6419f4e6a5d1e1">process_util</a></li>
<li>get_process_name()&#160;:&#160;<a class="el" href="namespaceprocess__util.html#ade4964469f029a4d858bf5fb77893815">process_util</a></li>
<li>is_cstr_equal()&#160;:&#160;<a class="el" href="namespacehhunter_1_1util.html#a4f5307bb294f3b8e3374e22005257e24">hhunter::util</a></li>
<li>is_searched_name()&#160;:&#160;<a class="el" href="namespaceutil.html#a3849afaac9ec9e32eadd5e0abe8e1aa7">util</a></li>
<li>is_searched_pid()&#160;:&#160;<a class="el" href="namespaceutil.html#afe3e470c6b385ed25f7d5f1d93b420cd">util</a></li>
<li>is_string_similar()&#160;:&#160;<a class="el" href="namespacehhunter_1_1util.html#a7a7446ea8ee879e8552808e83017f81a">hhunter::util</a></li>
<li>is_wow_64()&#160;:&#160;<a class="el" href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01">process_util</a></li>
<li>is_wow_64_by_pid()&#160;:&#160;<a class="el" href="namespaceprocess__util.html#af9bdd83e9c8262ef548737112964d2f9">process_util</a></li>
<li>join_path()&#160;:&#160;<a class="el" href="namespacefiles__util.html#a9a7fcfd84189964e87c1b572f1fe8fbe">files_util</a></li>
<li>kill_suspicious()&#160;:&#160;<a class="el" href="namespaceprocess__util.html#ad8765675543bcce40dec2c3207d76ce9">process_util</a></li>
<li>levenshtein_distance()&#160;:&#160;<a class="el" href="namespacehhunter_1_1util.html#a48183ed17d49191649fbac64927b6f28">hhunter::util</a></li>
+2 -1
View File
@@ -75,12 +75,13 @@ $(function() {
<div class="contents">
<div class="textblock">Here is a list of all namespace functions with links to the namespace documentation for each function:</div><ul>
<li>FileTime_to_POSIX()&#160;:&#160;<a class="el" href="namespaceutil.html#a60893a3cb25d9aff16347e26b602141b">util</a></li>
<li>get_process_info()&#160;:&#160;<a class="el" href="namespaceprocess__util.html#a4a258bf9fcaf9b1f5b6419f4e6a5d1e1">process_util</a></li>
<li>get_process_name()&#160;:&#160;<a class="el" href="namespaceprocess__util.html#ade4964469f029a4d858bf5fb77893815">process_util</a></li>
<li>is_cstr_equal()&#160;:&#160;<a class="el" href="namespacehhunter_1_1util.html#a4f5307bb294f3b8e3374e22005257e24">hhunter::util</a></li>
<li>is_searched_name()&#160;:&#160;<a class="el" href="namespaceutil.html#a3849afaac9ec9e32eadd5e0abe8e1aa7">util</a></li>
<li>is_searched_pid()&#160;:&#160;<a class="el" href="namespaceutil.html#afe3e470c6b385ed25f7d5f1d93b420cd">util</a></li>
<li>is_string_similar()&#160;:&#160;<a class="el" href="namespacehhunter_1_1util.html#a7a7446ea8ee879e8552808e83017f81a">hhunter::util</a></li>
<li>is_wow_64()&#160;:&#160;<a class="el" href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01">process_util</a></li>
<li>is_wow_64_by_pid()&#160;:&#160;<a class="el" href="namespaceprocess__util.html#af9bdd83e9c8262ef548737112964d2f9">process_util</a></li>
<li>join_path()&#160;:&#160;<a class="el" href="namespacefiles__util.html#a9a7fcfd84189964e87c1b572f1fe8fbe">files_util</a></li>
<li>kill_suspicious()&#160;:&#160;<a class="el" href="namespaceprocess__util.html#ad8765675543bcce40dec2c3207d76ce9">process_util</a></li>
<li>levenshtein_distance()&#160;:&#160;<a class="el" href="namespacehhunter_1_1util.html#a48183ed17d49191649fbac64927b6f28">hhunter::util</a></li>
+82 -21
View File
@@ -83,22 +83,27 @@ $(function() {
Functions</h2></td></tr>
<tr class="memitem:a1550838f32323b66051e0d05a0acdb01" id="r_a1550838f32323b66051e0d05a0acdb01"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1550838f32323b66051e0d05a0acdb01">is_wow_64</a> (HANDLE process)</td></tr>
<tr class="separator:a1550838f32323b66051e0d05a0acdb01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a258bf9fcaf9b1f5b6419f4e6a5d1e1" id="r_a4a258bf9fcaf9b1f5b6419f4e6a5d1e1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4a258bf9fcaf9b1f5b6419f4e6a5d1e1">get_process_info</a> (DWORD processID, bool &amp;isWow64, char *szProcessName, DWORD processNameSize)</td></tr>
<tr class="separator:a4a258bf9fcaf9b1f5b6419f4e6a5d1e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9bdd83e9c8262ef548737112964d2f9" id="r_af9bdd83e9c8262ef548737112964d2f9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af9bdd83e9c8262ef548737112964d2f9">is_wow_64_by_pid</a> (DWORD processID)</td></tr>
<tr class="separator:af9bdd83e9c8262ef548737112964d2f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade4964469f029a4d858bf5fb77893815" id="r_ade4964469f029a4d858bf5fb77893815"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ade4964469f029a4d858bf5fb77893815">get_process_name</a> (DWORD processID, bool &amp;isWow64, WCHAR *szProcessName, size_t processNameSize)</td></tr>
<tr class="separator:ade4964469f029a4d858bf5fb77893815"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9edce70fe41a8ec91d549fb9d71a3b10" id="r_a9edce70fe41a8ec91d549fb9d71a3b10"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9edce70fe41a8ec91d549fb9d71a3b10">suspend_suspicious</a> (std::vector&lt; DWORD &gt; &amp;suspicious_pids)</td></tr>
<tr class="separator:a9edce70fe41a8ec91d549fb9d71a3b10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8765675543bcce40dec2c3207d76ce9" id="r_ad8765675543bcce40dec2c3207d76ce9"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad8765675543bcce40dec2c3207d76ce9">kill_suspicious</a> (std::vector&lt; DWORD &gt; &amp;suspicious_pids)</td></tr>
<tr class="separator:ad8765675543bcce40dec2c3207d76ce9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="a4a258bf9fcaf9b1f5b6419f4e6a5d1e1" name="a4a258bf9fcaf9b1f5b6419f4e6a5d1e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a258bf9fcaf9b1f5b6419f4e6a5d1e1">&#9670;&#160;</a></span>get_process_info()</h2>
<a id="ade4964469f029a4d858bf5fb77893815" name="ade4964469f029a4d858bf5fb77893815"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ade4964469f029a4d858bf5fb77893815">&#9670;&#160;</a></span>get_process_name()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool process_util::get_process_info </td>
<td class="memname">bool process_util::get_process_name </td>
<td>(</td>
<td class="paramtype">DWORD</td> <td class="paramname"><span class="paramname"><em>processID</em>, </span></td>
</tr>
@@ -110,27 +115,22 @@ Functions</h2></td></tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char *</td> <td class="paramname"><span class="paramname"><em>szProcessName</em>, </span></td>
<td class="paramtype">WCHAR *</td> <td class="paramname"><span class="paramname"><em>szProcessName</em>, </span></td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">DWORD</td> <td class="paramname"><span class="paramname"><em>processNameSize</em></span>&#160;)</td>
<td class="paramtype">size_t</td> <td class="paramname"><span class="paramname"><em>processNameSize</em></span>&#160;)</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00041">41</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="namespaceprocess__util_a4a258bf9fcaf9b1f5b6419f4e6a5d1e1_cgraph.png" border="0" usemap="#anamespaceprocess__util_a4a258bf9fcaf9b1f5b6419f4e6a5d1e1_cgraph" alt=""/></div>
<map name="anamespaceprocess__util_a4a258bf9fcaf9b1f5b6419f4e6a5d1e1_cgraph" id="anamespaceprocess__util_a4a258bf9fcaf9b1f5b6419f4e6a5d1e1_cgraph">
<area shape="rect" title=" " alt="" coords="5,5,202,31"/>
<area shape="rect" href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01" title=" " alt="" coords="250,5,412,31"/>
<area shape="poly" title=" " alt="" coords="202,16,234,16,234,21,202,21"/>
</map>
</div>
<p class="definition">Definition at line <a class="el" href="process__util_8h_source.html#l00038">38</a> of file <a class="el" href="process__util_8h_source.html">process_util.h</a>.</p>
</div>
</div>
@@ -139,6 +139,9 @@ Here is the call graph for this function:</div>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool process_util::is_wow_64 </td>
@@ -147,9 +150,51 @@ Here is the call graph for this function:</div>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00024">24</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="process__util_8h_source.html#l00009">9</a> of file <a class="el" href="process__util_8h_source.html">process_util.h</a>.</p>
</div>
</div>
<a id="af9bdd83e9c8262ef548737112964d2f9" name="af9bdd83e9c8262ef548737112964d2f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af9bdd83e9c8262ef548737112964d2f9">&#9670;&#160;</a></span>is_wow_64_by_pid()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool process_util::is_wow_64_by_pid </td>
<td>(</td>
<td class="paramtype">DWORD</td> <td class="paramname"><span class="paramname"><em>processID</em></span></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="process__util_8h_source.html#l00027">27</a> of file <a class="el" href="process__util_8h_source.html">process_util.h</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="namespaceprocess__util_af9bdd83e9c8262ef548737112964d2f9_cgraph.png" border="0" usemap="#anamespaceprocess__util_af9bdd83e9c8262ef548737112964d2f9_cgraph" alt=""/></div>
<map name="anamespaceprocess__util_af9bdd83e9c8262ef548737112964d2f9_cgraph" id="anamespaceprocess__util_af9bdd83e9c8262ef548737112964d2f9_cgraph">
<area shape="rect" title=" " alt="" coords="5,5,147,46"/>
<area shape="rect" href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01" title=" " alt="" coords="195,13,357,39"/>
<area shape="poly" title=" " alt="" coords="147,23,179,23,179,28,147,28"/>
</map>
</div>
</div>
</div>
@@ -158,6 +203,9 @@ Here is the call graph for this function:</div>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">size_t process_util::kill_suspicious </td>
@@ -166,9 +214,14 @@ Here is the call graph for this function:</div>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00075">75</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="process__util_8h_source.html#l00070">70</a> of file <a class="el" href="process__util_8h_source.html">process_util.h</a>.</p>
</div>
</div>
@@ -177,6 +230,9 @@ Here is the call graph for this function:</div>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">size_t process_util::suspend_suspicious </td>
@@ -185,9 +241,14 @@ Here is the call graph for this function:</div>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00062">62</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="process__util_8h_source.html#l00057">57</a> of file <a class="el" href="process__util_8h_source.html">process_util.h</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
@@ -1 +0,0 @@
19c651cca5df7fcbcbc837b3991cf2d0
Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

@@ -1,5 +1,5 @@
<map id="process_util::get_process_info" name="process_util::get_process_info">
<area shape="rect" id="Node000001" title=" " alt="" coords="5,5,202,31"/>
<area shape="rect" id="Node000002" href="$namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01" title=" " alt="" coords="250,5,412,31"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="202,16,234,16,234,21,202,21"/>
<map id="process_util::is_wow_64_by_pid" name="process_util::is_wow_64_by_pid">
<area shape="rect" id="Node000001" title=" " alt="" coords="5,5,147,46"/>
<area shape="rect" id="Node000002" href="$namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01" title=" " alt="" coords="195,13,357,39"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="147,23,179,23,179,28,147,28"/>
</map>
@@ -0,0 +1 @@
424898e1e52d0b64b8ad91699dfc28d2
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

+3 -3
View File
@@ -134,7 +134,7 @@ Functions</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00158">158</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00082">82</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
</div>
</div>
@@ -157,7 +157,7 @@ Functions</h2></td></tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00170">170</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00094">94</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
</div>
</div>
@@ -178,7 +178,7 @@ template&lt;typename TYPE_T &gt; </div>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00180">180</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
<p class="definition">Definition at line <a class="el" href="hh__scanner_8cpp_source.html#l00104">104</a> of file <a class="el" href="hh__scanner_8cpp_source.html">hh_scanner.cpp</a>.</p>
</div>
</div>
+1 -1
View File
@@ -188,7 +188,7 @@ $(function() { codefold.init(0); });
<div class="ttc" id="anamespacehhunter_1_1util_html_a0a7f83c9acd615ee401364757a03341e"><div class="ttname"><a href="namespacehhunter_1_1util.html#a0a7f83c9acd615ee401364757a03341e">hhunter::util::set_privilege</a></div><div class="ttdeci">BOOL set_privilege(HANDLE hToken, LPCTSTR Privilege, BOOL bEnablePrivilege)</div><div class="ttdef"><b>Definition</b> <a href="#l00011">process_privilege.cpp:11</a></div></div>
<div class="ttc" id="anamespacehhunter_1_1util_html_a71c3879cac544c11cb2391e6c030c347"><div class="ttname"><a href="namespacehhunter_1_1util.html#a71c3879cac544c11cb2391e6c030c347">hhunter::util::set_debug_privilege</a></div><div class="ttdeci">bool set_debug_privilege()</div><div class="ttdef"><b>Definition</b> <a href="#l00071">process_privilege.cpp:71</a></div></div>
<div class="ttc" id="anamespacehhunter_html"><div class="ttname"><a href="namespacehhunter.html">hhunter</a></div><div class="ttdef"><b>Definition</b> <a href="#l00005">process_privilege.cpp:5</a></div></div>
<div class="ttc" id="anamespaceutil_html"><div class="ttname"><a href="namespaceutil.html">util</a></div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00156">hh_scanner.cpp:156</a></div></div>
<div class="ttc" id="anamespaceutil_html"><div class="ttname"><a href="namespaceutil.html">util</a></div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00080">hh_scanner.cpp:80</a></div></div>
<div class="ttc" id="aprocess__privilege_8h_html"><div class="ttname"><a href="process__privilege_8h.html">process_privilege.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
+1 -1
View File
@@ -98,7 +98,7 @@ $(function() { codefold.init(0); });
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span>};</div>
<div class="ttc" id="anamespacehhunter_1_1util_html_a71c3879cac544c11cb2391e6c030c347"><div class="ttname"><a href="namespacehhunter_1_1util.html#a71c3879cac544c11cb2391e6c030c347">hhunter::util::set_debug_privilege</a></div><div class="ttdeci">bool set_debug_privilege()</div><div class="ttdef"><b>Definition</b> <a href="process__privilege_8cpp_source.html#l00071">process_privilege.cpp:71</a></div></div>
<div class="ttc" id="anamespacehhunter_html"><div class="ttname"><a href="namespacehhunter.html">hhunter</a></div><div class="ttdef"><b>Definition</b> <a href="process__privilege_8cpp_source.html#l00005">process_privilege.cpp:5</a></div></div>
<div class="ttc" id="anamespaceutil_html"><div class="ttname"><a href="namespaceutil.html">util</a></div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00156">hh_scanner.cpp:156</a></div></div>
<div class="ttc" id="anamespaceutil_html"><div class="ttname"><a href="namespaceutil.html">util</a></div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00080">hh_scanner.cpp:80</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
+115
View File
@@ -0,0 +1,115 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>HollowsHunter: util/process_util.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectlogo"><img alt="Logo" src="logo2_128.png"/></td>
<td id="projectalign">
<div id="projectname">HollowsHunter
</div>
<div id="projectbrief">Scans all running processes. Recognizes and dumps a variety of potentially malicious implants (replaced/implanted PEs, shellcodes, hooks, in-memory patches).</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_23ec12649285f9fabf3a6b7380226c28.html">util</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle"><div class="title">process_util.h File Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;windows.h&gt;</code><br />
<code>#include &lt;psapi.h&gt;</code><br />
</div>
<p><a href="process__util_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespaceprocess__util" id="r_namespaceprocess__util"><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess__util.html">process_util</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a1550838f32323b66051e0d05a0acdb01" id="r_a1550838f32323b66051e0d05a0acdb01"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01">process_util::is_wow_64</a> (HANDLE process)</td></tr>
<tr class="separator:a1550838f32323b66051e0d05a0acdb01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9bdd83e9c8262ef548737112964d2f9" id="r_af9bdd83e9c8262ef548737112964d2f9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess__util.html#af9bdd83e9c8262ef548737112964d2f9">process_util::is_wow_64_by_pid</a> (DWORD processID)</td></tr>
<tr class="separator:af9bdd83e9c8262ef548737112964d2f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade4964469f029a4d858bf5fb77893815" id="r_ade4964469f029a4d858bf5fb77893815"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess__util.html#ade4964469f029a4d858bf5fb77893815">process_util::get_process_name</a> (DWORD processID, bool &amp;isWow64, WCHAR *szProcessName, size_t processNameSize)</td></tr>
<tr class="separator:ade4964469f029a4d858bf5fb77893815"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9edce70fe41a8ec91d549fb9d71a3b10" id="r_a9edce70fe41a8ec91d549fb9d71a3b10"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess__util.html#a9edce70fe41a8ec91d549fb9d71a3b10">process_util::suspend_suspicious</a> (std::vector&lt; DWORD &gt; &amp;suspicious_pids)</td></tr>
<tr class="separator:a9edce70fe41a8ec91d549fb9d71a3b10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8765675543bcce40dec2c3207d76ce9" id="r_ad8765675543bcce40dec2c3207d76ce9"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess__util.html#ad8765675543bcce40dec2c3207d76ce9">process_util::kill_suspicious</a> (std::vector&lt; DWORD &gt; &amp;suspicious_pids)</td></tr>
<tr class="separator:ad8765675543bcce40dec2c3207d76ce9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0
</small></address>
</body>
</html>
+205
View File
@@ -0,0 +1,205 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>HollowsHunter: util/process_util.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectlogo"><img alt="Logo" src="logo2_128.png"/></td>
<td id="projectalign">
<div id="projectname">HollowsHunter
</div>
<div id="projectbrief">Scans all running processes. Recognizes and dumps a variety of potentially malicious implants (replaced/implanted PEs, shellcodes, hooks, in-memory patches).</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_23ec12649285f9fabf3a6b7380226c28.html">util</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">process_util.h</div></div>
</div><!--header-->
<div class="contents">
<a href="process__util_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span> </div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="preprocessor">#include &lt;windows.h&gt;</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include &lt;psapi.h&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span> </div>
<div class="foldopen" id="foldopen00006" data-start="{" data-end="}">
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"><a class="line" href="namespaceprocess__util.html"> 6</a></span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceprocess__util.html">process_util</a> {</div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span> </div>
<div class="foldopen" id="foldopen00009" data-start="{" data-end="}">
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"><a class="line" href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01"> 9</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01">is_wow_64</a>(HANDLE process)</div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> {</div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> FARPROC procPtr = GetProcAddress(GetModuleHandleA(<span class="stringliteral">&quot;kernel32&quot;</span>), <span class="stringliteral">&quot;IsWow64Process&quot;</span>);</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> <span class="keywordflow">if</span> (!procPtr) {</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> <span class="comment">//this system does not have a function IsWow64Process</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> }</div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> BOOL(WINAPI * is_process_wow64)(IN HANDLE, OUT PBOOL)</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> = (BOOL(WINAPI*)(IN HANDLE, OUT PBOOL))procPtr;</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> BOOL isCurrWow64 = FALSE;</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> <span class="keywordflow">if</span> (!is_process_wow64(process, &amp;isCurrWow64)) {</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> }</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> <span class="keywordflow">return</span> isCurrWow64 ? true : <span class="keyword">false</span>;</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> }</div>
</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> </div>
<div class="foldopen" id="foldopen00027" data-start="{" data-end="}">
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="namespaceprocess__util.html#af9bdd83e9c8262ef548737112964d2f9"> 27</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceprocess__util.html#af9bdd83e9c8262ef548737112964d2f9">is_wow_64_by_pid</a>(DWORD processID)</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> {</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> HANDLE hProcess = OpenProcess(PROCESS_QUERY_INFORMATION, FALSE, processID);</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="keywordflow">if</span> (!hProcess) {</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> hProcess = OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, FALSE, processID);</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <span class="keywordflow">if</span> (!hProcess) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> }</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> <span class="keywordflow">return</span> <a class="code hl_function" href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01">is_wow_64</a>(hProcess);</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> }</div>
</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> </div>
<div class="foldopen" id="foldopen00038" data-start="{" data-end="}">
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="namespaceprocess__util.html#ade4964469f029a4d858bf5fb77893815"> 38</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="namespaceprocess__util.html#ade4964469f029a4d858bf5fb77893815">get_process_name</a>(DWORD processID, <span class="keywordtype">bool</span>&amp; isWow64, WCHAR* szProcessName, <span class="keywordtype">size_t</span> processNameSize)</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> {</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <span class="keywordflow">if</span> (!szProcessName || !processNameSize) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> HANDLE hProcess = OpenProcess(PROCESS_QUERY_INFORMATION, FALSE, processID);</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <span class="keywordflow">if</span> (!hProcess) {</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> hProcess = OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, FALSE, processID);</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keywordflow">if</span> (!hProcess) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> }</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> DWORD exeNameSize = processNameSize;</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> BOOL isOK = QueryFullProcessImageNameW(hProcess, 0, szProcessName, &amp;exeNameSize);</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> CloseHandle(hProcess);</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <span class="keywordflow">if</span> (!isOK || !exeNameSize) {</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> }</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> }</div>
</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> </div>
<div class="foldopen" id="foldopen00057" data-start="{" data-end="}">
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="namespaceprocess__util.html#a9edce70fe41a8ec91d549fb9d71a3b10"> 57</a></span> <span class="keyword">inline</span> <span class="keywordtype">size_t</span> <a class="code hl_function" href="namespaceprocess__util.html#a9edce70fe41a8ec91d549fb9d71a3b10">suspend_suspicious</a>(std::vector&lt;DWORD&gt;&amp; suspicious_pids)</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> {</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <span class="keywordtype">size_t</span> done = 0;</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> std::vector&lt;DWORD&gt;::iterator itr;</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <span class="keywordflow">for</span> (itr = suspicious_pids.begin(); itr != suspicious_pids.end(); ++itr) {</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> DWORD pid = *itr;</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <span class="keywordflow">if</span> (!<a class="code hl_function" href="suspend_8cpp.html#a3c63f252433e6e7532e441ed5cacca9d">suspend_process</a>(pid)) {</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> std::cerr &lt;&lt; <span class="stringliteral">&quot;Could not suspend the process. PID = &quot;</span> &lt;&lt; pid &lt;&lt; std::endl;</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> }</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> }</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <span class="keywordflow">return</span> done;</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> }</div>
</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> </div>
<div class="foldopen" id="foldopen00070" data-start="{" data-end="}">
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="namespaceprocess__util.html#ad8765675543bcce40dec2c3207d76ce9"> 70</a></span> <span class="keyword">inline</span> <span class="keywordtype">size_t</span> <a class="code hl_function" href="namespaceprocess__util.html#ad8765675543bcce40dec2c3207d76ce9">kill_suspicious</a>(std::vector&lt;DWORD&gt;&amp; suspicious_pids)</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> {</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <span class="keywordtype">size_t</span> killed = 0;</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> std::vector&lt;DWORD&gt;::iterator itr;</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="keywordflow">for</span> (itr = suspicious_pids.begin(); itr != suspicious_pids.end(); ++itr) {</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> DWORD pid = *itr;</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> HANDLE hProcess = OpenProcess(PROCESS_TERMINATE, FALSE, pid);</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="keywordflow">if</span> (!hProcess) {</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="keywordflow">continue</span>;</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> }</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <span class="keywordflow">if</span> (TerminateProcess(hProcess, 0)) {</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> killed++;</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> }</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> std::cerr &lt;&lt; <span class="stringliteral">&quot;Could not terminate the process. PID = &quot;</span> &lt;&lt; pid &lt;&lt; std::endl;</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> }</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> CloseHandle(hProcess);</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> }</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <span class="keywordflow">return</span> killed;</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> }</div>
</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> </div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span>}; <span class="comment">// namespace process_util</span></div>
</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> </div>
<div class="ttc" id="anamespaceprocess__util_html"><div class="ttname"><a href="namespaceprocess__util.html">process_util</a></div><div class="ttdef"><b>Definition</b> <a href="#l00006">process_util.h:6</a></div></div>
<div class="ttc" id="anamespaceprocess__util_html_a1550838f32323b66051e0d05a0acdb01"><div class="ttname"><a href="namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01">process_util::is_wow_64</a></div><div class="ttdeci">bool is_wow_64(HANDLE process)</div><div class="ttdef"><b>Definition</b> <a href="#l00009">process_util.h:9</a></div></div>
<div class="ttc" id="anamespaceprocess__util_html_a9edce70fe41a8ec91d549fb9d71a3b10"><div class="ttname"><a href="namespaceprocess__util.html#a9edce70fe41a8ec91d549fb9d71a3b10">process_util::suspend_suspicious</a></div><div class="ttdeci">size_t suspend_suspicious(std::vector&lt; DWORD &gt; &amp;suspicious_pids)</div><div class="ttdef"><b>Definition</b> <a href="#l00057">process_util.h:57</a></div></div>
<div class="ttc" id="anamespaceprocess__util_html_ad8765675543bcce40dec2c3207d76ce9"><div class="ttname"><a href="namespaceprocess__util.html#ad8765675543bcce40dec2c3207d76ce9">process_util::kill_suspicious</a></div><div class="ttdeci">size_t kill_suspicious(std::vector&lt; DWORD &gt; &amp;suspicious_pids)</div><div class="ttdef"><b>Definition</b> <a href="#l00070">process_util.h:70</a></div></div>
<div class="ttc" id="anamespaceprocess__util_html_ade4964469f029a4d858bf5fb77893815"><div class="ttname"><a href="namespaceprocess__util.html#ade4964469f029a4d858bf5fb77893815">process_util::get_process_name</a></div><div class="ttdeci">bool get_process_name(DWORD processID, bool &amp;isWow64, WCHAR *szProcessName, size_t processNameSize)</div><div class="ttdef"><b>Definition</b> <a href="#l00038">process_util.h:38</a></div></div>
<div class="ttc" id="anamespaceprocess__util_html_af9bdd83e9c8262ef548737112964d2f9"><div class="ttname"><a href="namespaceprocess__util.html#af9bdd83e9c8262ef548737112964d2f9">process_util::is_wow_64_by_pid</a></div><div class="ttdeci">bool is_wow_64_by_pid(DWORD processID)</div><div class="ttdef"><b>Definition</b> <a href="#l00027">process_util.h:27</a></div></div>
<div class="ttc" id="asuspend_8cpp_html_a3c63f252433e6e7532e441ed5cacca9d"><div class="ttname"><a href="suspend_8cpp.html#a3c63f252433e6e7532e441ed5cacca9d">suspend_process</a></div><div class="ttdeci">bool suspend_process(DWORD processId)</div><div class="ttdef"><b>Definition</b> <a href="suspend_8cpp_source.html#l00007">suspend.cpp:7</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0
</small></address>
</body>
</html>
+1 -1
View File
@@ -3,7 +3,7 @@ var searchData=
['g_5fhh_5fargs_0',['g_hh_args',['../hh__scanner_8h.html#a316fb776978a9d4b668b2ff824c7d781',1,'g_hh_args:&#160;main.cpp'],['../main_8cpp.html#a316fb776978a9d4b668b2ff824c7d781',1,'g_hh_args:&#160;main.cpp']]],
['get_5fbg_5fcolor_1',['GET_BG_COLOR',['../term__util_8h.html#adc380188dbfb7af8f9a5899776d08745',1,'term_util.h']]],
['get_5fcurrent_5fcolor_2',['get_current_color',['../term__util_8cpp.html#aff4c0279a81f579add3c3b1e9f208ee9',1,'get_current_color(int descriptor, WORD &amp;color):&#160;term_util.cpp'],['../term__util_8h.html#aff4c0279a81f579add3c3b1e9f208ee9',1,'get_current_color(int descriptor, WORD &amp;color):&#160;term_util.cpp']]],
['get_5fprocess_5finfo_3',['get_process_info',['../namespaceprocess__util.html#a4a258bf9fcaf9b1f5b6419f4e6a5d1e1',1,'process_util']]],
['get_5fprocess_5fname_3',['get_process_name',['../namespaceprocess__util.html#ade4964469f029a4d858bf5fb77893815',1,'process_util']]],
['getparentprocessid_4',['GetParentProcessID',['../suspend_8cpp.html#a6844401d82ea5410225fae1dd2f33365',1,'GetParentProcessID(DWORD dwPID):&#160;suspend.cpp'],['../suspend_8h.html#a6844401d82ea5410225fae1dd2f33365',1,'GetParentProcessID(DWORD dwPID):&#160;suspend.cpp']]],
['getscantime_5',['getScanTime',['../class_h_h_scan_report.html#ae662be540e84fe79516c5fc79c6d9999',1,'HHScanReport']]],
['gray_6',['GRAY',['../term__util_8h.html#ae5f70677050eecd8909e0248e07b9e73',1,'term_util.h']]]
+5 -4
View File
@@ -14,8 +14,9 @@ var searchData=
['is_5fstring_5fsimilar_11',['is_string_similar',['../namespacehhunter_1_1util.html#a7a7446ea8ee879e8552808e83017f81a',1,'hhunter::util']]],
['is_5fsuspicious_5fprocess_12',['is_suspicious_process',['../hh__report_8cpp.html#a658a84d039df1c8c4f7555a7f5de2e14',1,'hh_report.cpp']]],
['is_5fwow_5f64_13',['is_wow_64',['../namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01',1,'process_util']]],
['isallocationexecutable_14',['isAllocationExecutable',['../etw__listener_8cpp.html#ac682b8c5125d08564536a196179fcc02',1,'etw_listener.cpp']]],
['iscooldown_15',['isCooldown',['../etw__listener_8cpp.html#a4c138864a2017d6e176c70333bc97d8a',1,'etw_listener.cpp']]],
['isscannercompatibile_16',['isScannerCompatibile',['../class_h_h_scanner.html#adec367c7541ba8e334c7f674e57f429a',1,'HHScanner']]],
['isscannerwow64_17',['isScannerWow64',['../class_h_h_scanner.html#a64bb7d15ea59c9fe7e25f266e05005b9',1,'HHScanner']]]
['is_5fwow_5f64_5fby_5fpid_14',['is_wow_64_by_pid',['../namespaceprocess__util.html#af9bdd83e9c8262ef548737112964d2f9',1,'process_util']]],
['isallocationexecutable_15',['isAllocationExecutable',['../etw__listener_8cpp.html#ac682b8c5125d08564536a196179fcc02',1,'etw_listener.cpp']]],
['iscooldown_16',['isCooldown',['../etw__listener_8cpp.html#a4c138864a2017d6e176c70333bc97d8a',1,'etw_listener.cpp']]],
['isscannercompatibile_17',['isScannerCompatibile',['../class_h_h_scanner.html#adec367c7541ba8e334c7f674e57f429a',1,'HHScanner']]],
['isscannerwow64_18',['isScannerWow64',['../class_h_h_scanner.html#a64bb7d15ea59c9fe7e25f266e05005b9',1,'HHScanner']]]
];
+2 -1
View File
@@ -48,5 +48,6 @@ var searchData=
['process_5fprivilege_2eh_45',['process_privilege.h',['../process__privilege_8h.html',1,'']]],
['process_5fstart_5ftime_46',['process_start_time',['../namespaceutil.html#a1b58bbd7118af7892e3926017211542b',1,'util']]],
['process_5futil_47',['process_util',['../namespaceprocess__util.html',1,'']]],
['ptimes_48',['ptimes',['../structhh__params.html#aeaa430eb92a01d64b063bc3537ceb4c8',1,'hh_params']]]
['process_5futil_2eh_48',['process_util.h',['../process__util_8h.html',1,'']]],
['ptimes_49',['ptimes',['../structhh__params.html#aeaa430eb92a01d64b063bc3537ceb4c8',1,'hh_params']]]
];
+2 -1
View File
@@ -4,5 +4,6 @@ var searchData=
['pe_5fsieve_5fparams_5finfo_2ecpp_1',['pe_sieve_params_info.cpp',['../pe__sieve__params__info_8cpp.html',1,'']]],
['pe_5fsieve_5fparams_5finfo_2eh_2',['pe_sieve_params_info.h',['../pe__sieve__params__info_8h.html',1,'']]],
['process_5fprivilege_2ecpp_3',['process_privilege.cpp',['../process__privilege_8cpp.html',1,'']]],
['process_5fprivilege_2eh_4',['process_privilege.h',['../process__privilege_8h.html',1,'']]]
['process_5fprivilege_2eh_4',['process_privilege.h',['../process__privilege_8h.html',1,'']]],
['process_5futil_2eh_5',['process_util.h',['../process__util_8h.html',1,'']]]
];
+1 -1
View File
@@ -1,7 +1,7 @@
var searchData=
[
['get_5fcurrent_5fcolor_0',['get_current_color',['../term__util_8cpp.html#aff4c0279a81f579add3c3b1e9f208ee9',1,'get_current_color(int descriptor, WORD &amp;color):&#160;term_util.cpp'],['../term__util_8h.html#aff4c0279a81f579add3c3b1e9f208ee9',1,'get_current_color(int descriptor, WORD &amp;color):&#160;term_util.cpp']]],
['get_5fprocess_5finfo_1',['get_process_info',['../namespaceprocess__util.html#a4a258bf9fcaf9b1f5b6419f4e6a5d1e1',1,'process_util']]],
['get_5fprocess_5fname_1',['get_process_name',['../namespaceprocess__util.html#ade4964469f029a4d858bf5fb77893815',1,'process_util']]],
['getparentprocessid_2',['GetParentProcessID',['../suspend_8cpp.html#a6844401d82ea5410225fae1dd2f33365',1,'GetParentProcessID(DWORD dwPID):&#160;suspend.cpp'],['../suspend_8h.html#a6844401d82ea5410225fae1dd2f33365',1,'GetParentProcessID(DWORD dwPID):&#160;suspend.cpp']]],
['getscantime_3',['getScanTime',['../class_h_h_scan_report.html#ae662be540e84fe79516c5fc79c6d9999',1,'HHScanReport']]]
];
+4 -3
View File
@@ -10,7 +10,8 @@ var searchData=
['is_5fstring_5fsimilar_7',['is_string_similar',['../namespacehhunter_1_1util.html#a7a7446ea8ee879e8552808e83017f81a',1,'hhunter::util']]],
['is_5fsuspicious_5fprocess_8',['is_suspicious_process',['../hh__report_8cpp.html#a658a84d039df1c8c4f7555a7f5de2e14',1,'hh_report.cpp']]],
['is_5fwow_5f64_9',['is_wow_64',['../namespaceprocess__util.html#a1550838f32323b66051e0d05a0acdb01',1,'process_util']]],
['isallocationexecutable_10',['isAllocationExecutable',['../etw__listener_8cpp.html#ac682b8c5125d08564536a196179fcc02',1,'etw_listener.cpp']]],
['iscooldown_11',['isCooldown',['../etw__listener_8cpp.html#a4c138864a2017d6e176c70333bc97d8a',1,'etw_listener.cpp']]],
['isscannercompatibile_12',['isScannerCompatibile',['../class_h_h_scanner.html#adec367c7541ba8e334c7f674e57f429a',1,'HHScanner']]]
['is_5fwow_5f64_5fby_5fpid_10',['is_wow_64_by_pid',['../namespaceprocess__util.html#af9bdd83e9c8262ef548737112964d2f9',1,'process_util']]],
['isallocationexecutable_11',['isAllocationExecutable',['../etw__listener_8cpp.html#ac682b8c5125d08564536a196179fcc02',1,'etw_listener.cpp']]],
['iscooldown_12',['isCooldown',['../etw__listener_8cpp.html#a4c138864a2017d6e176c70333bc97d8a',1,'etw_listener.cpp']]],
['isscannercompatibile_13',['isScannerCompatibile',['../class_h_h_scanner.html#adec367c7541ba8e334c7f674e57f429a',1,'HHScanner']]]
];
+1 -1
View File
@@ -127,7 +127,7 @@ $(function() { codefold.init(0); });
<div class="ttc" id="anamespacehhunter_1_1util_html_ae165f6b8c8a8d721f1eb9f8417f352b1a865e6bacc38d8dd82b7f31ade82ccf29"><div class="ttname"><a href="namespacehhunter_1_1util.html#ae165f6b8c8a8d721f1eb9f8417f352b1a865e6bacc38d8dd82b7f31ade82ccf29">hhunter::util::SIM_HIST</a></div><div class="ttdeci">@ SIM_HIST</div><div class="ttdef"><b>Definition</b> <a href="#l00014">strings_util.h:13</a></div></div>
<div class="ttc" id="anamespacehhunter_1_1util_html_ae165f6b8c8a8d721f1eb9f8417f352b1af0372598448cd21f33d77b8fa9c12641"><div class="ttname"><a href="namespacehhunter_1_1util.html#ae165f6b8c8a8d721f1eb9f8417f352b1af0372598448cd21f33d77b8fa9c12641">hhunter::util::SIM_SUBSTR</a></div><div class="ttdeci">@ SIM_SUBSTR</div><div class="ttdef"><b>Definition</b> <a href="#l00011">strings_util.h:11</a></div></div>
<div class="ttc" id="anamespacehhunter_html"><div class="ttname"><a href="namespacehhunter.html">hhunter</a></div><div class="ttdef"><b>Definition</b> <a href="process__privilege_8cpp_source.html#l00005">process_privilege.cpp:5</a></div></div>
<div class="ttc" id="anamespaceutil_html"><div class="ttname"><a href="namespaceutil.html">util</a></div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00156">hh_scanner.cpp:156</a></div></div>
<div class="ttc" id="anamespaceutil_html"><div class="ttname"><a href="namespaceutil.html">util</a></div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00080">hh_scanner.cpp:80</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
+1 -1
View File
@@ -101,7 +101,7 @@ $(function() { codefold.init(0); });
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> LONGLONG <a class="code hl_function" href="namespaceutil.html#a1b58bbd7118af7892e3926017211542b">process_start_time</a>(DWORD processID);</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span>};</div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> </div>
<div class="ttc" id="anamespaceutil_html"><div class="ttname"><a href="namespaceutil.html">util</a></div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00156">hh_scanner.cpp:156</a></div></div>
<div class="ttc" id="anamespaceutil_html"><div class="ttname"><a href="namespaceutil.html">util</a></div><div class="ttdef"><b>Definition</b> <a href="hh__scanner_8cpp_source.html#l00080">hh_scanner.cpp:80</a></div></div>
<div class="ttc" id="anamespaceutil_html_a1b58bbd7118af7892e3926017211542b"><div class="ttname"><a href="namespaceutil.html#a1b58bbd7118af7892e3926017211542b">util::process_start_time</a></div><div class="ttdeci">LONGLONG process_start_time(DWORD processID)</div><div class="ttdef"><b>Definition</b> <a href="time__util_8cpp_source.html#l00042">time_util.cpp:42</a></div></div>
<div class="ttc" id="anamespaceutil_html_a60893a3cb25d9aff16347e26b602141b"><div class="ttname"><a href="namespaceutil.html#a60893a3cb25d9aff16347e26b602141b">util::FileTime_to_POSIX</a></div><div class="ttdeci">LONGLONG FileTime_to_POSIX(FILETIME ft)</div><div class="ttdef"><b>Definition</b> <a href="time__util_8cpp_source.html#l00025">time_util.cpp:25</a></div></div>
<div class="ttc" id="anamespaceutil_html_a928be58496639689a6a86142ab7030eb"><div class="ttname"><a href="namespaceutil.html#a928be58496639689a6a86142ab7030eb">util::strtime</a></div><div class="ttdeci">std::wstring strtime(const time_t t)</div><div class="ttdef"><b>Definition</b> <a href="time__util_8cpp_source.html#l00012">time_util.cpp:12</a></div></div>