Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Programmers Reference 0.02b - <b>function 5e02h (94-2) set printer setup . dos 3.1</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 5E02h (94-2)    Set Printer Setup                          . DOS 3.1

    Specifies the setup string to be put at the front of files destined
    for a printer on the IBM PC Network or Microsoft Network.

       On entry:      AH         5Eh
                      AL         02h
                      BX         Redirection list index
                      CX         Length of setup string (maximum 64 bytes)
                      DS:SI      Pointer to memory buffer containing the
                                 printer setup string

       Returns:       AX         Error code, if CF is set

       Error codes:   1          Network not loaded

                      Call Function 59h for extended error code information.

  --------------------------------------------------------------------------

    This subfunction of function 5Eh allows individual users on a network
    to specify their own setup strings for a shared printer. This setup
    string will be prefixed to all files sent to the printer from this
    node.

       Notes:         This function is called with a redirection list
                      index in BX; this index value may be determined by
                      calling function 5F02h (Get Redirection List Entry).

                      The setup string must be no longer than 64 bytes.

                      This function is available only in DOS version 3.1
                      and later, and requires that the IBM PC Network or
                      Microsoft Networks program be running.

       Important:     Since the redirection index value may change between
                      the time the redirection list is scanned and this
                      function call is issued, you should call this
                      function immediately after calling Function 5F02h,
                      Get Redirection List Entry. (A call to function
                      5F03h (Redirect Device) or 5F04h (Cancel
                      Redirection) could cause the redirection list entry
                      to change.)

See Also: 5E03h 5F02h 5F03h 5F04h 59h

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson