Re: Implemented PsCreateSystemThread in ntoskrnl.exe

2007-09-20 Thread Juan Lang
> Actually, NtCreateThread is too low-level and so isn't implemented in > Wine. RtlCreateUserThread might be better to use though. Whoops :) Thanks, Rob. --Juan

Re: Implemented PsCreateSystemThread in ntoskrnl.exe

2007-09-20 Thread Robert Shearman
Juan Lang wrote: > Hi Carroll, > > +if (ProcessHandle!=0) > + localThreadHandle = > CreateRemoteThread(ProcessHandle,0,0,StartRoutine,StartContext,0,&ThreadId); > +else localThreadHandle = > CreateThread(0,0,StartRoutine,StartContext,0,&ThreadId); > + > +if (localThreadHandle==0) re

Re: Implemented PsCreateSystemThread in ntoskrnl.exe

2007-09-20 Thread Juan Lang
Hi Carroll, +if (ProcessHandle!=0) + localThreadHandle = CreateRemoteThread(ProcessHandle,0,0,StartRoutine,StartContext,0,&ThreadId); +else localThreadHandle = CreateThread(0,0,StartRoutine,StartContext,0,&ThreadId); + +if (localThreadHandle==0) return STATUS_SEVERITY_ERROR; You