File tree Expand file tree Collapse file tree 4 files changed +62
-0
lines changed Expand file tree Collapse file tree 4 files changed +62
-0
lines changed Original file line number Diff line number Diff line change @@ -577,6 +577,58 @@ public static bool CopySidCapsFile(BuildFlags Flags)
577
577
return true ;
578
578
}
579
579
580
+ public static bool CopyEtwTraceGuidsFile ( BuildFlags Flags )
581
+ {
582
+ //Program.PrintColorMessage("Copying ETW tracelog guids file...", ConsoleColor.Cyan);
583
+
584
+ try
585
+ {
586
+ if ( Flags . HasFlag ( BuildFlags . BuildDebug ) )
587
+ {
588
+ if ( Flags . HasFlag ( BuildFlags . Build32bit ) )
589
+ {
590
+ Win32 . CopyIfNewer (
591
+ "ProcessHacker\\ resources\\ etwguids.txt" ,
592
+ "bin\\ Debug32\\ etwguids.txt"
593
+ ) ;
594
+ }
595
+
596
+ if ( Flags . HasFlag ( BuildFlags . Build64bit ) )
597
+ {
598
+ Win32 . CopyIfNewer (
599
+ "ProcessHacker\\ resources\\ etwguids.txt" ,
600
+ "bin\\ Debug64\\ etwguids.txt"
601
+ ) ;
602
+ }
603
+ }
604
+ else
605
+ {
606
+ if ( Flags . HasFlag ( BuildFlags . Build32bit ) )
607
+ {
608
+ Win32 . CopyIfNewer (
609
+ "ProcessHacker\\ resources\\ etwguids.txt" ,
610
+ "bin\\ Release32\\ etwguids.txt"
611
+ ) ;
612
+ }
613
+
614
+ if ( Flags . HasFlag ( BuildFlags . Build64bit ) )
615
+ {
616
+ Win32 . CopyIfNewer (
617
+ "ProcessHacker\\ resources\\ etwguids.txt" ,
618
+ "bin\\ Release64\\ etwguids.txt"
619
+ ) ;
620
+ }
621
+ }
622
+ }
623
+ catch ( Exception ex )
624
+ {
625
+ Program . PrintColorMessage ( "[ERROR] " + ex , ConsoleColor . Red ) ;
626
+ return false ;
627
+ }
628
+
629
+ return true ;
630
+ }
631
+
580
632
public static bool FixupResourceHeader ( )
581
633
{
582
634
try
Original file line number Diff line number Diff line change @@ -103,6 +103,8 @@ public static void Main(string[] args)
103
103
return ;
104
104
if ( ! Build . CopySidCapsFile ( BuildFlags . Build32bit | BuildFlags . Build64bit | BuildFlags . BuildVerbose ) )
105
105
return ;
106
+ if ( ! Build . CopyEtwTraceGuidsFile ( BuildFlags . Build32bit | BuildFlags . Build64bit | BuildFlags . BuildVerbose ) )
107
+ return ;
106
108
107
109
if ( ! Build . BuildBinZip ( ) )
108
110
return ;
@@ -148,6 +150,10 @@ public static void Main(string[] args)
148
150
BuildFlags . Build32bit | BuildFlags . Build64bit |
149
151
BuildFlags . BuildDebug | BuildFlags . BuildVerbose ) )
150
152
return ;
153
+ if ( ! Build . CopyEtwTraceGuidsFile (
154
+ BuildFlags . Build32bit | BuildFlags . Build64bit |
155
+ BuildFlags . BuildDebug | BuildFlags . BuildVerbose ) )
156
+ return ;
151
157
152
158
Build . ShowBuildStats ( ) ;
153
159
}
@@ -177,6 +183,8 @@ public static void Main(string[] args)
177
183
Environment . Exit ( 1 ) ;
178
184
if ( ! Build . CopySidCapsFile ( BuildFlags . Build32bit | BuildFlags . Build64bit | BuildFlags . BuildVerbose ) )
179
185
Environment . Exit ( 1 ) ;
186
+ if ( ! Build . CopyEtwTraceGuidsFile ( BuildFlags . Build32bit | BuildFlags . Build64bit | BuildFlags . BuildVerbose ) )
187
+ Environment . Exit ( 1 ) ;
180
188
181
189
if ( ! Build . BuildBinZip ( ) )
182
190
Environment . Exit ( 1 ) ;
@@ -223,6 +231,8 @@ public static void Main(string[] args)
223
231
return ;
224
232
if ( ! Build . CopySidCapsFile ( BuildFlags . Build32bit | BuildFlags . Build64bit | BuildFlags . BuildVerbose ) )
225
233
return ;
234
+ if ( ! Build . CopyEtwTraceGuidsFile ( BuildFlags . Build32bit | BuildFlags . Build64bit | BuildFlags . BuildVerbose ) )
235
+ return ;
226
236
227
237
if ( ! Build . BuildBinZip ( ) )
228
238
return ;
You can’t perform that action at this time.
0 commit comments