public static unsafe void SetMyTransactionVote(int vote)
        {
            IContextState *statePtr = null;

            int modopt(IsLong) context = GetContext(&IID_IContextState, (void **)&statePtr);

            if ((context >= 0) && (null != statePtr))
            {
                context = **(((int *)statePtr))[20](statePtr, vote);
                * *(((int *)statePtr))[8](statePtr);
            }
            if (context == -2147467262)
            {
                context = -2147164156;
            }
            else if (context >= 0)
            {
                return;
            }
            Marshal.ThrowExceptionForHR(context);
        }
        public static unsafe void SetDeactivateOnReturn([MarshalAs(UnmanagedType.U1)] bool deactivateOnReturn)
        {
            IContextState *statePtr = null;

            int modopt(IsLong) context = GetContext(&IID_IContextState, (void **)&statePtr);

            if ((context >= 0) && (null != statePtr))
            {
                short num2 = deactivateOnReturn ? ((short)(-1)) : ((short)0);
                context = **(((int *)statePtr))[12](statePtr, num2);
                * *(((int *)statePtr))[8](statePtr);
            }
            if (context == -2147467262)
            {
                context = -2147164156;
            }
            else if (context >= 0)
            {
                return;
            }
            Marshal.ThrowExceptionForHR(context);
        }
        public static unsafe int GetMyTransactionVote()
        {
            int            num2;
            IContextState *statePtr = null;

            int modopt(IsLong) context = GetContext(&IID_IContextState, (void **)&statePtr);

            if ((context >= 0) && (null != statePtr))
            {
                context = **(((int *)statePtr))[0x18](statePtr, &num2);
                * *(((int *)statePtr))[8](statePtr);
                if (context >= 0)
                {
                    return(num2);
                }
            }
            if (context == -2147467262)
            {
                context = -2147164156;
            }
            Marshal.ThrowExceptionForHR(context);
            return(num2);
        }
        public static unsafe bool GetDeactivateOnReturn()
        {
            IContextState *statePtr = null;

            int modopt(IsLong) context = GetContext(&IID_IContextState, (void **)&statePtr);

            if ((context >= 0) && (null != statePtr))
            {
                short num2;
                context = **(((int *)statePtr))[0x10](statePtr, &num2);
                * *(((int *)statePtr))[8](statePtr);
                if (context >= 0)
                {
                    return(-1 == num2);
                }
            }
            if (context == -2147467262)
            {
                context = -2147164156;
            }
            Marshal.ThrowExceptionForHR(context);
            return(false);
        }