PsCreateSystemThread Question

Hello,

Can I call PsCreateSystemThread in my AddDevice() routine instead of
DriverEntry() ? (DDK seems to say that threads are created during Driver
Initialization)

The reason I need to do this is because I need to pass the FDO_DevExtn to
the thread_func as the argument (i.e. “StartContext” argument to
PsCreateSystemThread). And the FDO_DevExtn is created only in AddDevice()
[it doesn’t exist in DriverEntry()].

Thanks in advance for your help.

Puja

Sure you can delay creating the thread. But there are other ways you
can pass structures to a thread after it is already running. The
simplest would be to have it wait on an event until you signal an
event indicating you’ve placed the relevant data in some shared
memory location.


Dave Cox
Hewlett-Packard Co.
HPSO/SSMO (Santa Barbara)
https://ecardfile.com/id/Dave+Cox

-----Original Message-----
From: xxxxx@usa.net [mailto:xxxxx@usa.net]
Sent: Thursday, April 20, 2000 1:18 PM
To: NT Developers Interest List
Subject: [ntdev] PsCreateSystemThread Question

Hello,

Can I call PsCreateSystemThread in my AddDevice() routine instead of
DriverEntry() ? (DDK seems to say that threads are created during Driver
Initialization)

The reason I need to do this is because I need to pass the FDO_DevExtn to
the thread_func as the argument (i.e. “StartContext” argument to
PsCreateSystemThread). And the FDO_DevExtn is created only in AddDevice()
[it doesn’t exist in DriverEntry()].

Thanks in advance for your help.

Puja


You are currently subscribed to ntdev as: david_cox2@hp.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

you can create a system thread any time you like as long as you are at
passive level.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of xxxxx@usa.net
Sent: Thursday, April 20, 2000 8:18 PM
To: NT Developers Interest List
Subject: [ntdev] PsCreateSystemThread Question

Hello,

Can I call PsCreateSystemThread in my AddDevice() routine instead of
DriverEntry() ? (DDK seems to say that threads are created during Driver
Initialization)

The reason I need to do this is because I need to pass the FDO_DevExtn to
the thread_func as the argument (i.e. “StartContext” argument to
PsCreateSystemThread). And the FDO_DevExtn is created only in AddDevice()
[it doesn’t exist in DriverEntry()].

Thanks in advance for your help.

Puja


You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

hi puja,
You have not told the system information in detail (95/98/NT) and what is the type of driver that you are involved into.???

Ajitabh

Ajitabh Prakash
Sr.Software Engineer
Future Software
480/481 Nandnam,Chennai

-----Original Message-----
From: xxxxx@usa.net [SMTP:xxxxx@usa.net]
Sent: Friday, April 21, 2000 1:48 AM
To: NT Developers Interest List
Subject: [ntdev] PsCreateSystemThread Question

Hello,

Can I call PsCreateSystemThread in my AddDevice() routine instead of
DriverEntry() ? (DDK seems to say that threads are created during Driver
Initialization)

The reason I need to do this is because I need to pass the FDO_DevExtn to
the thread_func as the argument (i.e. “StartContext” argument to
PsCreateSystemThread). And the FDO_DevExtn is created only in AddDevice()
[it doesn’t exist in DriverEntry()].

Thanks in advance for your help.

Puja


You are currently subscribed to ntdev as: xxxxx@future.futsoft.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)