"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/drive.h" between
rufus-3.12.tar.gz and rufus-3.13.tar.gz

About: Rufus is a utility that helps format and create bootable USB flash drives, such as USB keys/pendrives, memory sticks, etc (for Linux and Windows).

drive.h  (rufus-3.12):drive.h  (rufus-3.13)
skipping to change at line 44 skipping to change at line 44
#define XP_MSR 0x01 #define XP_MSR 0x01
#define XP_ESP 0x02 #define XP_ESP 0x02
#define XP_UEFI_NTFS 0x04 #define XP_UEFI_NTFS 0x04
#define XP_COMPAT 0x08 #define XP_COMPAT 0x08
#define XP_CASPER 0x10 #define XP_CASPER 0x10
#define PI_MAIN 0 #define PI_MAIN 0
#define PI_ESP 1 #define PI_ESP 1
#define PI_CASPER 2 #define PI_CASPER 2
#define PI_MAX 3
// The following should match VDS_FSOF_FLAGS as much as possible // The following should match VDS_FSOF_FLAGS as much as possible
#define FP_FORCE 0x00000001 #define FP_FORCE 0x00000001
#define FP_QUICK 0x00000002 #define FP_QUICK 0x00000002
#define FP_COMPRESSION 0x00000004 #define FP_COMPRESSION 0x00000004
#define FP_DUPLICATE_METADATA 0x00000008 #define FP_DUPLICATE_METADATA 0x00000008
#define FP_LARGE_FAT32 0x00010000 #define FP_LARGE_FAT32 0x00010000
#define FP_NO_BOOT 0x00020000 #define FP_NO_BOOT 0x00020000
#define FP_CREATE_PERSISTENCE_CONF 0x00040000 #define FP_CREATE_PERSISTENCE_CONF 0x00040000
#define FILE_FLOPPY_DISKETTE 0x00000004 #define FILE_FLOPPY_DISKETTE 0x00000004
#define VDS_SET_ERROR(hr) do { if (hr == S_FALSE) hr = ERROR_SEVERITY_ERROR|FAC( FACILITY_STORAGE)|ERROR_GEN_FAILURE; FormatStatus = hr; SetLastError(hr); } whil e(0) #define VDS_SET_ERROR(hr) do { if (hr != S_OK) { SetLastError(hr); FormatStatus = ERROR_SEVERITY_ERROR|FAC(FACILITY_STORAGE)|ERROR_GEN_FAILURE; } } while(0)
#if !defined(__MINGW32__) #if !defined(__MINGW32__)
typedef enum _FSINFOCLASS { typedef enum _FSINFOCLASS {
FileFsVolumeInformation = 1, FileFsVolumeInformation = 1,
FileFsLabelInformation, FileFsLabelInformation,
FileFsSizeInformation, FileFsSizeInformation,
FileFsDeviceInformation, FileFsDeviceInformation,
FileFsAttributeInformation, FileFsAttributeInformation,
FileFsControlInformation, FileFsControlInformation,
FileFsFullSizeInformation, FileFsFullSizeInformation,
skipping to change at line 300 skipping to change at line 301
CONST_VTBL struct IVdsAsyncVtbl *lpVtbl; CONST_VTBL struct IVdsAsyncVtbl *lpVtbl;
}; };
#define IVdsServiceLoader_LoadService(This, pwszMachineName, ppService) (This)-> lpVtbl->LoadService(This, pwszMachineName, ppService) #define IVdsServiceLoader_LoadService(This, pwszMachineName, ppService) (This)-> lpVtbl->LoadService(This, pwszMachineName, ppService)
#define IVdsServiceLoader_Release(This) (This)->lpVtbl->Release(This) #define IVdsServiceLoader_Release(This) (This)->lpVtbl->Release(This)
#define IVdsService_QueryProviders(This, masks, ppEnum) (This)->lpVtbl->QueryPro viders(This, masks, ppEnum) #define IVdsService_QueryProviders(This, masks, ppEnum) (This)->lpVtbl->QueryPro viders(This, masks, ppEnum)
#define IVdsService_WaitForServiceReady(This) ((This)->lpVtbl->WaitForServiceRea dy(This)) #define IVdsService_WaitForServiceReady(This) ((This)->lpVtbl->WaitForServiceRea dy(This))
#define IVdsService_CleanupObsoleteMountPoints(This) ((This)->lpVtbl->CleanupObs oleteMountPoints(This)) #define IVdsService_CleanupObsoleteMountPoints(This) ((This)->lpVtbl->CleanupObs oleteMountPoints(This))
#define IVdsService_Refresh(This) ((This)->lpVtbl->Refresh(This)) #define IVdsService_Refresh(This) ((This)->lpVtbl->Refresh(This))
#define IVdsService_Reenumerate(This) ((This)->lpVtbl->Reenumerate(This)) #define IVdsService_Reenumerate(This) ((This)->lpVtbl->Reenumerate(This))
#define IVdsService_Release(This) (This)->lpVtbl->Release(This)
#define IVdsSwProvider_QueryInterface(This, riid, ppvObject) (This)->lpVtbl->Que ryInterface(This, riid, ppvObject) #define IVdsSwProvider_QueryInterface(This, riid, ppvObject) (This)->lpVtbl->Que ryInterface(This, riid, ppvObject)
#define IVdsProvider_Release(This) (This)->lpVtbl->Release(This) #define IVdsProvider_Release(This) (This)->lpVtbl->Release(This)
#define IVdsSwProvider_QueryPacks(This, ppEnum) (This)->lpVtbl->QueryPacks(This, ppEnum) #define IVdsSwProvider_QueryPacks(This, ppEnum) (This)->lpVtbl->QueryPacks(This, ppEnum)
#define IVdsSwProvider_Release(This) (This)->lpVtbl->Release(This) #define IVdsSwProvider_Release(This) (This)->lpVtbl->Release(This)
#define IVdsPack_QueryDisks(This, ppEnum) (This)->lpVtbl->QueryDisks(This, ppEnu m) #define IVdsPack_QueryDisks(This, ppEnum) (This)->lpVtbl->QueryDisks(This, ppEnu m)
#define IVdsPack_Release(This) (This)->lpVtbl->Release(This)
#define IVdsDisk_GetProperties(This, pDiskProperties) (This)->lpVtbl->GetPropert ies(This, pDiskProperties) #define IVdsDisk_GetProperties(This, pDiskProperties) (This)->lpVtbl->GetPropert ies(This, pDiskProperties)
#define IVdsDisk_Release(This) (This)->lpVtbl->Release(This) #define IVdsDisk_Release(This) (This)->lpVtbl->Release(This)
#define IVdsDisk_QueryInterface(This, riid, ppvObject) (This)->lpVtbl->QueryInte rface(This, riid, ppvObject) #define IVdsDisk_QueryInterface(This, riid, ppvObject) (This)->lpVtbl->QueryInte rface(This, riid, ppvObject)
#define IVdsAdvancedDisk_QueryPartitions(This, ppPartitionPropArray, plNumberOfP artitions) (This)->lpVtbl->QueryPartitions(This, ppPartitionPropArray, plNumberO fPartitions) #define IVdsAdvancedDisk_QueryPartitions(This, ppPartitionPropArray, plNumberOfP artitions) (This)->lpVtbl->QueryPartitions(This, ppPartitionPropArray, plNumberO fPartitions)
#define IVdsAdvancedDisk_DeletePartition(This, ullOffset, bForce, bForceProtecte d) (This)->lpVtbl->DeletePartition(This, ullOffset, bForce, bForceProtected) #define IVdsAdvancedDisk_DeletePartition(This, ullOffset, bForce, bForceProtecte d) (This)->lpVtbl->DeletePartition(This, ullOffset, bForce, bForceProtected)
#define IVdsAdvancedDisk_Clean(This, bForce, bForceOEM, bFullClean, ppAsync) (Th is)->lpVtbl->Clean(This, bForce, bForceOEM, bFullClean, ppAsync) #define IVdsAdvancedDisk_Clean(This, bForce, bForceOEM, bFullClean, ppAsync) (Th is)->lpVtbl->Clean(This, bForce, bForceOEM, bFullClean, ppAsync)
#define IVdsAdvancedDisk_Release(This) (This)->lpVtbl->Release(This) #define IVdsAdvancedDisk_Release(This) (This)->lpVtbl->Release(This)
#define IEnumVdsObject_Next(This, celt, ppObjectArray, pcFetched) (This)->lpVtbl ->Next(This, celt, ppObjectArray, pcFetched) #define IEnumVdsObject_Next(This, celt, ppObjectArray, pcFetched) (This)->lpVtbl ->Next(This, celt, ppObjectArray, pcFetched)
#define IEnumVdsObject_Release(This) (This)->lpVtbl->Release(This)
#define IVdsPack_QueryVolumes(This, ppEnum) (This)->lpVtbl->QueryVolumes(This, p pEnum) #define IVdsPack_QueryVolumes(This, ppEnum) (This)->lpVtbl->QueryVolumes(This, p pEnum)
#define IVdsVolume_QueryInterface(This, riid, ppvObject) (This)->lpVtbl->QueryIn terface(This, riid, ppvObject) #define IVdsVolume_QueryInterface(This, riid, ppvObject) (This)->lpVtbl->QueryIn terface(This, riid, ppvObject)
#define IVdsVolume_Release(This) (This)->lpVtbl->Release(This) #define IVdsVolume_Release(This) (This)->lpVtbl->Release(This)
#define IVdsVolumeMF3_QueryVolumeGuidPathnames(This, pwszPathArray, pulNumberOfP aths) (This)->lpVtbl->QueryVolumeGuidPathnames(This,pwszPathArray,pulNumberOfPat hs) #define IVdsVolumeMF3_QueryVolumeGuidPathnames(This, pwszPathArray, pulNumberOfP aths) (This)->lpVtbl->QueryVolumeGuidPathnames(This,pwszPathArray,pulNumberOfPat hs)
#define IVdsVolumeMF3_FormatEx2(This, pwszFileSystemTypeName, usFileSystemRevisi on, ulDesiredUnitAllocationSize, pwszLabel, Options, ppAsync) (This)->lpVtbl->Fo rmatEx2(This, pwszFileSystemTypeName, usFileSystemRevision, ulDesiredUnitAllocat ionSize, pwszLabel, Options, ppAsync) #define IVdsVolumeMF3_FormatEx2(This, pwszFileSystemTypeName, usFileSystemRevisi on, ulDesiredUnitAllocationSize, pwszLabel, Options, ppAsync) (This)->lpVtbl->Fo rmatEx2(This, pwszFileSystemTypeName, usFileSystemRevision, ulDesiredUnitAllocat ionSize, pwszLabel, Options, ppAsync)
#define IVdsVolumeMF3_Release(This) (This)->lpVtbl->Release(This) #define IVdsVolumeMF3_Release(This) (This)->lpVtbl->Release(This)
#define IVdsVolume_GetProperties(This, pVolumeProperties) (This)->lpVtbl->GetPro perties(This,pVolumeProperties) #define IVdsVolume_GetProperties(This, pVolumeProperties) (This)->lpVtbl->GetPro perties(This,pVolumeProperties)
#define IVdsAsync_Cancel(This) (This)->lpVtbl->Cancel(This) #define IVdsAsync_Cancel(This) (This)->lpVtbl->Cancel(This)
#define IVdsAsync_QueryStatus(This,pHrResult,pulPercentCompleted) (This)->lpVtbl ->QueryStatus(This,pHrResult,pulPercentCompleted) #define IVdsAsync_QueryStatus(This,pHrResult,pulPercentCompleted) (This)->lpVtbl ->QueryStatus(This,pHrResult,pulPercentCompleted)
#define IVdsAsync_Wait(This,pHrResult,pAsyncOut) (This)->lpVtbl->Wait(This,pHrRe sult,pAsyncOut) #define IVdsAsync_Wait(This,pHrResult,pAsyncOut) (This)->lpVtbl->Wait(This,pHrRe sult,pAsyncOut)
skipping to change at line 365 skipping to change at line 369
int FSType; int FSType;
char proposed_label[16]; char proposed_label[16];
BOOL has_protective_mbr; BOOL has_protective_mbr;
BOOL has_mbr_uefi_marker; BOOL has_mbr_uefi_marker;
struct { struct {
ULONG Allowed; ULONG Allowed;
ULONG Default; ULONG Default;
} ClusterSize[FS_MAX]; } ClusterSize[FS_MAX];
} RUFUS_DRIVE_INFO; } RUFUS_DRIVE_INFO;
extern RUFUS_DRIVE_INFO SelectedDrive; extern RUFUS_DRIVE_INFO SelectedDrive;
extern uint64_t partition_offset[3]; extern uint64_t partition_offset[PI_MAX];
BOOL SetAutoMount(BOOL enable); BOOL SetAutoMount(BOOL enable);
BOOL GetAutoMount(BOOL* enabled); BOOL GetAutoMount(BOOL* enabled);
char* GetPhysicalName(DWORD DriveIndex); char* GetPhysicalName(DWORD DriveIndex);
BOOL DeletePartitions(DWORD DriveIndex); BOOL DeletePartition(DWORD DriveIndex, ULONGLONG PartitionOffset, BOOL bSilent);
BOOL ListVdsVolumes(BOOL bSilent);
HANDLE GetPhysicalHandle(DWORD DriveIndex, BOOL bLockDrive, BOOL bWriteAccess, B OOL bWriteShare); HANDLE GetPhysicalHandle(DWORD DriveIndex, BOOL bLockDrive, BOOL bWriteAccess, B OOL bWriteShare);
char* GetLogicalName(DWORD DriveIndex, uint64_t PartitionOffset, BOOL bKeepTrail ingBackslash, BOOL bSilent); char* GetLogicalName(DWORD DriveIndex, uint64_t PartitionOffset, BOOL bKeepTrail ingBackslash, BOOL bSilent);
char* AltGetLogicalName(DWORD DriveIndex, uint64_t PartitionOffset, BOOL bKeepTr ailingBackslash, BOOL bSilent); char* AltGetLogicalName(DWORD DriveIndex, uint64_t PartitionOffset, BOOL bKeepTr ailingBackslash, BOOL bSilent);
char* GetExtPartitionName(DWORD DriveIndex, uint64_t PartitionOffset); char* GetExtPartitionName(DWORD DriveIndex, uint64_t PartitionOffset);
BOOL WaitForLogical(DWORD DriveIndex, uint64_t PartitionOffset); BOOL WaitForLogical(DWORD DriveIndex, uint64_t PartitionOffset);
HANDLE GetLogicalHandle(DWORD DriveIndex, uint64_t PartitionOffset, BOOL bLockDr ive, BOOL bWriteAccess, BOOL bWriteShare); HANDLE GetLogicalHandle(DWORD DriveIndex, uint64_t PartitionOffset, BOOL bLockDr ive, BOOL bWriteAccess, BOOL bWriteShare);
int GetDriveNumber(HANDLE hDrive, char* path); int GetDriveNumber(HANDLE hDrive, char* path);
BOOL GetDriveLetters(DWORD DriveIndex, char* drive_letters); BOOL GetDriveLetters(DWORD DriveIndex, char* drive_letters);
UINT GetDriveTypeFromIndex(DWORD DriveIndex); UINT GetDriveTypeFromIndex(DWORD DriveIndex);
char GetUnusedDriveLetter(void); char GetUnusedDriveLetter(void);
BOOL IsDriveLetterInUse(const char drive_letter); BOOL IsDriveLetterInUse(const char drive_letter);
char RemoveDriveLetters(DWORD DriveIndex, BOOL bUseLast, BOOL bSilent);
BOOL GetDriveLabel(DWORD DriveIndex, char* letter, char** label); BOOL GetDriveLabel(DWORD DriveIndex, char* letter, char** label);
uint64_t GetDriveSize(DWORD DriveIndex); uint64_t GetDriveSize(DWORD DriveIndex);
BOOL IsMediaPresent(DWORD DriveIndex); BOOL IsMediaPresent(DWORD DriveIndex);
BOOL AnalyzeMBR(HANDLE hPhysicalDrive, const char* TargetName, BOOL bSilent); BOOL AnalyzeMBR(HANDLE hPhysicalDrive, const char* TargetName, BOOL bSilent);
BOOL AnalyzePBR(HANDLE hLogicalVolume); BOOL AnalyzePBR(HANDLE hLogicalVolume);
BOOL GetDrivePartitionData(DWORD DriveIndex, char* FileSystemName, DWORD FileSys temNameSize, BOOL bSilent); BOOL GetDrivePartitionData(DWORD DriveIndex, char* FileSystemName, DWORD FileSys temNameSize, BOOL bSilent);
BOOL UnmountVolume(HANDLE hDrive); BOOL UnmountVolume(HANDLE hDrive);
BOOL MountVolume(char* drive_name, char *drive_guid); BOOL MountVolume(char* drive_name, char *drive_guid);
BOOL AltUnmountVolume(const char* drive_name, BOOL bSilent); BOOL AltUnmountVolume(const char* drive_name, BOOL bSilent);
char* AltMountVolume(DWORD DriveIndex, uint64_t PartitionOffset, BOOL bSilent); char* AltMountVolume(DWORD DriveIndex, uint64_t PartitionOffset, BOOL bSilent);
BOOL RemountVolume(char* drive_name); BOOL RemountVolume(char* drive_name, BOOL bSilent);
BOOL CreatePartition(HANDLE hDrive, int partition_style, int file_system, BOOL m br_uefi_marker, uint8_t extra_partitions); BOOL CreatePartition(HANDLE hDrive, int partition_style, int file_system, BOOL m br_uefi_marker, uint8_t extra_partitions);
BOOL InitializeDisk(HANDLE hDrive); BOOL InitializeDisk(HANDLE hDrive);
BOOL RefreshDriveLayout(HANDLE hDrive); BOOL RefreshDriveLayout(HANDLE hDrive);
const char* GetMBRPartitionType(const uint8_t type); const char* GetMBRPartitionType(const uint8_t type);
const char* GetGPTPartitionType(const GUID* guid); const char* GetGPTPartitionType(const GUID* guid);
const char* GetExtFsLabel(DWORD DriveIndex, uint64_t PartitionOffset); const char* GetExtFsLabel(DWORD DriveIndex, uint64_t PartitionOffset);
BOOL GetDevices(DWORD devnum); BOOL GetDevices(DWORD devnum);
BOOL CyclePort(int index); BOOL CyclePort(int index);
int CycleDevice(int index); int CycleDevice(int index);
BOOL RefreshLayout(DWORD DriveIndex); BOOL RefreshLayout(DWORD DriveIndex);
 End of changes. 9 change blocks. 
4 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)