Paravis USB installer 2.0 (C++ port)
This commit is contained in:
commit
586540c0ac
18 files changed
+4119
No files matched your search
+28
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include <windows.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
struct DiskItem {
|
||||
int number = 0;
|
||||
unsigned long long size = 0;
|
||||
std::wstring name;
|
||||
std::wstring cap;
|
||||
};
|
||||
|
||||
struct PartitionInfo {
|
||||
unsigned long long offset = 0;
|
||||
unsigned long long size = 0;
|
||||
int number = 0;
|
||||
};
|
||||
|
||||
std::vector<DiskItem> ScanUsbDisks();
|
||||
bool GetDiskSizeBytes(int disk, unsigned long long& size);
|
||||
std::vector<int> GetSystemDiskIds();
|
||||
double NominalGb(unsigned long long bytes);
|
||||
std::wstring NominalSize(unsigned long long bytes);
|
||||
std::vector<PartitionInfo> GetPartitions(int disk, bool& ok);
|
||||
std::wstring GetPartitionLetter(int disk, int idx);
|
||||
bool DiskIsInstalled(int disk);
|
||||
std::wstring VerifyLayout(int disk, bool& ok);
|
||||
Reference in new issue
Block a user