Subversion Repositories SvarDOS

Rev

Rev 2041 | Rev 2043 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2041 Rev 2042
Line 579... Line 579...
579
 
579
 
580
  /* get drive letter or share server\name */
580
  /* get drive letter or share server\name */
581
  splitpath(path, rootPath, dummy);
581
  splitpath(path, rootPath, dummy);
582
  strcat(rootPath, "\\");
582
  strcat(rootPath, "\\");
583
 
583
 
584
  if (GetVolumeInformation(rootPath, volume, VOLLEN,
584
  if (GetVolumeInformation(rootPath, volume, VOLLEN, &serialNum.serialFull) == 0) {
585
      &serialNum.serialFull, NULL, NULL, NULL, 0) == 0)
-
 
586
	showInvalidDrive();
585
    showInvalidDrive();
-
 
586
  }
587
 
587
 
588
  if (serialNum.serialFull == 0)
588
  if (serialNum.serialFull == 0)
589
    serial[0] = '\0';
589
    serial[0] = '\0';
590
  else
590
  else
591
    sprintf(serial, "%04X:%04X",
591
    sprintf(serial, "%04X:%04X",
592
      serialNum.serialParts.b, serialNum.serialParts.a);
592
      serialNum.serialParts.b, serialNum.serialParts.a);
593
}
593
}
594
 
594
 
595
 
595
 
596
#ifndef STDCALL
-
 
597
#define STDCALL __stdcall
-
 
598
#endif
-
 
599
 
-
 
600
 
-
 
601
/**
596
/**
602
 * Stores directory information obtained from FindFirst/Next that
597
 * Stores directory information obtained from FindFirst/Next that
603
 * we may wish to make use of when displaying directory entry.
598
 * we may wish to make use of when displaying directory entry.
604
 * e.g. attribute, dates, etc.
599
 * e.g. attribute, dates, etc.
605
 */
600
 */