#include <volpropsheet.h>
Definition at line 115 of file volpropsheet.h.
◆ BtrfsChangeDriveLetter()
BtrfsChangeDriveLetter::BtrfsChangeDriveLetter |
( |
HWND |
hwnd, |
|
|
const wstring_view & |
fn |
|
) |
| |
|
inline |
◆ DlgProc()
Definition at line 1526 of file volpropsheet.cpp.
1526 {
1527 try {
1528 switch (uMsg) {
1530 {
1532
1534
1537
1538 drv =
L"\\DosDevices\\?:";
1539
1540 for (
wchar_t l =
'A';
l <=
'Z';
l++) {
1541 bool found = true;
1542
1544
1545 try {
1547
1549 found = false;
1552 found = false;
1553 else
1554 throw;
1555 }
1556
1557 if (!found) {
1559
1562
1564 }
1565 }
1566
1567 break;
1568 }
1569
1576 return true;
1577
1580 return true;
1581 }
1582 break;
1583 }
1584 break;
1585 }
1588 }
1589
1590 return false;
1591}
void do_change(HWND hwndDlg)
vector< wchar_t > letters
std::vector< mountmgr_point > query_points(const std::wstring_view &symlink=L"", const std::wstring_view &unique_id=L"", const std::wstring_view &device_name=L"") const
void error_message(HWND hwnd, const char *msg)
#define IDC_DRIVE_LETTER_COMBO
static HMODULE MODULEINFO DWORD cb
__crt_unique_heap_ptr< wchar_t > const wstring(_malloc_crt_t(wchar_t, maxsize))
void push_back(const _Tp &__x=_STLP_DEFAULT_CONSTRUCTED(_Tp))
#define STATUS_OBJECT_NAME_NOT_FOUND
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
Referenced by dlg_proc().
◆ do_change()
void BtrfsChangeDriveLetter::do_change |
( |
HWND |
hwndDlg | ) |
|
|
private |
Definition at line 1476 of file volpropsheet.cpp.
1476 {
1478
1481
1482 if (
fn.length() == 3 &&
fn[1] ==
L':' &&
fn[2] ==
L'\\') {
1483 dd =
L"\\DosDevices\\?:";
1484
1486 } else
1487#ifndef __REACTOS__
1489#else
1490 error_message(
nullptr,
"Volume path was not root of drive.");
1491#endif
1492
1495
1496 {
1498
1500#ifndef __REACTOS__
1502#else
1504#endif
1505
1507 }
1508
1509 wstring new_dd =
L"\\DosDevices\\?:";
1511
1513
1514 try {
1516 } catch (...) {
1517
1519 throw;
1520 }
1521 }
1522
1524}
void create_point(const std::wstring_view &symlink, const std::wstring_view &device) const
void delete_points(const std::wstring_view &symlink, const std::wstring_view &unique_id=L"", const std::wstring_view &device_name=L"") const
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
const char * dev_name(int device)
LRESULT WINAPI SendDlgItemMessageW(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
Referenced by DlgProc().
◆ show()
void BtrfsChangeDriveLetter::show |
( |
| ) |
|
Definition at line 1605 of file volpropsheet.cpp.
1605 {
1607}
static INT_PTR __stdcall dlg_proc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
#define MAKEINTRESOURCEW(i)
INT_PTR WINAPI DialogBoxParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
Referenced by ShowChangeDriveLetterW().
◆ fn
◆ hwnd
HWND BtrfsChangeDriveLetter::hwnd |
|
private |
◆ letters
The documentation for this class was generated from the following files: