I doing some device driver testing on XP (RTM version and not RCs) and there
seems to be a problem using CreateFile with lpFileName as “\.\M:” with the
error being that the system cannot find the file specified. That is i’m
trying to create a handle to the drive M on the local PC. The code works on
Win2K and NT, but fails in XP at this CreateFile point. Anyone have tried
XP with CreateFile for drives or have faced similar problems and managed to
resolve it??
Or anyone has any idea what is wrong? I’ve checked with XP DDK, and there
doesn’t seem to be any difference for Win2K and XP regarding this.
Anyone??
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Works for me.
Jamey
xxxxx@storagecraft.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Janus Dorin
Sent: Tuesday, October 09, 2001 2:04 AM
To: NT Developers Interest List
Subject: [ntdev] XP and CreateFile
I doing some device driver testing on XP (RTM version and not RCs) and
there
seems to be a problem using CreateFile with lpFileName as “\.\M:” with
the
error being that the system cannot find the file specified. That is i’m
trying to create a handle to the drive M on the local PC. The code
works on
Win2K and NT, but fails in XP at this CreateFile point. Anyone have
tried
XP with CreateFile for drives or have faced similar problems and managed
to
resolve it??
Or anyone has any idea what is wrong? I’ve checked with XP DDK, and
there
doesn’t seem to be any difference for Win2K and XP regarding this.
Anyone??
Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp
You are currently subscribed to ntdev as: xxxxx@storagecraft.com To
unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
No…i was using “\\.\M:” in the actual source code itself.
This is really mighty strange to me too…as I really don’t think there is
anything wrong with the parameters that I’ve passed into the call. The
interesting part is that there is no problem in it working in W2K but having
problem in WinXP RTM version.
From: Nate Bushman
>To: “‘xxxxx@hotmail.com’”
>Subject: RE: XP and CreateFile
>Date: Tue, 9 Oct 2001 13:24:20 -0600
>
>You didn’t happen to use the string “\.\M:” instead of “\\.\M:” did
>you?
>
>-----Original Message-----
>From: Janus Dorin [mailto:xxxxx@hotmail.com]
>Sent: Tuesday, October 09, 2001 3:04 AM
>To: NT Developers Interest List
>Subject: [ntdev] XP and CreateFile
>
>I doing some device driver testing on XP (RTM version and not RCs) and
>there
>
>seems to be a problem using CreateFile with lpFileName as “\.\M:” with the
>error being that the system cannot find the file specified. That is i’m
>trying to create a handle to the drive M on the local PC. The code works
>on
>
>Win2K and NT, but fails in XP at this CreateFile point. Anyone have tried
>XP with CreateFile for drives or have faced similar problems and managed to
>resolve it??
>
>Or anyone has any idea what is wrong? I’ve checked with XP DDK, and there
>doesn’t seem to be any difference for Win2K and XP regarding this.
>
>Anyone??
>
>
>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
>—
>You are currently subscribed to ntdev as: xxxxx@legato.com
>To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Thats precisely the point. The parameters that I’ve passed into the call
shouldn’t be the problem. Any examples that u might be able to share on the
CreateFile call…or any idea that could have caused this unable to find
file specified error??
Appreciate any help. Thanks.
From: “Jamey Kirby”
>Reply-To: “NT Developers Interest List”
>To: “NT Developers Interest List”
>Subject: [ntdev] RE: XP and CreateFile
>Date: Tue, 9 Oct 2001 10:14:38 -0700
>
>Works for me.
>
>Jamey
>xxxxx@storagecraft.com
>
>
>-----Original Message-----
>From: xxxxx@lists.osr.com
>[mailto:xxxxx@lists.osr.com] On Behalf Of Janus Dorin
>Sent: Tuesday, October 09, 2001 2:04 AM
>To: NT Developers Interest List
>Subject: [ntdev] XP and CreateFile
>
>
>I doing some device driver testing on XP (RTM version and not RCs) and
>there
>seems to be a problem using CreateFile with lpFileName as “\.\M:” with
>the
>error being that the system cannot find the file specified. That is i’m
>
>trying to create a handle to the drive M on the local PC. The code
>works on
>Win2K and NT, but fails in XP at this CreateFile point. Anyone have
>tried
>XP with CreateFile for drives or have faced similar problems and managed
>to
>resolve it??
>
>Or anyone has any idea what is wrong? I’ve checked with XP DDK, and
>there
>doesn’t seem to be any difference for Win2K and XP regarding this.
>
>Anyone??
>
>
>Get your FREE download of MSN Explorer at
>http://explorer.msn.com/intl.asp
>
>
>—
>You are currently subscribed to ntdev as: xxxxx@storagecraft.com To
>unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
>—
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com