/// <summary>
        /// Gets the current user state of this thread.
        /// </summary>
        /// <remarks>
        /// The user state of the thread is the state of the thread
        /// when it is examined by the program that is being debugged.
        /// A thread may have multiple state bits set.
        /// </remarks>
        public int GetUserState(out CorDebugUserState state)
        {
            int pState = default;
            int result = Calli(_this, This[0]->GetUserState, &pState);

            state = (CorDebugUserState)pState;
            return(result);
        }
        int ICorDebugThread.GetUserState(out CorDebugUserState pState)
        {
            Debug.Assert(!IsVirtualThread);

            // CorDebugThread.GetUserState is not implemented
            pState = 0;

            return(Utility.COM_HResults.S_OK);
        }
Example #3
0
 public ThreadProperties(DbgAppDomain appDomain, string kind, ulong id, ulong?managedId, string name, int suspendedCount, CorDebugUserState userState)
 {
     AppDomain      = appDomain;
     Kind           = kind;
     Id             = id;
     ManagedId      = managedId;
     Name           = name;
     SuspendedCount = suspendedCount;
     UserState      = userState;
 }
Example #4
0
 public static bool IsSet(CorDebugUserState value, CorDebugUserState bitValue)
 {
     return((value | bitValue) == value);
 }
        int ICorDebugThread.GetUserState(out CorDebugUserState pState)
        {
            Debug.Assert(!IsVirtualThread);

            // CorDebugThread.GetUserState is not implemented           
            pState = 0;

            return Utility.COM_HResults.S_OK;
        }