From ef7127e9715147094e39e27edb0143aaecff695b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 13 Aug 2018 11:51:22 +0300 Subject: Variables: - plugin's own hash implementation replaced with the core function; - unused header dbhelpers.h removed; - code cleaning --- plugins/Variables/src/enumprocs.cpp | 45 +++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 24 deletions(-) (limited to 'plugins/Variables/src/enumprocs.cpp') diff --git a/plugins/Variables/src/enumprocs.cpp b/plugins/Variables/src/enumprocs.cpp index be34fab55f..ebe665c817 100644 --- a/plugins/Variables/src/enumprocs.cpp +++ b/plugins/Variables/src/enumprocs.cpp @@ -1,34 +1,31 @@ /* - Variables Plugin for Miranda-IM (www.miranda-im.org) - Copyright 2003-2006 P. Boon + Variables Plugin for Miranda-IM (www.miranda-im.org) + Copyright 2003-2006 P. Boon - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -// This file has been copied from msdn.microsoft.com -// -// EnumProc.c -// #include "stdafx.h" -typedef struct { +struct EnumInfoStruct +{ DWORD dwPID; PROCENUMPROC lpProc; DWORD lParam; BOOL bEnd; -} EnumInfoStruct; +}; // The EnumProcs function takes a pointer to a callback function // that will be called once per process with the process filename @@ -68,11 +65,11 @@ BOOL WINAPI EnumProcs(PROCENUMPROC lpProc, LPARAM lParam) procentry.dwSize = sizeof(PROCESSENTRY32); bFlag = Process32Next(hSnapShot, &procentry); - } else - bFlag = FALSE; + } + else bFlag = FALSE; } - } else - return FALSE; + } + else return FALSE; return TRUE; -} \ No newline at end of file +} -- cgit v1.2.3