1
0

serviceHelper.h 1.0 KB

12345678910111213141516171819202122232425262728
  1. #ifndef NULLSOFT_WEBDEV_PLUGIN_SERVICE_HELPER_HEADER
  2. #define NULLSOFT_WEBDEV_PLUGIN_SERVICE_HELPER_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <wtypes.h>
  7. class ifc_omservice;
  8. class ifc_omserviceeditor;
  9. class ifc_omstorage;
  10. #define WDSVCF_ROOT 0x00000001
  11. #define WDSVCF_SPECIAL 0x00000002
  12. #define WDSVCF_PREAUTHORIZED 0x00000004
  13. HRESULT ServiceHelper_QueryStorage(ifc_omstorage **storage);
  14. HRESULT ServiceHelper_Create(UINT serviceId, LPCWSTR pszName, LPCWSTR pszIcon, LPCWSTR pszUrl, UINT flags, BOOL fSave, ifc_omservice **serviceOut);
  15. HRESULT ServiceHelper_Save(ifc_omservice *service);
  16. HRESULT ServiceHelper_Delete(ifc_omservice *service);
  17. HRESULT ServiceHelper_Reload(ifc_omservice *service);
  18. HRESULT ServiceHelper_UpdateIcon(ifc_omserviceeditor *editor, LPCWSTR pszImage);
  19. HRESULT ServiceHelper_IsSpecial(ifc_omservice *service);
  20. HRESULT ServiceHelper_IsPreAuthorized(ifc_omservice *service);
  21. HRESULT ServiceHelper_RegisterPreAuthorized(ifc_omservice *service);
  22. #endif //NULLSOFT_WEBDEV_PLUGIN_SERVICE_HELPER_HEADER