Added Thread32First/Next stubs.

This commit is contained in:
Andreas Mohr 1999-12-05 23:11:10 +00:00 committed by Alexandre Julliard
parent 4e1cdab556
commit f4077e6623
3 changed files with 51 additions and 6 deletions

View File

@ -398,7 +398,26 @@ typedef struct {
#include "poppack.h" #include "poppack.h"
/* /*
* Process Entry list as created by CreateToolHelp32Snapshot * Thread entry list as created by CreateToolHelp32Snapshot
*/
typedef struct tagTHREADENTRY {
DWORD dwSize;
DWORD cntUsage;
DWORD th32ThreadID;
DWORD th32OwnerProcessID;
DWORD tbBasePri;
DWORD tbDeltaPri;
DWORD dwFlags;
DWORD th32AccessKey;
DWORD th32CurrentProcessID;
} THREADENTRY, *PTHREADENTRY, *LPTHREADENTRY;
BOOL WINAPI Thread32First(HANDLE,LPTHREADENTRY);
BOOL WINAPI Thread32Next(HANDLE,LPTHREADENTRY);
/*
* Process entry list as created by CreateToolHelp32Snapshot
*/ */
typedef struct tagPROCESSENTRY { typedef struct tagPROCESSENTRY {
@ -412,9 +431,7 @@ typedef struct tagPROCESSENTRY {
LONG pcPriClassBase; LONG pcPriClassBase;
DWORD dwFlags; DWORD dwFlags;
char szExeFile[MAX_PATH]; char szExeFile[MAX_PATH];
} PROCESSENTRY; } PROCESSENTRY, *PPROCESSENTRY, *LPPROCESSENTRY;
typedef PROCESSENTRY * PPROCESSENTRY;
typedef PROCESSENTRY * LPPROCESSENTRY;
BOOL WINAPI Process32First(HANDLE,LPPROCESSENTRY); BOOL WINAPI Process32First(HANDLE,LPPROCESSENTRY);
BOOL WINAPI Process32Next(HANDLE,LPPROCESSENTRY); BOOL WINAPI Process32Next(HANDLE,LPPROCESSENTRY);

View File

@ -145,6 +145,34 @@ HANDLE WINAPI CreateToolhelp32Snapshot( DWORD flags, DWORD process )
} }
/***********************************************************************
* Thread32First (KERNEL32.686)
*
* Return info about the first thread in a toolhelp32 snapshot
*/
BOOL WINAPI Thread32First(HANDLE hSnapshot, LPTHREADENTRY lpte)
{
if (!lpte)
return FALSE;
FIXME("(%d,%p),stub!\n",hSnapshot,lpte);
return FALSE;
}
/***********************************************************************
* Thread32Next (KERNEL32.687)
*
* Return info about the "next" thread in a toolhelp32 snapshot
*/
BOOL WINAPI Thread32Next(HANDLE hSnapshot, LPTHREADENTRY lpte)
{
if (!lpte)
return FALSE;
FIXME("(%d,%p),stub!\n",hSnapshot,lpte);
return FALSE;
}
/*********************************************************************** /***********************************************************************
* TOOLHELP_Process32Next * TOOLHELP_Process32Next
* *

View File

@ -701,8 +701,8 @@ import ntdll.dll
683 stdcall SystemTimeToTzSpecificLocalTime (ptr ptr ptr) SystemTimeToTzSpecificLocalTime 683 stdcall SystemTimeToTzSpecificLocalTime (ptr ptr ptr) SystemTimeToTzSpecificLocalTime
684 stdcall TerminateProcess(long long) TerminateProcess 684 stdcall TerminateProcess(long long) TerminateProcess
685 stdcall TerminateThread(long long) TerminateThread 685 stdcall TerminateThread(long long) TerminateThread
686 stub Thread32First 686 stdcall Thread32First(long ptr) Thread32First
687 stub Thread32Next 687 stdcall Thread32Next(long ptr) Thread32Next
688 stdcall ThunkConnect32(ptr str str str ptr ptr) ThunkConnect32 688 stdcall ThunkConnect32(ptr str str str ptr ptr) ThunkConnect32
689 stdcall TlsAlloc() TlsAlloc 689 stdcall TlsAlloc() TlsAlloc
690 stub TlsAllocInternal 690 stub TlsAllocInternal