/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v3.2.4
src/Files.App.Launcher/OpenInFolder.h
36 строк
767 B
0x5BFA
Code Quality: Renamed Files.OpenDialog (#12845)
09 июл 2023, 17:08
Не верифицирован
09 июл 2023, 17:08
a8942f0
Код
Авторство
О чём код?
// Copyright (c) 2023 Files Community // Licensed under the MIT License. See the LICENSE. #pragma once #include <iostream> #include <objbase.h> #include <exdisp.h> #include <propvarutil.h> #include <shtypes.h> #include <ShlObj_core.h> #include <ShObjIdl_core.h> #include <winrt/base.h> #include <wil/resource.h> class OpenInFolder { HWND m_hwnd; winrt::com_ptr<IShellWindows> m_shellWindows; long m_shellWindowCookie; HRESULT NotifyShellOfNavigation(PCIDLIST_ABSOLUTE pidl); std::wstring m_selectedItem; public: OpenInFolder(); ~OpenInFolder(); LRESULT CALLBACK WindowProcedure(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam); void SetWindow(HWND hwnd); void OnItemSelected(PIDLIST_ABSOLUTE pidl); void OnCreate(); std::wstring GetResult(); };