kernel32: Implement Process thread attribute lists.

Dmitry Timoshkov dmitry at baikal.ru
Mon Dec 5 07:59:46 CST 2016


Huw Davies <huw at codeweavers.com> wrote:

> >> diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
> >> index 3c25286..224e6ae 100644
> >> --- a/dlls/kernel32/kernel32.spec
> >> +++ b/dlls/kernel32/kernel32.spec
> > ...
> >> +@ stdcall DeleteProcThreadAttributeList(ptr)
> > ...
> >> +@ stdcall InitializeProcThreadAttributeList(ptr long long ptr)
> > ...
> >> +@ stdcall UpdateProcThreadAttribute(ptr long long ptr long ptr ptr)
> > 
> > UMS (User Mode Scheduler) stuff should be implemented in ntdll and
> > kernel32 APIs should be either forwards or thin wrappers around the
> > ntdll exports. So, to avoid duplicate efforts this all from the start
> > needs to be implemeted in ntdll.
> 
> So which ntdll functions are you suggesting they forward to?

I can't find ntdll exports for managing thread attribute lists, but on
the other hand NtCreateThreadEx isn't documented either, and it's not clear
how the UMS thread attributes are passed (if any) to it. Perhaps thread
attributes are a kernel32 side only thing, and they have no equavalent
on the real (ntdll) UMS side, in that case perhaps there is no point in
implementing them without understanding how they are supposed to be used.

-- 
Dmitry.



More information about the wine-devel mailing list