Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Int 21h Function 5Eh Subfunction 00h
 Detail                                    Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   21h     Function:   5Eh     Subfunction:   00h
 
  Title:       Get Machine Name [Version 3.1+]
 
  Description:
 
     Returns the address of an ASCIIZ (null-terminated) string
     identifying the local computer. This function call is only
     available when Microsoft Networks is running.
 
     Input                      Output
 
     AH = 5Eh                   If function successful
     AL = 00h                     Carry flag: clear
     DS:DX = segment:offset       CH =  00h (if name not defined)
             of buffer to            <> 00h (if name defined)
             receive string       CL =  NetBIOS name number (if Ch <> 0)
                                  DX:DX = segment:offset of identifier
                                          (if Ch <> 0)
 
                                If function unsuccessful
                                  Carry flag: set
                                  AX = Error code (01h)
                                  See: Error codes
                                    -♦-