/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v3.8
src/Files.App.Launcher/OpenInFolder.h
36 строк
767 B
0x5bfa
Code Quality: Update license year (#14933)
11 мар 2024, 23:55
Не верифицирован
11 мар 2024, 23:55
47108c4
Код
Авторство
О чём код?
// Copyright (c) 2024 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(); };