Use og GetDriveType

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm using the Win Api GetDriveType by Delphi and if I make an application the network drive give me a valid result, otherwise if I make a win-service on Xp, network drive give me an error (like the drive was not mapped). On win 2k the service works!! Is there someone can help me?? Is an Xp configuration problem

10x
 
Hi

Go to this link her
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/getdrivetype.as
this may help you with your po

Lava


----- sa_z750 wrote: ----

I'm using the Win Api GetDriveType by Delphi and if I make an application the network drive give me a valid result, otherwise if I make a win-service on Xp, network drive give me an error (like the drive was not mapped). On win 2k the service works!! Is there someone can help me?? Is an Xp configuration problem

10x
 
Yes, in Xp the GetDriveType Api return that the drive is not mapped (that's false), in 2k the same code works fine
I don't unterstand why...
In MSDN there aren't notice about this kind of problem...
 
Back
Top