#pragma once #include #include #include #include #include #include #include #include #include class OpenInFolder { HWND m_hwnd; winrt::com_ptr m_shellWindows; long m_shellWindowCookie; HRESULT NotifyShellOfNavigation(PCIDLIST_ABSOLUTE pidl); std::wstring m_selectedItem; public: LRESULT CALLBACK WindowProcedure(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam); OpenInFolder(); ~OpenInFolder(); void SetWindow(HWND hwnd); void OnItemSelected(PIDLIST_ABSOLUTE pidl); void OnCreate(); std::wstring GetResult(); };