idSession (ULONG) - input

      The identifier of the session to be switched to the foreground.

      The value specified must have been returned on a previous call to DosStartSession, except that a value of zero indicates switching the caller's session (that is, the parent session) to the foreground.

    ulrc (APIRET) - returns

      Return Code.

      DosSelectSession returns one of the following values:

    • NO_ERROR 224
        ERROR_SMG_NO_TARGET_WINDOW
      369
        ERROR_SMG_INVALID_SESSION_ID
      418
        ERROR_SMG_INVALID_CALL
      459
        ERROR_SMG_BAD_RESERVE
      460
        ERROR_SMG_PROCESS_NOT_PARENT
      463
        ERROR_SMG_RETRY_SUB_ALLOC


      [Back] [Next]