WDK 5308 & IoAttachDeviceToDeviceStackSafe

Hi,

When I try to build driver with WDK 5308 in WinXP Build Environment then I
get “error C4013: ‘IoAttachDeviceToDeviceStackSafe’ undefined; assuming
extern returning int”.

But IoAttachDeviceToDeviceStackSafe available in Windows XP. This is bug or
what?

Best regards,
Fisyuk Victor
EMail/MSN: xxxxx@rambler.ru
Web: http://rockdbg.siteburg.com

… and in ntifs.h file IoAttachDeviceToDeviceStackSafe defined in
#if (NTDDI_VERSION >= NTDDI_LONGHORN).

So this function not available in WinXP build env.?

“Fisyuk Victor” wrote in message news:xxxxx@ntfsd…
> Hi,
>
> When I try to build driver with WDK 5308 in WinXP Build Environment then I
> get “error C4013: ‘IoAttachDeviceToDeviceStackSafe’ undefined; assuming
> extern returning int”.
>
> But IoAttachDeviceToDeviceStackSafe available in Windows XP. This is bug
> or what?
>
> Best regards,
> Fisyuk Victor
> EMail/MSN: xxxxx@rambler.ru
> Web: http://rockdbg.siteburg.com
>
>

Welcome to header file merging pain.

The API is present in Windows XP. The header file appears to be in
error. I’m sure they’ll fix it before they ship the Vista WDK (after
all, we have to assume they’ll compile the filter examples from the
earlier IFS Kit and those should be using this API.)

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

Looking forward to seeing you at the next OSR File Systems class in
Boston, MA April 18-21, 2006.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Fisyuk Victor
Sent: Tuesday, April 04, 2006 3:45 AM
To: ntfsd redirect
Subject: Re:[ntfsd] WDK 5308 & IoAttachDeviceToDeviceStackSafe

… and in ntifs.h file IoAttachDeviceToDeviceStackSafe defined in
#if (NTDDI_VERSION >= NTDDI_LONGHORN).

So this function not available in WinXP build env.?

“Fisyuk Victor” wrote in message
news:xxxxx@ntfsd…
> Hi,
>
> When I try to build driver with WDK 5308 in WinXP Build Environment
then I
> get “error C4013: ‘IoAttachDeviceToDeviceStackSafe’ undefined;
assuming
> extern returning int”.
>
> But IoAttachDeviceToDeviceStackSafe available in Windows XP. This is
bug
> or what?
>
> Best regards,
> Fisyuk Victor
> EMail/MSN: xxxxx@rambler.ru
> Web: http://rockdbg.siteburg.com
>
>


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

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

Yes, but will they compile them for all platforms?

Ken

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tony Mason
Sent: Tuesday, April 04, 2006 4:06 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] WDK 5308 & IoAttachDeviceToDeviceStackSafe

Welcome to header file merging pain.

The API is present in Windows XP. The header file appears to be in
error. I’m sure they’ll fix it before they ship the Vista WDK (after
all, we have to assume they’ll compile the filter examples from the
earlier IFS Kit and those should be using this API.)

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

Looking forward to seeing you at the next OSR File Systems class in
Boston, MA April 18-21, 2006.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Fisyuk Victor
Sent: Tuesday, April 04, 2006 3:45 AM
To: ntfsd redirect
Subject: Re:[ntfsd] WDK 5308 & IoAttachDeviceToDeviceStackSafe

… and in ntifs.h file IoAttachDeviceToDeviceStackSafe defined in
#if (NTDDI_VERSION >= NTDDI_LONGHORN).

So this function not available in WinXP build env.?

“Fisyuk Victor” wrote in message
news:xxxxx@ntfsd…
> Hi,
>
> When I try to build driver with WDK 5308 in WinXP Build Environment
then I
> get “error C4013: ‘IoAttachDeviceToDeviceStackSafe’ undefined;
assuming
> extern returning int”.
>
> But IoAttachDeviceToDeviceStackSafe available in Windows XP. This is
bug
> or what?
>
> Best regards,
> Fisyuk Victor
> EMail/MSN: xxxxx@rambler.ru
> Web: http://rockdbg.siteburg.com
>
>


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

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


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Fisyuk,

Nice find. I was very surprised to see that this was still wrong in our current versions. I have fixed this, you should see the fix in the Beta2 IFSKit.

To answer other questions:

Yes, we have full automated tests for the WDK that builds every sample in every build environment. These tests are run nightly.

So are you wondering why this was missed? Me too, especially since I know that the sfilter and filespy samples use this API. It turns out that because the sfilter and filespy samples are designed to run on W2K and above they dynamically import this API rather then calling it directly. Thus they never call this API using the prototype in ntifs.h.

If you notice other problems in the headers please let me know and I will get them fixed.

Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no Rights


From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Ken Galipeau
Sent: Tuesday, April 04, 2006 12:26 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] WDK 5308 & IoAttachDeviceToDeviceStackSafe

Yes, but will they compile them for all platforms?
Ken
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Tony Mason
Sent: Tuesday, April 04, 2006 4:06 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] WDK 5308 & IoAttachDeviceToDeviceStackSafe
Welcome to header file merging pain.
The API is present in Windows XP.? The header file appears to be in
error. I’m sure they’ll fix it before they ship the Vista WDK (after
all, we have to assume they’ll compile the filter examples from the
earlier IFS Kit and those should be using this API.)
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
?
Looking forward to seeing you at the next OSR File Systems class in
Boston, MA April 18-21, 2006.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Fisyuk Victor
Sent: Tuesday, April 04, 2006 3:45 AM
To: ntfsd redirect
Subject: Re:[ntfsd] WDK 5308 & IoAttachDeviceToDeviceStackSafe
… and in ntifs.h file IoAttachDeviceToDeviceStackSafe defined in
??? #if (NTDDI_VERSION >= NTDDI_LONGHORN).
So this function not available in WinXP build env.?

“Fisyuk Victor” wrote in message
news:xxxxx@ntfsd…
> Hi,
>
> When I try to build driver with WDK 5308 in WinXP Build Environment
then I
> get “error C4013: ‘IoAttachDeviceToDeviceStackSafe’ undefined;
assuming
> extern returning int”.
>
> But IoAttachDeviceToDeviceStackSafe available in Windows XP. This is
bug
> or what?
>
> Best regards,
> Fisyuk Victor
> EMail/MSN: xxxxx@rambler.ru
> Web: http://rockdbg.siteburg.com
>
>


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com