Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
f4077e66
Commit
f4077e66
authored
Dec 05, 1999
by
Andreas Mohr
Committed by
Alexandre Julliard
Dec 05, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Thread32First/Next stubs.
parent
4e1cdab5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
6 deletions
+51
-6
toolhelp.h
include/toolhelp.h
+21
-4
toolhelp.c
misc/toolhelp.c
+28
-0
kernel32.spec
relay32/kernel32.spec
+2
-2
No files found.
include/toolhelp.h
View file @
f4077e66
...
...
@@ -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
);
...
...
misc/toolhelp.c
View file @
f4077e66
...
...
@@ -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
...
...
relay32/kernel32.spec
View file @
f4077e66
...
...
@@ -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 st
ub
Thread32First
687 st
ub
Thread32Next
686 st
dcall Thread32First(long ptr)
Thread32First
687 st
dcall Thread32Next(long ptr)
Thread32Next
688 stdcall ThunkConnect32(ptr str str str ptr ptr) ThunkConnect32
689 stdcall TlsAlloc() TlsAlloc
690 stub TlsAllocInternal
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment