NCOverlayRegistrationHandler.h 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
  3. *
  4. * This library is free software; you can redistribute it and/or modify it under
  5. * the terms of the GNU Lesser General Public License as published by the Free
  6. * Software Foundation; either version 2.1 of the License, or (at your option)
  7. * any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  11. * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
  12. * details.
  13. */
  14. #ifndef NCOVERLAYREGISTRATIONHANDLER_H
  15. #define NCOVERLAYREGISTRATIONHANDLER_H
  16. #pragma once
  17. #include <windows.h>
  18. class __declspec(dllexport) NCOverlayRegistrationHandler
  19. {
  20. public:
  21. static HRESULT MakeRegistryEntries(const CLSID& clsid, PCWSTR fileType);
  22. static HRESULT RegisterCOMObject(PCWSTR modulePath, PCWSTR friendlyName, const CLSID& clsid);
  23. static HRESULT RemoveRegistryEntries(PCWSTR friendlyName);
  24. static HRESULT UnregisterCOMObject(const CLSID& clsid);
  25. };
  26. #endif