Solved

GetVolumeInformation API Call

Posted on 1997-09-09
2
242 Views
Last Modified: 2010-04-04
I need to know the server, volume name and file system type for a remote drive I am connected to using the GetVolumeInformation API Call. Has anybody done this ?
0
Comment
Question by:gideon
2 Comments
 
LVL 3

Accepted Solution

by:
mirek071497 earned 10 total points
ID: 1344541
If you call GetVolumeInformation for other machine then you must call this with lpRootPathName := '\\<server>\<volume>\'; or GetLastError return 123 = ERROR_INVALID_NAME

Answer = add '\' at the end of lpRootPathName.
0
 

Author Comment

by:gideon
ID: 1344542
It works thanks !
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question