Hi could someone possibly convert this VB Code into C++ for me? it would help ALOT!

Private Declare Function GetVolumeSerialNumber Lib "kernel32" Alias "GetVolumeInformationA" (ByVal lpRootPathName As String, ByVal lpVolumeNameBuffer As String, ByVal nVolumeNameSize As Long, lpVolumeSerialNumber As Long, lpMaximumComponentLength As Long, lpFileSystemFlags As Long, ByVal lpFileSystemNameBuffer As String, ByVal nFileSystemNameSize As Long) As Long

Public Function VolumeSerialNumber(ByVal RootPath As String) As String
Dim VolLabel As String
Dim VolSize As Long
Dim Serial As Long
Dim MaxLen As Long
Dim Flags As Long
Dim Name As String
Dim NameSize As Long
Dim s As String
Dim ret As Boolean
ret = GetVolumeSerialNumber(RootPath, VolLabel, VolSize, Serial, MaxLen, Flags, Name, NameSize)
If ret Then
s = Format(Hex(Serial), "00000000")
VolumeSerialNumber = s
VolumeSerialNumber = "00000000"
End If
End Function

i have done some here.

void VolumeSerialNumber(char* RootPath){
char* VolLabel; 
long VolSize;
long Serial;
long MaxLen;
long Flags;
char* Name;
long NameSize;
char* s;
bool ret;

//Im Lost

Thank You, In Return!

go to the MSDN website and look up the function you will find everything you need.