aboutsummaryrefslogtreecommitdiff
path: root/Src/Plugins/Library/ml_webdev/serviceHelper.h
blob: 6359a19936bbfed2faf1027a2fda0fb0d731c810 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef NULLSOFT_WEBDEV_PLUGIN_SERVICE_HELPER_HEADER
#define NULLSOFT_WEBDEV_PLUGIN_SERVICE_HELPER_HEADER

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

#include <wtypes.h>

class ifc_omservice;
class ifc_omserviceeditor;
class ifc_omstorage;

#define WDSVCF_ROOT				0x00000001
#define WDSVCF_SPECIAL			0x00000002
#define WDSVCF_PREAUTHORIZED	0x00000004

HRESULT ServiceHelper_QueryStorage(ifc_omstorage **storage);
HRESULT ServiceHelper_Create(UINT serviceId, LPCWSTR pszName, LPCWSTR pszIcon, LPCWSTR pszUrl, UINT flags, BOOL fSave, ifc_omservice **serviceOut);
HRESULT ServiceHelper_Save(ifc_omservice *service);
HRESULT ServiceHelper_Delete(ifc_omservice *service);
HRESULT ServiceHelper_Reload(ifc_omservice *service);
HRESULT ServiceHelper_UpdateIcon(ifc_omserviceeditor *editor, LPCWSTR pszImage);
HRESULT ServiceHelper_IsSpecial(ifc_omservice *service);
HRESULT ServiceHelper_IsPreAuthorized(ifc_omservice *service);
HRESULT ServiceHelper_RegisterPreAuthorized(ifc_omservice *service);

#endif //NULLSOFT_WEBDEV_PLUGIN_SERVICE_HELPER_HEADER