From: Filip Navara Date: Sat, 28 Aug 2004 22:06:02 +0000 (+0000) Subject: - Remove invalid code from CreateToolhelp32Snapshot. X-Git-Tag: backups/alex_2gb+hdrtests@12432~439 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=20ab7d6b270ad4a84506ff3f7d926761eb18cd4b - Remove invalid code from CreateToolhelp32Snapshot. svn path=/trunk/; revision=10721 --- diff --git a/reactos/lib/kernel32/misc/toolhelp.c b/reactos/lib/kernel32/misc/toolhelp.c index fa8bc732298..73751eac262 100644 --- a/reactos/lib/kernel32/misc/toolhelp.c +++ b/reactos/lib/kernel32/misc/toolhelp.c @@ -1,4 +1,4 @@ -/* $Id: toolhelp.c,v 1.3 2003/07/10 18:50:51 chorns Exp $ +/* $Id: toolhelp.c,v 1.4 2004/08/28 22:06:02 navaraf Exp $ * * KERNEL32.DLL toolhelp functions * @@ -283,41 +283,14 @@ Toolhelp32ReadProcessMemory(DWORD th32ProcessID, } -#define TL_DEV_NAME L"\\??\\TlHelpDevice" - /* * @unimplemented */ HANDLE STDCALL CreateToolhelp32Snapshot(DWORD dwFlags, DWORD th32ProcessID) { - // return open handle to snapshot on success, -1 on failure - // the snapshot handle behavies like an object handle - SECURITY_ATTRIBUTES sa; - HANDLE hSnapshot = (HANDLE)-1; - - sa.nLength = sizeof(SECURITY_ATTRIBUTES); - - if (dwFlags & TH32CS_INHERIT) { - } - if (dwFlags & TH32CS_SNAPHEAPLIST) { - } - if (dwFlags & TH32CS_SNAPMODULE) { - } - if (dwFlags & TH32CS_SNAPPROCESS) { - } - if (dwFlags & TH32CS_SNAPTHREAD) { - } - hSnapshot = CreateFileW(TL_DEV_NAME, - GENERIC_READ, FILE_SHARE_READ + FILE_SHARE_WRITE, - &sa, OPEN_EXISTING, 0L/*FILE_ATTRIBUTE_SYSTEM*/, 0); - if (hSnapshot != INVALID_HANDLE_VALUE) { - - } SetLastError(ERROR_CALL_NOT_IMPLEMENTED); - - // caller must use CloseHandle to destroy the returned snapshot handle - return hSnapshot; + return INVALID_HANDLE_VALUE; }