home *** CD-ROM | disk | FTP | other *** search
- .model large,pascal
-
- include ems.inc
-
- .code EMS_TEXT
-
- ;ERR PUBLIC __ErrEmsGetHandleCount(PUSHORT pcOpenHandles);
-
- public __ErrEmsGetHandleCount
- __ErrEmsGetHandleCount proc \
- pcOpenHandles:ptr word
-
- EmsCall 4Bh
- jnz Exit ;Brif error
-
- ;BX = total open emm handles
-
- mov cx,bx
- les bx,[pcOpenHandles]
- mov es:[bx],cx
-
- Exit:
- ret
-
- __ErrEmsGetHandleCount endp
-
- end