[include/winternl.h #1] Cleanup for THREADINFO structs

Paul Vriens Paul.Vriens at xs4all.nl
Wed Apr 20 14:23:40 CDT 2005


Hi,

there are 2 structures THREADINFO and THREAD_INFO in winternl.h with the
question if they are the same struture.

THREADINFO is only used in the declaration of the
SYSTEM_PROCESS_INFORMATION struct and THREAD_INFO is used in ntdll/nt.c.

There is already a mismatch in the above, SYSTEM_PROCESS_INFORMATION
uses THREADINFO where nt.c uses THREAD_INFO for the sizeof within
SYSTEM_PROCESS_INFORMATION.

I had a look at programs/taskmgr/perfdata.h and there
SYSTEM_THREAD_INFORMATION is used which looks like a better name.

This patch removes the THREAD_INFO struct and renames THREADINFO into
SYSTEM_THREAD_INFORMATION (plus it's users).

This patch conflicts with the earlier send (and not applied):
http://www.winehq.org/hypermail/wine-patches/2005/04/0261.html

I will resend that one, once (if) this one is applied. 

Changelog
  Remove THREAD_INFO struct
  Rename THREADINFO into SYSTEM_THREAD_INFORMATION

Cheers,

Paul Vriens.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: threadinfo.diff
Type: text/x-patch
Size: 3073 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050420/fe1931cc/threadinfo.bin


More information about the wine-patches mailing list