home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v5.zip / DDKX86 / SRC / DEV / DASD / DEVHELP / DHCALL5.ASM < prev    next >
Encoding:
Assembly Source File  |  1995-04-14  |  2.5 KB  |  137 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 = DHCALL5.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  File broken apart.
  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_InternalError( NPSZ MsgText, USHORT MsgLength );
  73. ;*
  74. ;*
  75.  
  76.     DHDef    InternalError
  77.     DHArgs    NPSZ,     MsgText
  78.     DHArgs    USHORT,  MsgLength
  79.  
  80.     mov    si, Stk.MsgText
  81.     mov    di, Stk.MsgLength
  82.  
  83.     DHCall
  84.  
  85.     DHRet1
  86.  
  87. ;*
  88. ;*
  89. ;* USHORT APIENTRY DevHlp_RAS( USHORT Major, USHORT Minor, USHORT TraceSize,
  90. ;*                   PBYTE TraceData);
  91. ;*
  92.  
  93.     DHDef    RAS
  94.     DHArgs    USHORT,  Major
  95.     DHArgs    USHORT,  Minor
  96.     DHArgs    USHORT,  TraceSize
  97.     DHArgs    PBYTE,     TraceData
  98.  
  99.     push    ds
  100.     pop    es
  101.  
  102.     mov    ax, Stk.Major
  103.     mov    cx, Stk.Minor
  104.     mov    bx, Stk.TraceSize
  105.     lds    si, Stk.TraceData
  106.  
  107.     DHCallES
  108.  
  109.     DHRet1
  110.  
  111. ;*
  112. ;*
  113. ;* USHORT APIENTRY DevHlp_RegisterPerfCtrs(NPBYTE pDataBlock, NPBYTE pTextBlock,
  114. ;*                       USHORT Flags);
  115. ;*
  116.  
  117.     DHDef    RegisterPerfCtrs
  118.     DHArgs    NPBYTE,  pDataBlock
  119.     DHArgs    NPBYTE,  pTextBlock
  120.     DHArgs    USHORT,  Flags
  121.  
  122.     mov    si, ds
  123.     mov    ax, Stk.pDataBlock
  124.     mov    di, ds
  125.     mov    bx, Stk.pTextBlock
  126.     mov    cx, Stk.Flags
  127.  
  128.     DHCall
  129.  
  130.     DHRet1
  131.  
  132.  
  133.  
  134. Code    Ends
  135.     End
  136.  
  137.