home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v5.zip / DDKX86 / SRC / DEV / DASD / DEVHELP / DHCAL11D.ASM < prev    next >
Encoding:
Assembly Source File  |  1995-04-14  |  2.3 KB  |  141 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 = DHCALL11D.ASM
  15. ;*
  16. ;* DESCRIPTIVE NAME = C callable DevHelp interface
  17. ;*              32-Bit 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      : These DevHelps are unique to OS/2 2.x.
  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. ;*    2/ 5/94           78794  File created
  55. ;*
  56. ;****************************************************************************
  57.  
  58.     .xlist
  59.     include dhmacs.inc
  60.     .list
  61.  
  62.  
  63. ;*
  64. ;*  32-Bit Context Hooks
  65. ;*
  66.  
  67.  
  68. Code    segment dword public 'CODE'
  69.     assume    CS:Code,DS:_DATA
  70.  
  71.  
  72. ;*
  73. ;*
  74. ;*  USHORT APIENTRY DevHlp_AllocateCtxHook( NPFN HookHandler,
  75. ;*                        PULONG HookHandle );
  76. ;*
  77. ;*
  78.  
  79.     DHDef    AllocateCtxHook
  80.     DHArgs    NPFN,    HookHandler
  81.     DHArgs    PULONG, HookHandle
  82.  
  83.     .386p
  84.  
  85.     mov    eax, Stk.HookHandler
  86.     mov    ebx, -1
  87.  
  88.     .286p
  89.     DHCall
  90.     .386p
  91.  
  92.     les    si, Stk.HookHandle
  93.     mov    es:[si], eax
  94.  
  95.     .286p
  96.  
  97.     DHRet1
  98.  
  99. ;*
  100. ;*
  101. ;*  USHORT APIENTRY DevHlp_FreeCtxHook( ULONG HookHandle );
  102. ;*
  103. ;*
  104.  
  105.     DHDef    FreeCtxHook
  106.     DHArgs    ULONG,    HookHandle
  107.  
  108.     .386p
  109.  
  110.     mov    eax, Stk.HookHandle
  111.  
  112.     .286p
  113.     DHCall
  114.  
  115.     DHRet1
  116.  
  117.  
  118. ;*
  119. ;*
  120. ;*  USHORT APIENTRY DevHlp_ArmCtxHook( ULONG HookData, ULONG HookHandle );
  121. ;*
  122. ;*
  123.  
  124.     DHDef    ArmCtxHook
  125.     DHArgs    ULONG,    HookData
  126.     DHArgs    ULONG,    HookHandle
  127.  
  128.     .386p
  129.  
  130.     mov    eax, Stk.HookData
  131.     mov    ebx, Stk.HookHandle
  132.     mov    ecx, -1
  133.  
  134.     .286p
  135.     DHCall
  136.  
  137.     DHRet1
  138.  
  139. Code    Ends
  140.     End
  141.