Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
863 B

  1. #include <windows.h>
  2. #include <stdio.h>
  3. #include <ftapi.h>
  4. void __cdecl
  5. main(
  6. int argc,
  7. char** argv
  8. )
  9. {
  10. int i;
  11. BOOL b;
  12. FT_LOGICAL_DISK_ID diskId[100], newDiskId;
  13. if (argc < 3) {
  14. printf("usage: %s <diskId1> <diskId2> ...\n", argv[0]);
  15. return;
  16. }
  17. printf("Creating a volume set for");
  18. for (i = 1; i < argc; i++) {
  19. sscanf(argv[i], "%I64X", &diskId[i - 1]);
  20. printf(" %I64X", diskId[i - 1]);
  21. }
  22. printf(" ...\n");
  23. b = FtCreateLogicalDisk(FtVolumeSet, (WORD) (argc - 1), diskId,
  24. 0, NULL, &newDiskId);
  25. if (b) {
  26. printf("Volume set %I64X created.\n", newDiskId);
  27. } else {
  28. printf("Volume set create failed with %d\n", GetLastError());
  29. }
  30. }