RE: [ntdev] Re: NtCreateThread
Hello Anton,
I would suggest to go to the www.reactos.com and look how it’s done there.
In addition I have some sample sources where it’s used and will send them to you privetly.
------
Bye,
SaB
> -----Original Message-----
> From: Anton Kolomyeytsev [mailto:xxxxx@cooldev.com]
> Sent: Tuesday, September 17, 2002 6:06 PM
> To: NT Developers Interest List
> Subject: [ntdev] Re: NtCreateThread
>
>
> Any sample how to use NtCreateThread()? The data you’ve
> specified is…
> not enough -)
>
> Thanks, that was different blue screen. Startup phase. When
> chkdsk.exe and
> other native applications run.
>
> Anton Kolomyeytsev
>
> > >> thread procedure address!
> >
> > IN PCONTEXT ThreadContext, >> full context set
> including start EIP
> > IN PUSER_STACK UserStack, >> the stack
> >
> > This API is undocumented, and subject to change whithout
> any notice. Dont
> > use it unless
> > you dont have other solutions.
> >
> > >> under blue screen
> >
> > If the system got a BSOD, consider it dead, and let it rest
> in peace. Dont
> > try to access
> > partitions, read or write to them, or for that matter, dont
> do anything.
> >
> >
> >
> > ----- Original Message -----
> > From: “Anton Kolomyeytsev”
> > To: “NT Developers Interest List”
> > Sent: Tuesday, September 17, 2002 5:38 PM
> > Subject: [ntdev] NtCreateThread
> >
> >
> > > Hi,
> > >
> > > I’m writing cross-platform DVD recording application. One
> target is NT
> > > native (to backup whole partitions under blue screen). I
> need some very
> > > limited API from every OS I support. One API call that is
> “welcomed” is
> > > “create thread”. As I understand under NT native this
> call is done with
> > > NtCreateThread. I have prototype. But one problem :
> prototype is missing
> > > thread procedure address! Can anybody tell me how to
> create thread under
> > > NT native environment? Thanks a lot!
> > >
> > > Anton Kolomyeytsev
> > >
> > > NTSYSAPI
> > > NTSTATUS
> > > NTAPI
> > > NtCreateThread(
> > > OUT PHANDLE ThreadHandle,
> > > IN ACCESS_MASK DesiredAccess,
> > > IN POBJECT_ATTRIBUTES ObjectAttributes,
> > > IN HANDLE ProcessHandle,
> > > OUT PCLIENT_ID ClientId,
> > > IN PCONTEXT ThreadContext,
> > > IN PUSER_STACK UserStack,
> > > IN BOOLEAN CreateSuspended
> > > );
> > >
> > > —
> > > You are currently subscribed to ntdev as: xxxxx@rdsor.ro
> > > To unsubscribe send a blank email to %%email.unsub%%
> > >
>
> —
> You are currently subscribed to ntdev as: xxxxx@mastereye.kiev.ua
> To unsubscribe send a blank email to %%email.unsub%%
>