home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v5.zip / DDKX86 / SRC / DEV / DASD / DEVHELP / DHCALL5A.ASM < prev    next >
Encoding:
Assembly Source File  |  1995-04-14  |  2.7 KB  |  114 lines

  1. ;*DDK*************************************************************************/
  2. ;
  3. ; COPYRIGHT    Copyright (C) 1995 IBM Corporation
  4. ;
  5. ;    The following IBM OS/2 WARP source code is provided to you solely for
  6. ;    the purpose of assisting you in your development of OS/2 WARP device
  7. ;    drivers. You may use this code in accordance with the IBM License
  8. ;    Agreement provided in the IBM Device Driver Source Kit for OS/2. This
  9. ;    Copyright statement may not be removed.;
  10. ;*****************************************************************************/
  11. ; SCCSID = %w% %e%
  12. ;**************************************************************************
  13. ;*
  14. ;* SOURCE FILE NAME = DHCALL5A.ASM
  15. ;*
  16. ;* DESCRIPTIVE NAME = C callable DevHelp Interface
  17. ;*              IDC and Kernel Function DevHelp Calls
  18. ;*
  19. ;*
  20. ;* VERSION = V2.0
  21. ;*
  22. ;* DATE
  23. ;*
  24. ;* DESCRIPTION :
  25. ;*
  26. ;* Purpose:
  27. ;*
  28. ;*
  29. ;*
  30. ;*
  31. ;* FUNCTIONS  :
  32. ;*
  33. ;*
  34. ;*
  35. ;*
  36. ;*
  37. ;*
  38. ;*
  39. ;* NOTES
  40. ;*
  41. ;*
  42. ;* STRUCTURES
  43. ;*
  44. ;* EXTERNAL REFERENCES
  45. ;*
  46. ;*
  47. ;*
  48. ;* EXTERNAL FUNCTIONS
  49. ;*
  50. ;* CHANGE ACTIVITY =
  51. ;*   DATE      FLAG       APAR   CHANGE DESCRIPTION
  52. ;*   --------  ----------  -----  --------------------------------------
  53. ;*   10/22/93  @V74979       74979  Change return type to USHORT
  54. ;*   12/02/93  @V76282       76282  Add DevHelp_DynamicAPI
  55. ;*    2/ 5/94           78794  Created File
  56. ;*
  57. ;****************************************************************************
  58.  
  59.     .xlist
  60.     include dhmacs.inc
  61.     .list
  62.  
  63. ;*
  64. ;*  Inter-Device Driver Communications & Kernel Functions
  65. ;*
  66.  
  67. Code    segment dword public 'CODE'
  68.     assume    CS:Code,DS:_DATA
  69.  
  70. ;*
  71. ;*
  72. ;* USHORT APIENTRY DevHlp_AttachDD( NPSZ DDName, NPBYTE DDTable );
  73. ;*
  74. ;*
  75.  
  76.     DHDef    AttachDD
  77.     DHArgs    NPSZ,     DDName
  78.     DHArgs    NPBYTE,  DDTable
  79.  
  80.     mov    bx, Stk.DDName
  81.     mov    di, Stk.DDTable
  82.  
  83.     DHCall
  84.  
  85.     DHRet1
  86.  
  87. ;*                                       ;@V76282
  88. ;*                                       ;@V76282
  89. ;* USHORT APIENTRY DevHelp_DynamicAPI( PVOID  RoutineAddress,           ;@V76282
  90. ;*                       USHORT ParmCount,           ;@V76282
  91. ;*                       USHORT Flags               ;@V76282
  92. ;*                       PSEL   CallGateSel );           ;@V76282
  93.                                        ;@V76282
  94.     DHDef    DynamicAPI                           ;@V76282
  95.     DHArgs    PVOID,     RoutineAddress                    ;@V76282
  96.     DHArgs    USHORT,  ParmCount                       ;@V76282
  97.     DHArgs    USHORT,  Flags                           ;@V76282
  98.     DHArgs    PSEL,     CallGateSel                       ;@V76282
  99.                                        ;@V76282
  100.     mov    ax, Stk.RoutineAddress[2]                   ;@V76282
  101.     mov    bx, Stk.RoutineAddress[0]                   ;@V76282
  102.     mov    cx, Stk.ParmCount                       ;@V76282
  103.     mov    dh, Stk.Flags                           ;@V76282
  104.                                        ;@V76282
  105.     DHCall                                   ;@V76282
  106.                                        ;@V76282
  107.     les    si, Stk.CallGateSel                       ;@V76282
  108.     mov    es:[si], di                           ;@V76282
  109.                                        ;@V76282
  110.     DHRet1                                   ;@V76282
  111.  
  112. Code    Ends
  113.     End
  114.