Get rid of the redefinition of MAX_PATH and move PROCESSENTRY32

definition to toolhelp.h.
This commit is contained in:
Huw D M Davies 1998-11-01 19:23:52 +00:00 committed by Alexandre Julliard
parent 7df1fbb3df
commit d0421889c8
3 changed files with 26 additions and 26 deletions

View File

@ -362,4 +362,27 @@ typedef struct {
#pragma pack(4)
/*
* Process Entry list as created by CreateToolHelp32Snapshot
*/
typedef struct tagPROCESSENTRY32 {
DWORD dwSize;
DWORD cntUsage;
DWORD th32ProcessID;
DWORD th32DefaultHeapID;
DWORD th32ModuleID;
DWORD cntThreads;
DWORD th32ParentProcessID;
LONG pcPriClassBase;
DWORD dwFlags;
char szExeFile[MAX_PATH];
} PROCESSENTRY32;
typedef PROCESSENTRY32 * PPROCESSENTRY32;
typedef PROCESSENTRY32 * LPPROCESSENTRY32;
BOOL32 WINAPI Process32First(HANDLE32,LPPROCESSENTRY32);
BOOL32 WINAPI Process32Next(HANDLE32,LPPROCESSENTRY32);
#endif /* __WINE_TOOLHELP_H */

View File

@ -5445,28 +5445,6 @@ typedef struct {
#define TIME_ZONE_ID_STANDARD 1
#define TIME_ZONE_ID_DAYLIGHT 2
/*
* Process Entry list as created by CreateToolHelp32Snapshot
*/
#ifndef MAX_PATH
#define MAX_PATH 260
#endif
typedef struct tagPROCESSENTRY32 {
DWORD dwSize;
DWORD cntUsage;
DWORD th32ProcessID;
DWORD th32DefaultHeapID;
DWORD th32ModuleID;
DWORD cntThreads;
DWORD th32ParentProcessID;
LONG pcPriClassBase;
DWORD dwFlags;
char szExeFile[MAX_PATH];
} PROCESSENTRY32;
typedef PROCESSENTRY32 * PPROCESSENTRY32;
typedef PROCESSENTRY32 * LPPROCESSENTRY32;
/* CreateProcess: dwCreationFlag values
*/
#define DEBUG_PROCESS 0x00000001
@ -6980,8 +6958,6 @@ 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);

View File

@ -22,6 +22,7 @@
#include "task.h"
#include "server.h"
#include "debug.h"
#include "toolhelp.h"
static BOOL32 PROCESS_Signaled( K32OBJ *obj, DWORD thread_id );
static BOOL32 PROCESS_Satisfied( K32OBJ *obj, DWORD thread_id );
@ -905,14 +906,14 @@ void PROCESS_ResumeOtherThreads(void)
BOOL32 WINAPI Process32First(HANDLE32 hSnapshot, LPPROCESSENTRY32 lppe)
{
FIXME (process, "(0x%08lx,0x%08lx), stub!\n", hSnapshot, lppe);
FIXME (process, "(0x%08x,%p), 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);
FIXME (process, "(0x%08x,%p), stub!\n", hSnapshot, lppe);
SetLastError (ERROR_NO_MORE_FILES);
return FALSE;
}