scope (ULONG) - input

      An indicator that specifies whether only the session specified by idSession, or all sessions, should be ended.

      Possible values are shown in the following list:

    • STOP_SESSION_SPECIFIED
      Ends only the specified session.

    • STOP_SESSION_ALL
      Ends all sessions.

    idSession (ULONG) - input

      The identifier of the session to be ended.

      The value specified for idSession must have been returned on a previous call to DosStartSession. idSession is ignored if scope is equal to STOP_SESSION_ALL.

    ulrc (APIRET) - returns

      Return code.

      DosStopSession returns one of the following values:

    • NO_ERROR 369
        ERROR_SMG_INVALID_SESSION_ID
      418
        ERROR_SMG_INVALID_CALL
      458
        ERROR_SMG_INVALID_STOP_OPTION
      459
        ERROR_SMG_BAD_RESERVE
      460
        ERROR_SMG_PROCESS_NOT_PARENT
      463
        ERROR_SMG_RETRY_SUB_ALLOC
      For a full list of error codes, see Errors.


    [Back] [Next]