Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 262
  • Last Modified:

GetVolumeInformation API Call

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
gideon
Asked:
gideon
1 Solution
 
mirek071497Commented:
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
 
gideonAuthor Commented:
It works thanks !
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now