;       SCCSID = @(#)d_cliacc.asm	6.1 91/02/15
;	SCCSID = @(#)d_cliacc.asm	6.2 90/01/22
; ****************************************************************************
; *									     *
; *			  IBM/Microsoft Confidential			     *
; *									     *
; *		    Copyright (c) IBM Corporation  1987, 1990		     *
; *		    Copyright (c) Microsoft Corp.  1987, 1990		     *
; *			      All Rights Reserved			     *
; *									     *
; ****************************************************************************
;***  D_CLIACC.ASM - API stub routine DosCLIAccess
;
;/*************** START OF SPECIFICATIONS ******************************/
;/*								       */
;/* SUBROUTINE NAME: DosCLIAccess				       */
;/*								       */
;/* SOURCE FILE NAME: D_CLIACC.ASM				       */
;/*								       */
;/* DESCRIPTIVE NAME: Dos CLI Access				       */
;/*								       */
;/* FUNCTION:  None at present					       */
;/*								       */
;/*								       */
;/* WARNING:							       */
;/*	      This routine only checks for valid parameters.	       */
;/*	      It does not actually reserve and free and port addresses.*/
;/*	      This is because Dos 2.x, 3.x has no multitasking, making */
;/*	      port reservations unneccessary.			       */
;/*								       */
;/* ENTRY POINT:						       */
;/*	    LINKAGE:  EXTRN DosCLIAcces:FAR			       */
;/*								       */
;/* ENTRY: No Parameters					       */
;/*								       */
;/* RETURN:							       */
;/*	    AX = 0 if no error, else error code (see DOS 5 spec)       */
;/*								       */
;/* Pseudo Code:						       */
;/*	    set ax = 0						       */
;/*	    return						       */
;/**********************************************************************/


	EXTRN	__api_begin:near
	EXTRN	__api_end:near


_TEXT	segment byte public 'CODE'

	assume	CS:_TEXT, DS:nothing

	public	DOSCLIACCESS

DOSCLIACCESS	 proc	 far
	call	__api_begin	; init bp and save bp,ds,bx,cx,dx,si,di,es
				; required to save: bp,ds,bx
	xor	ax, ax
	call	__api_end	; check sigs & restore es,di,si,dx,cx,bx,ds,bp
	ret
DOSCLIACCESS	 endp

_TEXT	ends

	end
