INT 21,5E AL=0 Get Machine Name (DOS 3.1+)

AH = 5E

AL = 00 get machine name

DS:DX = far pointer to buffer receiving name string

on return:

AX = error code if CF set, (invalid function)

CH = 0 if name not defined

> 0 if name defined

CL = NETBIOS name number, if CH not 0

DS:DX = far pointer to buffer containing string if CH not 0

- returns pointer to an ASCIIZ string identifying the

computer on a Microsoft network

- output string is a 15 bytes long, padded with blanks and

null terminated

- unpredictable if called without file sharing loaded


Zurück zum Interrupt Info. Roger Morgan / 1998 L.Änderung 29.03.99