diff options
Diffstat (limited to 'src/vm/hostexecutioncontext.h')
-rw-r--r-- | src/vm/hostexecutioncontext.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/vm/hostexecutioncontext.h b/src/vm/hostexecutioncontext.h new file mode 100644 index 0000000000..721c8953ad --- /dev/null +++ b/src/vm/hostexecutioncontext.h @@ -0,0 +1,29 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + + + +#ifndef __hostexecutioncontext_h__ +#define __hostexecutioncontext_h__ + +#ifdef FEATURE_CAS_POLICY + +class HostExecutionContextManager +{ +public: +#ifdef FEATURE_INCLUDE_ALL_INTERFACES + static IHostSecurityContext* m_pRestrictedHostContext; +#endif // FEATURE_INCLUDE_ALL_INTERFACES + static void InitializeRestrictedContext(); + static void SetHostRestrictedContext(); + + static FCDECL0(FC_BOOL_RET, HostPresent); + static FCDECL1(HRESULT, ReleaseSecurityContext, LPVOID handle); + static FCDECL1(HRESULT, CaptureSecurityContext, SafeHandle* hTokenUNSAFE); + static FCDECL2(HRESULT, CloneSecurityContext, SafeHandle* hTokenUNSAFE, SafeHandle* hTokenClonedUNSAFE); + static FCDECL3(HRESULT, SetSecurityContext, SafeHandle* hTokenUNSAFE, CLR_BOOL fReturnPrevious, SafeHandle* hTokenPreviousUNSAFE); +}; +#endif // #ifdef FEATURE_CAS_POLICY +#endif // __hostexecutioncontext_h__ + |