summaryrefslogtreecommitdiff
path: root/plugins/ConnectionNotify/src/pid2name.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ConnectionNotify/src/pid2name.cpp')
-rw-r--r--plugins/ConnectionNotify/src/pid2name.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/plugins/ConnectionNotify/src/pid2name.cpp b/plugins/ConnectionNotify/src/pid2name.cpp
index 46c51202c7..e3365a574f 100644
--- a/plugins/ConnectionNotify/src/pid2name.cpp
+++ b/plugins/ConnectionNotify/src/pid2name.cpp
@@ -1,12 +1,4 @@
-#include <Windows.h>
-// one can also use Winternl.h if needed
-//#include <Winternl.h> // for UNICODE_STRING and SYSTEM_INFORMATION_CLASS
-#include <stdio.h>
-#include <tchar.h>
-//#include <stdlib.h>
-
-#include <Tlhelp32.h>
-#include "pid2name.h"
+#include "ConnectionNotify.h"
void pid2name(DWORD procid,TCHAR* buffer)
{
@@ -23,7 +15,7 @@ void pid2name(DWORD procid,TCHAR* buffer)
{
if(ProcessStruct.th32ProcessID==procid)
{
- _stprintf(buffer,_T("%s"),ProcessStruct.szExeFile);
+ _stprintf(buffer,_T("%s"),ProcessStruct.szExeFile); //!!!!!!!!!!!!
break;
}
}