TitanEngine/scylla_wrapper/DeviceNameResolver.h

31 lines
506 B
C++

#include <Windows.h>
#pragma once
#include <Windows.h>
#include <vector>
class HardDisk
{
public:
WCHAR shortName[3];
WCHAR longName[MAX_PATH];
size_t longNameLength;
};
class DeviceNameResolver
{
public:
DeviceNameResolver();
~DeviceNameResolver();
bool resolveDeviceLongNameToShort(const WCHAR* sourcePath, WCHAR* targetPath);
private:
std::vector<HardDisk> deviceNameList;
void initDeviceNameList();
void fixVirtualDevices();
};