Commit f4077e66 authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

Added Thread32First/Next stubs.

parent 4e1cdab5
......@@ -398,7 +398,26 @@ typedef struct {
#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 {
......@@ -412,9 +431,7 @@ typedef struct tagPROCESSENTRY {
LONG pcPriClassBase;
DWORD dwFlags;
char szExeFile[MAX_PATH];
} PROCESSENTRY;
typedef PROCESSENTRY * PPROCESSENTRY;
typedef PROCESSENTRY * LPPROCESSENTRY;
} PROCESSENTRY, *PPROCESSENTRY, *LPPROCESSENTRY;
BOOL WINAPI Process32First(HANDLE,LPPROCESSENTRY);
BOOL WINAPI Process32Next(HANDLE,LPPROCESSENTRY);
......
......@@ -146,6 +146,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
*
* Implementation of Process32First/Next
......
......@@ -701,8 +701,8 @@ import ntdll.dll
683 stdcall SystemTimeToTzSpecificLocalTime (ptr ptr ptr) SystemTimeToTzSpecificLocalTime
684 stdcall TerminateProcess(long long) TerminateProcess
685 stdcall TerminateThread(long long) TerminateThread
686 stub Thread32First
687 stub Thread32Next
686 stdcall Thread32First(long ptr) Thread32First
687 stdcall Thread32Next(long ptr) Thread32Next
688 stdcall ThunkConnect32(ptr str str str ptr ptr) ThunkConnect32
689 stdcall TlsAlloc() TlsAlloc
690 stub TlsAllocInternal
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment