Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Peter Norton Programmer's Guide - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

  Function 5EH (decimal 94) first appeared in DOS version 3.1. It comprises
  several subfunctions that are useful only to programs running in a
  network. (See Figure 17-21.) You must specify a subfunction number in AL
  when you call function 5EH.

  Subfunction
  Hex     Dec              Description
  --------------------------------------------------------------------------
  00H     0                Get machine name.
  02H     2                Set printer setup string.
  03H     3                Get printer setup string.
  --------------------------------------------------------------------------

  Figure 17-21.  Subfunctions available through interrupt 21H, function 5EH.

  Subfunction 00H. This subfunction retrieves the network name of the
  computer on which the program is running. Call it with DS:DX pointing to
  an empty 16-byte buffer. If the function returns successfully, the buffer
  contains the machine name as an ASCIIZ string; CH contains a flag that, if
  nonzero, indicates that the machine name is a valid network name; and CL
  contains the NETBIOS number associated with the machine name.

  Subfunction 02H. This subfunction passes a printer setup string to DOS.
  DOS adds this string to the beginning of any files it sends to a network
  printer. Call this function with an assign-list index number in BX, the
  length of the setup string in CX, and DS:SI pointing to the string itself.
  The assign-list number identifies a particular printer on the network.
  (See function 5FH.) The maximum length of the string is 64 bytes.

  Subfunction 03H. This subfunction complements subfunction 02H. Call it
  with an assign-list index number in BX and with ES:DI pointing to an empty
  64-byte buffer. The subfunction places the requested printer setup string
  in the buffer and returns the length of the string in CX.

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