tid (TID) - input

      Thread identity.

    level (ULONG) - input

      Level of information desired:

      CONTEXT_CONTROL (0x00000001)

        Control registers: SS:ESP, CS:EIP, EFLAGS and EBP
      CONTEXT_INTEGER (0x00000002)
        EAX, EBX, ECX, EDX, ESI and EDI
      CONTEXT_SEGMENTS (0x00000004)
        Segment registers: DS, ES, FS, and GS
      CONTEXT_FLOATING_POINT (0x00000008)
        Numeric coprocessor state
      CONTEXT_FULL
        All of the above

      pcxt (PCONTEXTRECORD) - in/out

        Thread context record.

      ulrc (APIRET) - returns

        Return Code.

        DosQueryThreadContext returns one of the following values:

      • NO_ERROR 87
          ERROR_INVALID_PARAMETER
        90
          ERROR_NOT_FROZEN
        115
          ERROR_PROTECTION_VIOLATION
        309
          ERROR_INVALID_THREADID
        For a full list of error codes, see Errors.


      [Back] [Next]