| c# Programming Glossary: volumeserialnumberHow to programmatically discover mapped network drives on system and their server names? http://stackoverflow.com/questions/1088752/how-to-programmatically-discover-mapped-network-drives-on-system-and-their-serve  VolumeName 0 queryObj VolumeName  Console.WriteLine VolumeSerialNumber 0 queryObj VolumeSerialNumber  catch ManagementException ex..  Console.WriteLine VolumeSerialNumber 0 queryObj VolumeSerialNumber  catch ManagementException ex  MessageBox.Show An error occurred.. 
 Get Hard disk serial Number http://stackoverflow.com/questions/4084402/get-hard-disk-serial-number  win32_logicaldisk.deviceid drive disk.Get Label3.Text VolumeSerialNumber disk VolumeSerialNumber .ToString Here I am getting VolumeSerialNumber.. drive disk.Get Label3.Text VolumeSerialNumber disk VolumeSerialNumber .ToString Here I am getting VolumeSerialNumber . But it is not.. disk VolumeSerialNumber .ToString Here I am getting VolumeSerialNumber . But it is not unique one. If I format the hard disk this will.. 
 Best way to determine if two path reference to same file in C# http://stackoverflow.com/questions/410705/best-way-to-determine-if-two-path-reference-to-same-file-in-c-sharp  GetFileInformationByHandle on the files and comparing dwVolumeSerialNumber nFileIndexHigh and nFileIndexLow. Per MSDN You can compare the.. and nFileIndexLow. Per MSDN You can compare the VolumeSerialNumber and FileIndex members returned in the BY_HANDLE_FILE_INFORMATION.. 
 |