-
Notifications
You must be signed in to change notification settings - Fork 2
/
PolicyManager.h
37 lines (27 loc) · 896 Bytes
/
PolicyManager.h
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
29
30
31
32
33
34
35
36
37
#ifndef SH_POLICY_MANAGER_H_INCLUDED
#define SH_POLICY_MANAGER_H_INCLUDED
#include "Common.h"
#include "HostContext.h"
class SHPolicyManager : public IHostPolicyManager {
private:
volatile LONG m_cRef;
HostContext* hostContext;
public:
SHPolicyManager(HostContext* hostContext);
virtual ~SHPolicyManager();
// IUnknown functions
STDMETHODIMP_(DWORD) AddRef();
STDMETHODIMP_(DWORD) Release();
STDMETHODIMP QueryInterface(const IID &riid, void **ppvObject);
// IHostPolicyManager functions
STDMETHODIMP OnDefaultAction(
/* [in] */ EClrOperation operation,
/* [in] */ EPolicyAction action);
STDMETHODIMP OnTimeout(
/* [in] */ EClrOperation operation,
/* [in] */ EPolicyAction action) ;
STDMETHODIMP OnFailure(
/* [in] */ EClrFailure failure,
/* [in] */ EPolicyAction action);
};
#endif //SH_POLICY_MANAGER_H_INCLUDED