diff options
author | Eion Robb <eion@robbmob.com> | 2008-01-28 13:09:43 +0300 |
---|---|---|
committer | Eion Robb <eion@robbmob.com> | 2008-01-28 13:09:43 +0300 |
commit | 53dce3e812c63a618bc43c7348c6625692becd88 (patch) | |
tree | 1e92c8a46937f15460e5fd50288c981e3cc3af99 /skype_messaging_win32.c | |
parent | 90112d70c6f1ea67549dfc7aa27391bb9a5db273 (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.c | 2 |
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;
}
|