From 7701dea1cd450fd4f8ed936d39304b337898bdc1 Mon Sep 17 00:00:00 2001 From: Geoff Thorpe Date: Thu, 11 Sep 2003 03:00:11 +0000 Subject: [PATCH] Added a stub for Heap32ListFirst. --- dlls/kernel/kernel32.spec | 2 +- dlls/kernel/toolhelp.c | 10 ++++++++++ include/tlhelp32.h | 9 +++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/dlls/kernel/kernel32.spec b/dlls/kernel/kernel32.spec index 74e7bbafb78..68f73847b78 100644 --- a/dlls/kernel/kernel32.spec +++ b/dlls/kernel/kernel32.spec @@ -541,7 +541,7 @@ @ stdcall GlobalUnlock(long) @ stdcall GlobalWire(long) @ stub Heap32First -@ stub Heap32ListFirst +@ stdcall Heap32ListFirst(long ptr) @ stub Heap32ListNext @ stub Heap32Next @ stdcall HeapAlloc(long long long) ntdll.RtlAllocateHeap diff --git a/dlls/kernel/toolhelp.c b/dlls/kernel/toolhelp.c index 5ebe626ff6c..b1eb44bcd73 100644 --- a/dlls/kernel/toolhelp.c +++ b/dlls/kernel/toolhelp.c @@ -423,3 +423,13 @@ DWORD WINAPI GlobalMasterHandle16(void) FIXME(": stub\n"); return 0; } + +/************************************************************************ + * Heap32ListFirst (KERNEL.@) + * + */ +BOOL WINAPI Heap32ListFirst(HANDLE hSnapshot, LPHEAPLIST32 lphl) +{ + FIXME(": stub\n"); + return FALSE; +} diff --git a/include/tlhelp32.h b/include/tlhelp32.h index aceb6dc380d..3a6d5bda388 100644 --- a/include/tlhelp32.h +++ b/include/tlhelp32.h @@ -146,6 +146,15 @@ BOOL WINAPI Module32NextW(HANDLE,LPMODULEENTRY32W); #define LPMODULEENTRY32 LPMODULEENTRY32W #endif +typedef struct tagHEAPLIST32 { + SIZE_T dwSize; + DWORD th32ProcessID; + ULONG_PTR th32HeapID; + DWORD dwFlags; +} HEAPLIST32, *PHEAPLIST32, *LPHEAPLIST32; + +BOOL WINAPI Heap32ListFirst(HANDLE,LPHEAPLIST32); + #ifdef __cplusplus } /* extern "C" */ #endif