LinkResolver.h 578 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * LinkResolver.h
  3. * --------------
  4. * Purpose: Resolve Windows shell link targets
  5. * Notes : (currently none)
  6. * Authors: OpenMPT Devs
  7. * The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
  8. */
  9. #pragma once
  10. #include "openmpt/all/BuildSettings.hpp"
  11. #include "../common/mptPathString.h"
  12. #include <ShObjIdl.h>
  13. OPENMPT_NAMESPACE_BEGIN
  14. class LinkResolver
  15. {
  16. IShellLink *psl = nullptr;
  17. IPersistFile *ppf = nullptr;
  18. public:
  19. LinkResolver();
  20. ~LinkResolver();
  21. mpt::PathString Resolve(const TCHAR *inPath);
  22. };
  23. OPENMPT_NAMESPACE_END