phandler (PEXCEPTIONREGISTRATIONRECORD) - input

      A pointer to the exception registration record that describes the exception handler to be unregistered.

      This parameter can have one of the following values:

      Address

        A pointer to the exception registration record where the unwind operation should stop.
      0
        UNWIND_ALL
        An exit-unwind operation is performed. This removes all exception handlers from the thread, and ends the thread.
      -1
        END_OF_CHAIN
        All exception handlers for the thread are unwound.

      pTargetIP (PVOID) - input

        A pointer to where DosUnwindException branches after calling all applicable handlers.

      pERepRec (PEXCEPTIONREPORTRECORD) - input

        An optional pointer to an exception record.

        Set this field to 0 if it is not used.

    • LONG) - input
        Optional Parameters.

        DosUnwindException can take up to 5 optional parameters containing variables to preserve on the stack. Each parameter, such as a LONG or a ULONG, must be 4 bytes in size.

      ulrc (APIRET) - returns

        Return code.

        DosUnwindException returns one of the following values:

      • NO_ERROR 1
          ERROR_INVALID_FUNCTION
        For a full list of error codes, see Control Program Programming Reference.


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