home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v5.zip / DDKX86 / SRC / DEV / DASD / DEVHELP / DHCALL5B.ASM < prev    next >
Encoding:
Assembly Source File  |  1995-04-14  |  1.9 KB  |  97 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 = DHCALL5B.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. ;*
  56. ;****************************************************************************
  57.  
  58.     .xlist
  59.     include dhmacs.inc
  60.     .list
  61.  
  62. ;*
  63. ;*  Inter-Device Driver Communications & Kernel Functions
  64. ;*
  65.  
  66. Code    segment dword public 'CODE'
  67.     assume    CS:Code,DS:_DATA
  68.  
  69. ;*
  70. ;*
  71. ;* USHORT APIENTRY DevHlp_GetDOSVar( USHORT VarNumber, USHORT VarMember,
  72. ;*                     PPVOID KernelVar );
  73. ;*
  74. ;*
  75.  
  76.     DHDef    GetDOSVar
  77.     DHArgs    USHORT,  VarNumber
  78.     DHArgs    USHORT,  VarMember
  79.     DHArgs    PVOID,     KernelVar
  80.  
  81.  
  82.     mov    al, Stk.VarNumber
  83.     mov    cx, Stk.VarMember
  84.  
  85.     DHCall
  86.  
  87.     les    si, Stk.KernelVar
  88.     mov    es:[si][0], bx
  89.     mov    es:[si][2], ax
  90.  
  91.     DHRet1
  92.  
  93.  
  94.  
  95. Code    Ends
  96.     End
  97.