ThreadID (ULONG) - input

      The thread ID for which information is requested. If this is zero, then information for all threads in the process will be returned.

    ID (ULONG) - input

      The process ID (or task ID for a non-OS/2 task) for which information is requested. If this is set to zero, then information for the current process will be returned.

    InfoLevel (ULONG) - input

      The level of information to return.

      Must be one of the following values:

      QTI_BASIC

        Basic information
      QTI_EXTENDED
        Extended information. Extended information causes the system to perform internal queries and is slow.

      InfoBuffer (PVOID) - output

        Location to return the output information. The buffer must be 4-byte (32-bit) aligned.

      InfoBufferLength (PULONG) - in/out

          Input - Size of the InfoBuffer. Output - The size of the buffer returned.

        If the caller's buffer is too small, then this will be set to the required size.

      InfoEntryCount (PULONG) - output

        The count of entries returned.

      ulrc (APIRET) - returns

        Return code.

      • NO_ERROR 8
          ERROR_NOT_ENOUGH_MEMORY
        87
          ERROR_INVALID_PARAMETER
        111
          ERROR_BUFFER_OVERFLOW
        303
          ERROR_INVALID_PROCID
        309
          ERROR_INVALID_THREADID


        [Back: DosQueryThreadInfo Return Value - ulrc]
        [Next: DosQueryThreadInfo - Remarks]