Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GetVolumeInformation API how?? 1

Status
Not open for further replies.

ByzantianX

Programmer
Dec 18, 2000
103
I'm quite new in Delphi (was programming in VB earlier) and I was wondering what how could I use "GetVolumeInformation" API function from Delphi. Could anyone help me, please?
 
Could you be more specific? What exactly do you want to do?
 
well, using that API function I would like (like I did in VB) to pick some information about the hard drives. But, I really don't know the syntax, particularly, what would the call procedure of that API look like (I could leave VB version if that helps)
 
Something like this?

Code:
var
        fileSystemName, volumeName: array[0..99] of char;
        fileSystemFlags, serialNo, maxFilenameLength: DWORD;
begin
        GetVolumeInformation(PChar('C:\'), volumeName, 
           SizeOf(volumeName), @serialNo,  
           maxFilenameLength, fileSystemFlags,
           fileSystemName, SizeOf(fileSystemName)
           );
 
yes, I suppose so, thank you very much!
It's much easier than in VB, like it usually is!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top