Added Thread32First/Next stubs.
This commit is contained in:
parent
4e1cdab556
commit
f4077e6623
|
@ -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);
|
||||||
|
|
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue