From 24ee6211103b9a83c9a37552654626f443b462b7 Mon Sep 17 00:00:00 2001 From: Patrick Spinler Date: Wed, 28 Oct 1998 14:20:19 +0000 Subject: [PATCH] Added stubs for Process32First/Process32Next. --- include/windows.h | 2 ++ relay32/kernel32.spec | 4 ++-- scheduler/process.c | 15 +++++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/include/windows.h b/include/windows.h index c07986e3192..24d74c2bb72 100644 --- a/include/windows.h +++ b/include/windows.h @@ -6980,6 +6980,8 @@ BOOL32 WINAPI PaintDesktop(HDC32); BOOL32 WINAPI PlayEnhMetaFile(HDC32,HENHMETAFILE32,const RECT32*); BOOL32 WINAPI PlayEnhMetaFileRecord(HDC32,LPHANDLETABLE32,const ENHMETARECORD*,UINT32); BOOL32 WINAPI PolyPolyline32(HDC32,const POINT32*,const DWORD*,DWORD); +BOOL32 WINAPI Process32First(HANDLE32,LPPROCESSENTRY32); +BOOL32 WINAPI Process32Next(HANDLE32,LPPROCESSENTRY32); BOOL32 WINAPI PulseEvent(HANDLE32); DWORD WINAPI QueryDosDevice32A(LPCSTR,LPSTR,DWORD); DWORD WINAPI QueryDosDevice32W(LPCWSTR,LPWSTR,DWORD); diff --git a/relay32/kernel32.spec b/relay32/kernel32.spec index d6e08fafed9..aedf5275fc5 100644 --- a/relay32/kernel32.spec +++ b/relay32/kernel32.spec @@ -569,8 +569,8 @@ type win32 552 stub PeekNamedPipe 553 stub PostQueuedCompletionStatus 554 stub PrepareTape -555 stub Process32First -556 stub Process32Next +555 stdcall Process32First (ptr ptr) Process32First +556 stdcall Process32Next (ptr ptr) Process32Next 557 stdcall PulseEvent(long) PulseEvent 558 stdcall PurgeComm(long long) PurgeComm 559 register QT_Thunk() QT_Thunk diff --git a/scheduler/process.c b/scheduler/process.c index fcb40f9fcf1..6d883a9e323 100644 --- a/scheduler/process.c +++ b/scheduler/process.c @@ -896,3 +896,18 @@ void PROCESS_ResumeOtherThreads(void) SYSTEM_UNLOCK(); } + +BOOL32 WINAPI Process32First(HANDLE32 hSnapshot, LPPROCESSENTRY32 lppe) +{ + FIXME (process, "(0x%08lx,0x%08lx), stub!\n", hSnapshot, lppe); + SetLastError (ERROR_NO_MORE_FILES); + return FALSE; +} + +BOOL32 WINAPI Process32Next(HANDLE32 hSnapshot, LPPROCESSENTRY32 lppe) +{ + FIXME (process, "(0x%08lx,0x%08lx), stub!\n", hSnapshot, lppe); + SetLastError (ERROR_NO_MORE_FILES); + return FALSE; +} +