Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/skype4pidgin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEion Robb <eion@robbmob.com>2008-01-28 13:09:43 +0300
committerEion Robb <eion@robbmob.com>2008-01-28 13:09:43 +0300
commit53dce3e812c63a618bc43c7348c6625692becd88 (patch)
tree1e92c8a46937f15460e5fd50288c981e3cc3af99 /skype_messaging_win32.c
parent90112d70c6f1ea67549dfc7aa27391bb9a5db273 (diff)
Trying to work out if the Skype.exe process belongs to the current user
Diffstat (limited to 'skype_messaging_win32.c')
-rw-r--r--skype_messaging_win32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/skype_messaging_win32.c b/skype_messaging_win32.c
index 993362e..cde53fe 100644
--- a/skype_messaging_win32.c
+++ b/skype_messaging_win32.c
@@ -172,12 +172,14 @@ static gboolean
is_skype_running()
{
HANDLE snapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
+ HANDLE temp = NULL;
PROCESSENTRY32 entry;
entry.dwSize = sizeof(PROCESSENTRY32);
Process32First(snapshot, &entry);
do {
if (strcmp("Skype.exe", entry.szExeFile) == 0)
{
+ temp = OpenProcess(PROCESS_ALL_ACCESS, FALSE, entry.th32ProcessID);
CloseHandle(snapshot);
return TRUE;
}