;*DDK*************************************************************************/
;
; COPYRIGHT    Copyright (C) 1995 IBM Corporation
;
;    The following IBM OS/2 WARP source code is provided to you solely for
;    the purpose of assisting you in your development of OS/2 WARP device
;    drivers. You may use this code in accordance with the IBM License
;    Agreement provided in the IBM Device Driver Source Kit for OS/2. This
;    Copyright statement may not be removed.;
;*****************************************************************************/
; SCCSID = %w% %e%
;**************************************************************************
;*
;* SOURCE FILE NAME = DHCALL5A.ASM
;*
;* DESCRIPTIVE NAME = C callable DevHelp Interface
;*		      IDC and Kernel Function DevHelp Calls
;*
;*
;* VERSION = V2.0
;*
;* DATE
;*
;* DESCRIPTION :
;*
;* Purpose:
;*
;*
;*
;*
;* FUNCTIONS  :
;*
;*
;*
;*
;*
;*
;*
;* NOTES
;*
;*
;* STRUCTURES
;*
;* EXTERNAL REFERENCES
;*
;*
;*
;* EXTERNAL FUNCTIONS
;*
;* CHANGE ACTIVITY =
;*   DATE      FLAG	   APAR   CHANGE DESCRIPTION
;*   --------  ----------  -----  --------------------------------------
;*   10/22/93  @V74979	   74979  Change return type to USHORT
;*   12/02/93  @V76282	   76282  Add DevHelp_DynamicAPI
;*    2/ 5/94		   78794  Created File
;*
;****************************************************************************

	.xlist
	include dhmacs.inc
	.list

;*
;*  Inter-Device Driver Communications & Kernel Functions
;*

Code	segment dword public 'CODE'
	assume	CS:Code,DS:_DATA

;*
;*
;* USHORT APIENTRY DevHlp_AttachDD( NPSZ DDName, NPBYTE DDTable );
;*
;*

	DHDef	AttachDD
	DHArgs	NPSZ,	 DDName
	DHArgs	NPBYTE,  DDTable

	mov	bx, Stk.DDName
	mov	di, Stk.DDTable

	DHCall

	DHRet1

;*								       ;@V76282
;*								       ;@V76282
;* USHORT APIENTRY DevHelp_DynamicAPI( PVOID  RoutineAddress,	       ;@V76282
;*				       USHORT ParmCount,	       ;@V76282
;*				       USHORT Flags		       ;@V76282
;*				       PSEL   CallGateSel );	       ;@V76282
								       ;@V76282
	DHDef	DynamicAPI					       ;@V76282
	DHArgs	PVOID,	 RoutineAddress 			       ;@V76282
	DHArgs	USHORT,  ParmCount				       ;@V76282
	DHArgs	USHORT,  Flags					       ;@V76282
	DHArgs	PSEL,	 CallGateSel				       ;@V76282
								       ;@V76282
	mov	ax, Stk.RoutineAddress[2]			       ;@V76282
	mov	bx, Stk.RoutineAddress[0]			       ;@V76282
	mov	cx, Stk.ParmCount				       ;@V76282
	mov	dh, Stk.Flags					       ;@V76282
								       ;@V76282
	DHCall							       ;@V76282
								       ;@V76282
	les	si, Stk.CallGateSel				       ;@V76282
	mov	es:[si], di					       ;@V76282
								       ;@V76282
	DHRet1							       ;@V76282

Code	Ends
	End
