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 ?
GetDriveType (in kernel32.inc) will give you the same effect.
In fact, I'm sure RealDriveType will actually just call this function anyway.
Thanks, I go to see.
But what about "IsNetDrive" ?
Check the list of return values for GetDriveType - for network drives it returns DRIVE_REMOTE :wink
You are true but it does not indicate if the drive is connected.
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.
You'll know if it's connected or not when your try to access it?
This may help you with existence of drive:
http://www.masmforum.com/simple/index.php?topic=2240.msg17809#msg17809
hth,
farrier