@@ -255,7 +255,7 @@ int main(int argc, char* argv[]) {
255255 return Error ("Could not load driver" );
256256 }
257257 else {
258- Success ("Driver loaded as %ws\n" , szServiceName );
258+ printf ("Driver loaded as %ws\n" , szServiceName );
259259 isRequestingDriverUnload = TRUE; // Set to unload the driver at the end of the operation
260260
261261 }
@@ -287,10 +287,10 @@ int main(int argc, char* argv[]) {
287287 {
288288 printf ("\n" );
289289 if (isUsingProcessName ) {
290- printf ("Process Name : %ws" , szProcessName );
290+ printf ("Process Name: %ws\n " , szProcessName );
291291 }
292292
293- printf ("[*] Process PID : %d\n" , dwPid );
293+ printf ("[*] Process PID: %d\n" , dwPid );
294294 if (!ProcessGetProtectionLevel (dwPid , & dwProcessProtectionLevel ))
295295 printf ("[!] Failed to get the protection level of process with PID %d\n" , dwPid );
296296 else
@@ -309,11 +309,13 @@ int main(int argc, char* argv[]) {
309309 else if (isRequestingProcessKill ) {
310310 Info ("Killing process\n" );
311311 KillProcessHandles (hProtectedProcess );
312+ Success ("Killing process succeeded" );
312313 }
313314 else if (isUsingSpecificHandle )
314315 {
315- Info ("Killing Handle : 0x%x\n" , strtol (szHandleToClose , 0 , 16 ));
316+ Info ("Closing Handle : 0x%x\n" , strtol (szHandleToClose , 0 , 16 ));
316317 ProcExpKillHandle (dwPid , strtol (szHandleToClose , 0 , 16 ));
318+ Success ("Closing handle succeeded" );
317319 }
318320 else {
319321 printf ("Please select an operation\n" );
0 commit comments