home *** CD-ROM | disk | FTP | other *** search
- .model large,pascal
-
- include ems.inc
-
- .code EMS_TEXT
-
- ;ERR PUBLIC __ErrEmsGetHandleAttribute(HEMS hems, PBYTE pbAttribute);
-
- public __ErrEmsGetHandleAttribute
- __ErrEmsGetHandleAttribute proc \
- hems:word, \
- pbAttribute:ptr byte
-
- mov dx,[hems]
- mov ax,5200h
- int 67h
-
- ;AL = handle attribute
-
- les bx,[pbAttribute]
- mov es:[bx],al
-
- xchg al,ah ;AL = Error code
- cbw ;AH = 00 or FF
- or ax,ax ;Any error
- jz Exit ;Brif not, return errNoError = 0
- add ax,errEmsBase-0FF80h ;Map to ERR value
-
- Exit:
- ret
-
- __ErrEmsGetHandleAttribute endp
-
- end