The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Grincheux on September 06, 2005, 05:23:39 AM

Title: RealDriveType
Post by: Grincheux on September 06, 2005, 05:23:39 AM
Where can I find the "RealDriveType" function. In the SDK it is located in the shlobj.h file, but in masm this one does not exist ?
Title: Re: RealDriveType
Post by: Tedd on September 06, 2005, 11:10:25 AM
GetDriveType (in kernel32.inc) will give you the same effect.
In fact, I'm sure RealDriveType will actually just call this function anyway.
Title: Re: RealDriveType
Post by: Grincheux on September 06, 2005, 11:15:11 AM
Thanks, I go to see.

But what about "IsNetDrive" ?

Title: Re: RealDriveType
Post by: Tedd on September 06, 2005, 11:18:53 AM
Check the list of return values for GetDriveType - for network drives it returns DRIVE_REMOTE :wink
Title: Re: RealDriveType
Post by: Grincheux on September 06, 2005, 11:48:04 AM
You are true but it does not indicate if the drive is connected.
Title: Re: RealDriveType
Post by: MichaelW on September 06, 2005, 12:22:25 PM
GetProcedureAddress fails for "RealDriveType" even for version 5.00.3900.7032 of shell32.dll

According to this the function was documented as part of the December 2002 settlement:

http://members.ozemail.com.au/~geoffch/samples/win32/shell/shell32/functions/

There seems to be some agreement that the ordinal number is 524.
Title: Re: RealDriveType
Post by: Tedd on September 06, 2005, 04:50:02 PM
You'll know if it's connected or not when your try to access it?
Title: Re: RealDriveType
Post by: farrier on September 07, 2005, 07:55:57 AM
This may help you with existence of drive:

http://www.masmforum.com/simple/index.php?topic=2240.msg17809#msg17809

hth,

farrier