In Stack Queued Spinlocks

I appears that this new manner of spinlock is not available when building a
WDM driver. Is this true?


Gary G. Little
Seagate Technologies, LLC

Correct, in stack queued spinlocks are available on XP and higher only.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gary G. Little
Sent: Wednesday, February 18, 2004 11:29 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] In Stack Queued Spinlocks

I appears that this new manner of spinlock is not available when
building a
WDM driver. Is this true?


Gary G. Little
Seagate Technologies, LLC


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Yet another reason to consider wdm.h something associated with win98/me
only. It looks true to me, either that or my text search tools are oddly
lacking.

=====================
Mark Roddy

-----Original Message-----
From: Gary G. Little [mailto:xxxxx@sbcglobal.net]
Sent: Wednesday, February 18, 2004 2:29 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] In Stack Queued Spinlocks

I appears that this new manner of spinlock is not available
when building a WDM driver. Is this true?


Gary G. Little
Seagate Technologies, LLC


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@stratus.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Thanks Doron, but really not an answer to what I asked. Can one produce an
XP WDM driver using this manner of spinlock?


Gary G. Little
Seagate Technologies, LLC

“Doron Holan” wrote in message
news:xxxxx@ntdev…
Correct, in stack queued spinlocks are available on XP and higher only.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gary G. Little
Sent: Wednesday, February 18, 2004 11:29 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] In Stack Queued Spinlocks

I appears that this new manner of spinlock is not available when
building a
WDM driver. Is this true?


Gary G. Little
Seagate Technologies, LLC


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Since this function is not a WDM function, I am not sure it is a WDM
driver anymore (at least v1.0 or v1.1). It is just an NT driver.

Are you worried about semantically not being a “WDM” executable anymore?

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gary G. Little
Sent: Wednesday, February 18, 2004 12:06 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] In Stack Queued Spinlocks

Thanks Doron, but really not an answer to what I asked. Can one produce
an
XP WDM driver using this manner of spinlock?


Gary G. Little
Seagate Technologies, LLC

“Doron Holan” wrote in message
news:xxxxx@ntdev…
Correct, in stack queued spinlocks are available on XP and higher only.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gary G. Little
Sent: Wednesday, February 18, 2004 11:29 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] In Stack Queued Spinlocks

I appears that this new manner of spinlock is not available when
building a
WDM driver. Is this true?


Gary G. Little
Seagate Technologies, LLC


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Looks like may answer is “Well Bubba, you can’t do it that way.”

Currently working on a driver that Compuware’s driver wizard defined as WDM.
I didn’t ask for WDM, but I got WDM, in fact I can find no way NOT to get
WDM unless I want NT4 and this ain’t no stinking NT4 driver. Now I want to
do in stack queuing. The compiler errors out not finding the functions and
structure.

Looks like I need to talk to THEM!.


Gary G. Little
Seagate Technologies, LLC

“Doron Holan” wrote in message
news:xxxxx@ntdev…
Since this function is not a WDM function, I am not sure it is a WDM
driver anymore (at least v1.0 or v1.1). It is just an NT driver.

Are you worried about semantically not being a “WDM” executable anymore?

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gary G. Little
Sent: Wednesday, February 18, 2004 12:06 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] In Stack Queued Spinlocks

Thanks Doron, but really not an answer to what I asked. Can one produce
an
XP WDM driver using this manner of spinlock?


Gary G. Little
Seagate Technologies, LLC

“Doron Holan” wrote in message
news:xxxxx@ntdev…
Correct, in stack queued spinlocks are available on XP and higher only.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gary G. Little
Sent: Wednesday, February 18, 2004 11:29 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] In Stack Queued Spinlocks

I appears that this new manner of spinlock is not available when
building a
WDM driver. Is this true?


Gary G. Little
Seagate Technologies, LLC


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

> ----------

From: xxxxx@sbcglobal.net[SMTP:xxxxx@sbcglobal.net]
Reply To: xxxxx@lists.osr.com
Sent: Thursday, February 19, 2004 12:13 AM
To: xxxxx@lists.osr.com
Subject: Re:[ntdev] In Stack Queued Spinlocks

Looks like may answer is “Well Bubba, you can’t do it that way.”

Currently working on a driver that Compuware’s driver wizard defined as
WDM.
I didn’t ask for WDM, but I got WDM, in fact I can find no way NOT to get
WDM unless I want NT4 and this ain’t no stinking NT4 driver. Now I want to
do in stack queuing. The compiler errors out not finding the functions and
structure.

Isn’t it possible to simply replace #include <wdm.h> with <ntddk.h>
somewhere?

Best regards,

Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.com]</ntddk.h></wdm.h>

Attempts so far to do that have not been successful. If I comment out
DRIVERTYPE=WDM and set NTVERSION to other than WDM things don’t build. Right
now it’s blowing with a U1073, NMAKE not knowing how to make i386*.sbr.

This is an XP and above, WDM driver, that will never have to suffer the
indignation of running in 9x or Me. I want a WDM driver with full support of
the DDK. I really do want my spinlocks to be controlled using
KeAcquireInStackQueuedSpinlock.


Gary G. Little
Seagate Technologies, LLC

“Michal Vodicka” wrote in message
news:xxxxx@ntdev…
> > ----------
> > From: xxxxx@sbcglobal.net[SMTP:xxxxx@sbcglobal.net]
> > Reply To: xxxxx@lists.osr.com
> > Sent: Thursday, February 19, 2004 12:13 AM
> > To: xxxxx@lists.osr.com
> > Subject: Re:[ntdev] In Stack Queued Spinlocks
> >
> > Looks like may answer is “Well Bubba, you can’t do it that way.”
> >
> > Currently working on a driver that Compuware’s driver wizard defined as
> > WDM.
> > I didn’t ask for WDM, but I got WDM, in fact I can find no way NOT to
get
> > WDM unless I want NT4 and this ain’t no stinking NT4 driver. Now I want
to
> > do in stack queuing. The compiler errors out not finding the functions
and
> > structure.
> >
> Isn’t it possible to simply replace #include <wdm.h> with <ntddk.h>
> somewhere?
>
> Best regards,
>
> Michal Vodicka
> STMicroelectronics Design and Application s.r.o.
> [michal.vodicka@st.com, http:://www.st.com]
>
>
>
></ntddk.h></wdm.h>

Alberto (or Bill),

Ok … DriverStudio 3.0. I used the C wizard to create the project and
solution, and then use DDKBUILD and your sources file to build the project
under VS .NET 2003. The DS solution for .NET 2003 barfs which is why I
created my own SLN and VCPROJ files to use DDKBUILD as an MAKE project. But
I digress …

When I used the wizard to create the template I of course told it I wanted a
WDM driver, but this beast will ONLY fly under 2000 and above. I need FULL
DDK functionality, having KeAcquireInStackQueuedSpinlock fail is a bit
disconcerting when I’m building an XP version of the driver. I’ve frigged
the sources file as indicated; commented out DRIVERTYPE and set NTVERSION to
other than WDM. That only presents a different plethora of faults.

Bottom line … I want an XP WDM driver with access to the complete DDK. I
can do that with Marks (Hollistech) classes and build environment, how do I
do it with Driver Studio?

(Oh … I called tech support … $55 a question. Wow. (Seagates tech
support is free.)
(I searched the KB. Nada, at least using the keywords I used.)


Gary G. Little
Seagate Technologies, LLC

***********REdirect from other thread:***********

DS 3.1 has a C wizard, is that what you’re looking for ?

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Gary G. Little
Sent: Thursday, February 19, 2004 9:48 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Re: Can Interl 2.4G(C) Hyper threading processor run
2 hardware interrupts in the same moment?

While we are off topic Alberto, how do I get DriverWorks to include ALL of
NTDDK in a WDM driver so I can use NTDDK functionality?

See other thread re: In Stack Queued Spinlocks.

Gary G. Little
Seagate Technologies, LLC

Regarding Compuware’s DriverWizard and wdm.h/ntddk.h,

DriverStudio 3.1 features 2 DriverWizard’s for WDM and NT drivers. There is
the DriverWorks wizard that generates C++ driver code for those who want to
use C++. New in DriverStudio 3.1 is the C DriverWizard that generates WDM
drivers (and a whole lot more driver types) in the C programming language
with no dependency on a 3rd party framework or library. It generates
straight C code similar to DDK samples.

As for wdm.h vs. ntddk.h, the C DriverWizard uses ntddk.h. Its easy to
switch to wdm.h if desired.

The DriverWorks DriverWizard generates C++ code that uses the DriverWorks
C++ framework and library. In DriverStudio 3.1, to use ntddk.h instead of
wdm.h, add ‘DW_INCLUDE_NTDDK’ as a preprocessor definition either in the
sources file or in the source code prior to including vdw.h.

Steve Smith
www.compuware.com/products/driverstudio/

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.

I assume you are using DriverWorks wizard from DriverStudio 3.0. The C
wizard is new to DriverStudio 3.1.

In DriverStudio 3.1, the main DriverWorks include file vdw.h has this code
(around line 77):

#if defined(DW_INCLUDE_NTDDK)
#include <ntddk.h>
#else
#include <wdm.h>
#endif

So, to use ntddk.h with DriverWorks, you must define DW_INCLUDE_NTDDK for
both the library build and the driver build.

In DriverStudio 3.0, you would have to edit vdw.h to use ntddk.h. Be sure
to build the library and driver with the same header file.

Steve Smith
http://www.compuware.com/products/driverstudio/

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Gary G. Little
Sent: Thursday, February 19, 2004 10:34 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] In Stack Queued Spinlocks

Alberto (or Bill),

Ok … DriverStudio 3.0. I used the C wizard to create the project and
solution, and then use DDKBUILD and your sources file to build the project
under VS .NET 2003. The DS solution for .NET 2003 barfs which is why I
created my own SLN and VCPROJ files to use DDKBUILD as an MAKE project. But
I digress …

When I used the wizard to create the template I of course told it I wanted a
WDM driver, but this beast will ONLY fly under 2000 and above. I need FULL
DDK functionality, having KeAcquireInStackQueuedSpinlock fail is a bit
disconcerting when I’m building an XP version of the driver. I’ve frigged
the sources file as indicated; commented out DRIVERTYPE and set NTVERSION to
other than WDM. That only presents a different plethora of faults.

Bottom line … I want an XP WDM driver with access to the complete DDK. I
can do that with Marks (Hollistech) classes and build environment, how do I
do it with Driver Studio?

(Oh … I called tech support … $55 a question. Wow. (Seagates tech
support is free.)
(I searched the KB. Nada, at least using the keywords I used.)


Gary G. Little
Seagate Technologies, LLC

REdirect from other thread:

DS 3.1 has a C wizard, is that what you’re looking for ?

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Gary G. Little
Sent: Thursday, February 19, 2004 9:48 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Re: Can Interl 2.4G(C) Hyper threading processor run
2 hardware interrupts in the same moment?

While we are off topic Alberto, how do I get DriverWorks to include ALL of
NTDDK in a WDM driver so I can use NTDDK functionality?

See other thread re: In Stack Queued Spinlocks.

Gary G. Little
Seagate Technologies, LLC


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.</wdm.h></ntddk.h>

BTW, DriverStudio 3.1 has Visual Studio .NET 2003 integration. This allows
you to build a driver using the DDK BUILD utility within Visual Studio .NET
2003 without using custom build steps and batch files. Among the many
features, you can use the ‘DDK Build Button’ and the ‘DDK Build Settings’ to
change the DDK Build Enviroment on the fly inside the IDE, to change the DDK
used, to select to use Prefast, etc. This works directly with your sources
file. You don’t have to exit the IDE and relaunch it with a different build
environment to perform a free vs. checked build or switch target os or
select to use Prefast. Click one button to turn on Prefast. Also, Prefast
output shows up in the Output window of Visual Studio allowing you to double
click the error and go direct to the source line.

Steve Smith
www.compuware.com/products/driverstudio/

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Gary G. Little
Sent: Thursday, February 19, 2004 10:34 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] In Stack Queued Spinlocks

Alberto (or Bill),

Ok … DriverStudio 3.0. I used the C wizard to create the project and
solution, and then use DDKBUILD and your sources file to build the project
under VS .NET 2003. The DS solution for .NET 2003 barfs which is why I
created my own SLN and VCPROJ files to use DDKBUILD as an MAKE project. But
I digress …

When I used the wizard to create the template I of course told it I wanted a
WDM driver, but this beast will ONLY fly under 2000 and above. I need FULL
DDK functionality, having KeAcquireInStackQueuedSpinlock fail is a bit
disconcerting when I’m building an XP version of the driver. I’ve frigged
the sources file as indicated; commented out DRIVERTYPE and set NTVERSION to
other than WDM. That only presents a different plethora of faults.

Bottom line … I want an XP WDM driver with access to the complete DDK. I
can do that with Marks (Hollistech) classes and build environment, how do I
do it with Driver Studio?

(Oh … I called tech support … $55 a question. Wow. (Seagates tech
support is free.)
(I searched the KB. Nada, at least using the keywords I used.)


Gary G. Little
Seagate Technologies, LLC

***********REdirect from other thread:***********

DS 3.1 has a C wizard, is that what you’re looking for ?

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Gary G. Little
Sent: Thursday, February 19, 2004 9:48 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Re: Can Interl 2.4G(C) Hyper threading processor run
2 hardware interrupts in the same moment?

While we are off topic Alberto, how do I get DriverWorks to include ALL of
NTDDK in a WDM driver so I can use NTDDK functionality?

See other thread re: In Stack Queued Spinlocks.

Gary G. Little
Seagate Technologies, LLC


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.

Gary,

Sorry I misunderstood your question. Steve Smith, who’s the manager for
DriverWorks, put out two posts on NTDEV explaining what to do. As for the
barf, what exactly happens ?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Gary G. Little
Sent: Thursday, February 19, 2004 10:34 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] In Stack Queued Spinlocks

Alberto (or Bill),

Ok … DriverStudio 3.0. I used the C wizard to create the project and
solution, and then use DDKBUILD and your sources file to build the project
under VS .NET 2003. The DS solution for .NET 2003 barfs which is why I
created my own SLN and VCPROJ files to use DDKBUILD as an MAKE project. But
I digress …

When I used the wizard to create the template I of course told it I wanted a
WDM driver, but this beast will ONLY fly under 2000 and above. I need FULL
DDK functionality, having KeAcquireInStackQueuedSpinlock fail is a bit
disconcerting when I’m building an XP version of the driver. I’ve frigged
the sources file as indicated; commented out DRIVERTYPE and set NTVERSION to
other than WDM. That only presents a different plethora of faults.

Bottom line … I want an XP WDM driver with access to the complete DDK. I
can do that with Marks (Hollistech) classes and build environment, how do I
do it with Driver Studio?

(Oh … I called tech support … $55 a question. Wow. (Seagates tech
support is free.)
(I searched the KB. Nada, at least using the keywords I used.)


Gary G. Little
Seagate Technologies, LLC

***********REdirect from other thread:***********

DS 3.1 has a C wizard, is that what you’re looking for ?

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Gary G. Little
Sent: Thursday, February 19, 2004 9:48 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Re: Can Interl 2.4G(C) Hyper threading processor run
2 hardware interrupts in the same moment?

While we are off topic Alberto, how do I get DriverWorks to include ALL of
NTDDK in a WDM driver so I can use NTDDK functionality?

See other thread re: In Stack Queued Spinlocks.

Gary G. Little
Seagate Technologies, LLC


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.

Steve,

No joy.

I cut the define from your message and added it to my sources file as
follows:

C_DEFINES=-DNTVERSION=‘WDM’ -D_DW_INCLUDE_NTDDK_

Same errors occur.

error C2065: ‘KLOCK_QUEUE_HANDLE’ : undeclared identifier
error C3861: ‘KeAcquireInStackQueuedSpinlock’: identifier not found, even
with argument-dependent lookup

I searched for DW_INCLUDE_NTDDK from the DriverWorks directory
down and find no instance in any source or include file.

I think I have found the problem. Help on the wizard indicates I have
DS
3.0. It appears I need to upgrade to 3.1?


Gary G. Little
Seagate Technologies, LLC

“Smith, Steve” wrote in message
news:xxxxx@ntdev…

> Regarding Compuware’s DriverWizard and wdm.h/ntddk.h,
>
> DriverStudio 3.1 features 2 DriverWizard’s for WDM and NT drivers. There
is
> the DriverWorks wizard that generates C++ driver code for those who want
to
> use C++. New in DriverStudio 3.1 is the C DriverWizard that generates WDM
> drivers (and a whole lot more driver types) in the C programming language
> with no dependency on a 3rd party framework or library. It generates
> straight C code similar to DDK samples.
>
> As for wdm.h vs. ntddk.h, the C DriverWizard uses ntddk.h. Its easy to
> switch to wdm.h if desired.
>
> The DriverWorks DriverWizard generates C++ code that uses the DriverWorks
> C++ framework and library. In DriverStudio 3.1, to use ntddk.h instead of
> wdm.h, add ‘DW_INCLUDE_NTDDK’ as a preprocessor definition either in the
> sources file or in the source code prior to including vdw.h.
>
> Steve Smith
> www.compuware.com/products/driverstudio/
>
>
>
>
> The contents of this e-mail are intended for the named addressee only. It
> contains information that may be confidential. Unless you are the named
> addressee or an authorized designee, you may not copy or use it, or
disclose
> it to anyone else. If you received it in error please notify us
immediately
> and then destroy it.
>
>

Yes, the C wizard was issued with DS 3.1.

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Gary G. Little
Sent: Thursday, February 19, 2004 11:29 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] In Stack Queued Spinlocks

Steve,

No joy.

I cut the define from your message and added it to my sources file as
follows:

C_DEFINES=-DNTVERSION=‘WDM’ -D_DW_INCLUDE_NTDDK_

Same errors occur.

error C2065: ‘KLOCK_QUEUE_HANDLE’ : undeclared identifier
error C3861: ‘KeAcquireInStackQueuedSpinlock’: identifier not found, even
with argument-dependent lookup

I searched for DW_INCLUDE_NTDDK from the DriverWorks directory
down and find no instance in any source or include file.

I think I have found the problem. Help on the wizard indicates I have
DS
3.0. It appears I need to upgrade to 3.1?


Gary G. Little
Seagate Technologies, LLC

“Smith, Steve” wrote in message
news:xxxxx@ntdev…

> Regarding Compuware’s DriverWizard and wdm.h/ntddk.h,
>
> DriverStudio 3.1 features 2 DriverWizard’s for WDM and NT drivers. There
is
> the DriverWorks wizard that generates C++ driver code for those who want
to
> use C++. New in DriverStudio 3.1 is the C DriverWizard that generates WDM
> drivers (and a whole lot more driver types) in the C programming language
> with no dependency on a 3rd party framework or library. It generates
> straight C code similar to DDK samples.
>
> As for wdm.h vs. ntddk.h, the C DriverWizard uses ntddk.h. Its easy to
> switch to wdm.h if desired.
>
> The DriverWorks DriverWizard generates C++ code that uses the DriverWorks
> C++ framework and library. In DriverStudio 3.1, to use ntddk.h instead of
> wdm.h, add ‘DW_INCLUDE_NTDDK’ as a preprocessor definition either in the
> sources file or in the source code prior to including vdw.h.
>
> Steve Smith
> www.compuware.com/products/driverstudio/
>
>
>
>
> The contents of this e-mail are intended for the named addressee only. It
> contains information that may be confidential. Unless you are the named
> addressee or an authorized designee, you may not copy or use it, or
disclose
> it to anyone else. If you received it in error please notify us
immediately
> and then destroy it.
>
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.

Gary,

One more thing, DS 3.0 doesn’t support .NET 2003. You definitely need DS
3.1. If you talk to your friendly Compuware salesmen :slight_smile: they’ll tell you if
you’re entitled to a free upgrade.

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Moreira, Alberto
Sent: Thursday, February 19, 2004 11:17 AM
To: Windows System Software Devs Interest List
Cc: Smith, Steve
Subject: RE: [ntdev] In Stack Queued Spinlocks

Gary,

Sorry I misunderstood your question. Steve Smith, who’s the manager for
DriverWorks, put out two posts on NTDEV explaining what to do. As for the
barf, what exactly happens ?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Gary G. Little
Sent: Thursday, February 19, 2004 10:34 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] In Stack Queued Spinlocks

Alberto (or Bill),

Ok … DriverStudio 3.0. I used the C wizard to create the project and
solution, and then use DDKBUILD and your sources file to build the project
under VS .NET 2003. The DS solution for .NET 2003 barfs which is why I
created my own SLN and VCPROJ files to use DDKBUILD as an MAKE project. But
I digress …

When I used the wizard to create the template I of course told it I wanted a
WDM driver, but this beast will ONLY fly under 2000 and above. I need FULL
DDK functionality, having KeAcquireInStackQueuedSpinlock fail is a bit
disconcerting when I’m building an XP version of the driver. I’ve frigged
the sources file as indicated; commented out DRIVERTYPE and set NTVERSION to
other than WDM. That only presents a different plethora of faults.

Bottom line … I want an XP WDM driver with access to the complete DDK. I
can do that with Marks (Hollistech) classes and build environment, how do I
do it with Driver Studio?

(Oh … I called tech support … $55 a question. Wow. (Seagates tech
support is free.)
(I searched the KB. Nada, at least using the keywords I used.)


Gary G. Little
Seagate Technologies, LLC

***********REdirect from other thread:***********

DS 3.1 has a C wizard, is that what you’re looking for ?

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Gary G. Little
Sent: Thursday, February 19, 2004 9:48 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Re: Can Interl 2.4G(C) Hyper threading processor run
2 hardware interrupts in the same moment?

While we are off topic Alberto, how do I get DriverWorks to include ALL of
NTDDK in a WDM driver so I can use NTDDK functionality?

See other thread re: In Stack Queued Spinlocks.

Gary G. Little
Seagate Technologies, LLC


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.

Gary,

You don’t NEED to upgrade to DriverStudio 3.1 to fix this problem. With
DriverStudio 3.0, you can simply edit vdw.h and change ‘#include <wdm.h>’ to
#include <ntddk.h>’. vdw.h is located in DriverWorks\include folder.

There are reasons to upgrade to DriverStudio 3.1: Visual Studio .NET 2003
support, bug fixes in library code, new classes and samples, the C
DriverWizard for c purists, enhancements/bug fixes to all other DriverStudio
tools and debuggers.

Steve Smith
www.compuware.com/products/driverstudio/

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Gary G. Little
Sent: Thursday, February 19, 2004 11:29 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] In Stack Queued Spinlocks

Steve,

No joy.

I cut the define from your message and added it to my sources file as
follows:

C_DEFINES=-DNTVERSION=‘WDM’ -D_DW_INCLUDE_NTDDK_

Same errors occur.

error C2065: ‘KLOCK_QUEUE_HANDLE’ : undeclared identifier
error C3861: ‘KeAcquireInStackQueuedSpinlock’: identifier not found, even
with argument-dependent lookup

I searched for DW_INCLUDE_NTDDK from the DriverWorks directory
down and find no instance in any source or include file.

I think I have found the problem. Help on the wizard indicates I have
DS
3.0. It appears I need to upgrade to 3.1?


Gary G. Little
Seagate Technologies, LLC

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.</ntddk.h></wdm.h>

Alberto …

More complicated than that. Seagate’s license is held by a peer in Longmont,
CO. He’s out messing with the movers moving him from Oklahoma. With my luck
my upgrade is probably lost somewhere in the bowels of the Oklahoma City
building.

Note that even though I do indeed hold a valid license, I cannot download an
upgrade as I can download a service pack from Microsoft. Now THAT is a pain
in the ass.

The IDE barf is 3.0 versus 3.1 also.


Gary G. Little
Seagate Technologies, LLC

“Moreira, Alberto” wrote in message
news:xxxxx@ntdev…
> Gary,
>
> One more thing, DS 3.0 doesn’t support .NET 2003. You definitely need DS
> 3.1. If you talk to your friendly Compuware salesmen :slight_smile: they’ll tell you
if
> you’re entitled to a free upgrade.
>
> Alberto.
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Moreira, Alberto
> Sent: Thursday, February 19, 2004 11:17 AM
> To: Windows System Software Devs Interest List
> Cc: Smith, Steve
> Subject: RE: [ntdev] In Stack Queued Spinlocks
>
>
> Gary,
>
> Sorry I misunderstood your question. Steve Smith, who’s the manager for
> DriverWorks, put out two posts on NTDEV explaining what to do. As for the
> barf, what exactly happens ?
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Gary G. Little
> Sent: Thursday, February 19, 2004 10:34 AM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] In Stack Queued Spinlocks
>
>
> Alberto (or Bill),
>
> Ok … DriverStudio 3.0. I used the C wizard to create the project and
> solution, and then use DDKBUILD and your sources file to build the project
> under VS .NET 2003. The DS solution for .NET 2003 barfs which is why I
> created my own SLN and VCPROJ files to use DDKBUILD as an MAKE project.
But
> I digress …
>
> When I used the wizard to create the template I of course told it I wanted
a
> WDM driver, but this beast will ONLY fly under 2000 and above. I need FULL
> DDK functionality, having KeAcquireInStackQueuedSpinlock fail is a bit
> disconcerting when I’m building an XP version of the driver. I’ve frigged
> the sources file as indicated; commented out DRIVERTYPE and set NTVERSION
to
> other than WDM. That only presents a different plethora of faults.
>
> Bottom line … I want an XP WDM driver with access to the complete DDK. I
> can do that with Marks (Hollistech) classes and build environment, how do
I
> do it with Driver Studio?
>
> (Oh … I called tech support … $55 a question. Wow. (Seagates tech
> support is free.)
> (I searched the KB. Nada, at least using the keywords I used.)
>
> –
> Gary G. Little
> Seagate Technologies, LLC
>
> REdirect from other thread:
>
> DS 3.1 has a C wizard, is that what you’re looking for ?
>
> Alberto.
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Gary G. Little
> Sent: Thursday, February 19, 2004 9:48 AM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] Re: Can Interl 2.4G(C) Hyper threading processor run
> 2 hardware interrupts in the same moment?
>
>
> While we are off topic Alberto, how do I get DriverWorks to include ALL of
> NTDDK in a WDM driver so I can use NTDDK functionality?
>
> See other thread re: In Stack Queued Spinlocks.
> –
> Gary G. Little
> Seagate Technologies, LLC
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@compuware.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> The contents of this e-mail are intended for the named addressee only. It
> contains information that may be confidential. Unless you are the named
> addressee or an authorized designee, you may not copy or use it, or
disclose
> it to anyone else. If you received it in error please notify us
immediately
> and then destroy it.
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@compuware.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> The contents of this e-mail are intended for the named addressee only. It
> contains information that may be confidential. Unless you are the named
> addressee or an authorized designee, you may not copy or use it, or
disclose
> it to anyone else. If you received it in error please notify us
immediately
> and then destroy it.
>
>

There’s a few things you can try. If you give me the name on the license, I
can check the details here, and if you have the right to upgrade to DS3.1,
that’s the easiest way to proceed. Meanwhile, you can download DS 3.1 on a
15-day evaluation base, which will give you the opportunity to check if DS
3.1 solves your problems.

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Gary G. Little
Sent: Thursday, February 19, 2004 12:00 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] In Stack Queued Spinlocks

Alberto …

More complicated than that. Seagate’s license is held by a peer in Longmont,
CO. He’s out messing with the movers moving him from Oklahoma. With my luck
my upgrade is probably lost somewhere in the bowels of the Oklahoma City
building.

Note that even though I do indeed hold a valid license, I cannot download an
upgrade as I can download a service pack from Microsoft. Now THAT is a pain
in the ass.

The IDE barf is 3.0 versus 3.1 also.


Gary G. Little
Seagate Technologies, LLC

“Moreira, Alberto” wrote in message
news:xxxxx@ntdev…
> Gary,
>
> One more thing, DS 3.0 doesn’t support .NET 2003. You definitely need DS
> 3.1. If you talk to your friendly Compuware salesmen :slight_smile: they’ll tell you
if
> you’re entitled to a free upgrade.
>
> Alberto.
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Moreira, Alberto
> Sent: Thursday, February 19, 2004 11:17 AM
> To: Windows System Software Devs Interest List
> Cc: Smith, Steve
> Subject: RE: [ntdev] In Stack Queued Spinlocks
>
>
> Gary,
>
> Sorry I misunderstood your question. Steve Smith, who’s the manager for
> DriverWorks, put out two posts on NTDEV explaining what to do. As for the
> barf, what exactly happens ?
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Gary G. Little
> Sent: Thursday, February 19, 2004 10:34 AM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] In Stack Queued Spinlocks
>
>
> Alberto (or Bill),
>
> Ok … DriverStudio 3.0. I used the C wizard to create the project and
> solution, and then use DDKBUILD and your sources file to build the project
> under VS .NET 2003. The DS solution for .NET 2003 barfs which is why I
> created my own SLN and VCPROJ files to use DDKBUILD as an MAKE project.
But
> I digress …
>
> When I used the wizard to create the template I of course told it I wanted
a
> WDM driver, but this beast will ONLY fly under 2000 and above. I need FULL
> DDK functionality, having KeAcquireInStackQueuedSpinlock fail is a bit
> disconcerting when I’m building an XP version of the driver. I’ve frigged
> the sources file as indicated; commented out DRIVERTYPE and set NTVERSION
to
> other than WDM. That only presents a different plethora of faults.
>
> Bottom line … I want an XP WDM driver with access to the complete DDK. I
> can do that with Marks (Hollistech) classes and build environment, how do
I
> do it with Driver Studio?
>
> (Oh … I called tech support … $55 a question. Wow. (Seagates tech
> support is free.)
> (I searched the KB. Nada, at least using the keywords I used.)
>
> –
> Gary G. Little
> Seagate Technologies, LLC
>
> REdirect from other thread:
>
> DS 3.1 has a C wizard, is that what you’re looking for ?
>
> Alberto.
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Gary G. Little
> Sent: Thursday, February 19, 2004 9:48 AM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] Re: Can Interl 2.4G(C) Hyper threading processor run
> 2 hardware interrupts in the same moment?
>
>
> While we are off topic Alberto, how do I get DriverWorks to include ALL of
> NTDDK in a WDM driver so I can use NTDDK functionality?
>
> See other thread re: In Stack Queued Spinlocks.
> –
> Gary G. Little
> Seagate Technologies, LLC
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@compuware.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> The contents of this e-mail are intended for the named addressee only. It
> contains information that may be confidential. Unless you are the named
> addressee or an authorized designee, you may not copy or use it, or
disclose
> it to anyone else. If you received it in error please notify us
immediately
> and then destroy it.
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@compuware.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> The contents of this e-mail are intended for the named addressee only. It
> contains information that may be confidential. Unless you are the named
> addressee or an authorized designee, you may not copy or use it, or
disclose
> it to anyone else. If you received it in error please notify us
immediately
> and then destroy it.
>
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.

mumble grumble … So I sign up for the 14 day trial period. I give my name
and number and offer my first born in sacrifice. Do I get to download it?
Hell no. I have to wait for a representative to contact me. This is glacial.


Gary G. Little
Seagate Technologies, LLC

“Moreira, Alberto” wrote in message
news:xxxxx@ntdev…
> There’s a few things you can try. If you give me the name on the license,
I
> can check the details here, and if you have the right to upgrade to DS3.1,
> that’s the easiest way to proceed. Meanwhile, you can download DS 3.1 on a
> 15-day evaluation base, which will give you the opportunity to check if DS
> 3.1 solves your problems.
>
> Alberto.
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Gary G. Little
> Sent: Thursday, February 19, 2004 12:00 PM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] In Stack Queued Spinlocks
>
>
> Alberto …
>
> More complicated than that. Seagate’s license is held by a peer in
Longmont,
> CO. He’s out messing with the movers moving him from Oklahoma. With my
luck
> my upgrade is probably lost somewhere in the bowels of the Oklahoma City
> building.
>
> Note that even though I do indeed hold a valid license, I cannot download
an
> upgrade as I can download a service pack from Microsoft. Now THAT is a
pain
> in the ass.
>
> The IDE barf is 3.0 versus 3.1 also.
>
> –
> Gary G. Little
> Seagate Technologies, LLC
>
> “Moreira, Alberto” wrote in message
> news:xxxxx@ntdev…
> > Gary,
> >
> > One more thing, DS 3.0 doesn’t support .NET 2003. You definitely need DS
> > 3.1. If you talk to your friendly Compuware salesmen :slight_smile: they’ll tell
you
> if
> > you’re entitled to a free upgrade.
> >
> > Alberto.
> >
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com]On Behalf Of Moreira, Alberto
> > Sent: Thursday, February 19, 2004 11:17 AM
> > To: Windows System Software Devs Interest List
> > Cc: Smith, Steve
> > Subject: RE: [ntdev] In Stack Queued Spinlocks
> >
> >
> > Gary,
> >
> > Sorry I misunderstood your question. Steve Smith, who’s the manager for
> > DriverWorks, put out two posts on NTDEV explaining what to do. As for
the
> > barf, what exactly happens ?
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com]On Behalf Of Gary G. Little
> > Sent: Thursday, February 19, 2004 10:34 AM
> > To: Windows System Software Devs Interest List
> > Subject: Re:[ntdev] In Stack Queued Spinlocks
> >
> >
> > Alberto (or Bill),
> >
> > Ok … DriverStudio 3.0. I used the C wizard to create the project and
> > solution, and then use DDKBUILD and your sources file to build the
project
> > under VS .NET 2003. The DS solution for .NET 2003 barfs which is why I
> > created my own SLN and VCPROJ files to use DDKBUILD as an MAKE project.
> But
> > I digress …
> >
> > When I used the wizard to create the template I of course told it I
wanted
> a
> > WDM driver, but this beast will ONLY fly under 2000 and above. I need
FULL
> > DDK functionality, having KeAcquireInStackQueuedSpinlock fail is a bit
> > disconcerting when I’m building an XP version of the driver. I’ve
frigged
> > the sources file as indicated; commented out DRIVERTYPE and set
NTVERSION
> to
> > other than WDM. That only presents a different plethora of faults.
> >
> > Bottom line … I want an XP WDM driver with access to the complete DDK.
I
> > can do that with Marks (Hollistech) classes and build environment, how
do
> I
> > do it with Driver Studio?
> >
> > (Oh … I called tech support … $55 a question. Wow. (Seagates tech
> > support is free.)
> > (I searched the KB. Nada, at least using the keywords I used.)
> >
> > –
> > Gary G. Little
> > Seagate Technologies, LLC
> >
> > REdirect from other thread:
> >
> > DS 3.1 has a C wizard, is that what you’re looking for ?
> >
> > Alberto.
> >
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com]On Behalf Of Gary G. Little
> > Sent: Thursday, February 19, 2004 9:48 AM
> > To: Windows System Software Devs Interest List
> > Subject: Re:[ntdev] Re: Can Interl 2.4G(C) Hyper threading processor run
> > 2 hardware interrupts in the same moment?
> >
> >
> > While we are off topic Alberto, how do I get DriverWorks to include ALL
of
> > NTDDK in a WDM driver so I can use NTDDK functionality?
> >
> > See other thread re: In Stack Queued Spinlocks.
> > –
> > Gary G. Little
> > Seagate Technologies, LLC
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@compuware.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> >
> > The contents of this e-mail are intended for the named addressee only.
It
> > contains information that may be confidential. Unless you are the named
> > addressee or an authorized designee, you may not copy or use it, or
> disclose
> > it to anyone else. If you received it in error please notify us
> immediately
> > and then destroy it.
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@compuware.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> >
> > The contents of this e-mail are intended for the named addressee only.
It
> > contains information that may be confidential. Unless you are the named
> > addressee or an authorized designee, you may not copy or use it, or
> disclose
> > it to anyone else. If you received it in error please notify us
> immediately
> > and then destroy it.
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@compuware.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> The contents of this e-mail are intended for the named addressee only. It
> contains information that may be confidential. Unless you are the named
> addressee or an authorized designee, you may not copy or use it, or
disclose
> it to anyone else. If you received it in error please notify us
immediately
> and then destroy it.
>
>