home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v5.zip / DDKX86 / SRC / DEV / RESOURCE / RMCALLS / RMLIB.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-14  |  3.3 KB  |  109 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. /*****************************************************************************/
  12. /**************************************************************************
  13.  *
  14.  * SOURCE FILE NAME =  PNPLIB.H
  15.  *
  16.  * DESCRIPTIVE NAME =  PNP function prototypes
  17.  *
  18.  *
  19.  *
  20.  * VERSION = V1.01
  21.  *
  22.  * DATE
  23.  *
  24.  * DESCRIPTION :
  25.  *
  26.  * Purpose:
  27.  *
  28.  *
  29.  *
  30.  * FUNCTIONS  :
  31.  *
  32.  * NOTES
  33.  *
  34.  *
  35.  * STRUCTURES
  36.  *
  37.  * EXTERNAL REFERENCES
  38.  *
  39.  *
  40.  *
  41.  * EXTERNAL FUNCTIONS
  42.  *
  43. */
  44.  
  45. #ifndef __RM_LIB__
  46. #define __RM_LIB__
  47. #include <rmcalls.h>
  48.  
  49.  
  50.  
  51. #define    RMNAME         "RESMGR$ "
  52.  
  53.  
  54.  
  55. /*********************/
  56. /*  RMFlags          */
  57. /*********************/
  58. #define RM_CPL_RING3      0x0003
  59.  
  60. #define RMF_UNINITIALIZED 0x0000
  61. #define RMF_INITIALIZED   0x0001
  62. #define RMF_NO_RM         0x0002
  63.  
  64.  
  65. #define RMCALLBASE               0
  66. #define RMRESERVED              (RMCALLBASE+0)
  67. #define RMGETVERSION            (RMCALLBASE+1)
  68. #define RMCREATEDRIVER          (RMCALLBASE+2)
  69. #define RMDESTROYDRIVER         (RMCALLBASE+3)
  70. #define RMCREATEADAPTER         (RMCALLBASE+4)
  71. #define RMDESTROYADAPTER        (RMCALLBASE+5)
  72. #define RMCREATEDEVICE          (RMCALLBASE+6)
  73. #define RMDESTROYDEVICE         (RMCALLBASE+7)
  74. #define RMALLOCRESOURCE         (RMCALLBASE+8)
  75. #define RMDEALLOCRESOURCE       (RMCALLBASE+9)
  76. #define RMCLAIMRESOURCES        (RMCALLBASE+10)
  77. #define RMRELEASERESOURCES      (RMCALLBASE+11)
  78. #define RMCREATELDEV            (RMCALLBASE+12)
  79. #define RMDESTROYLDEV           (RMCALLBASE+13)
  80. #define RMCREATESYSNAME         (RMCALLBASE+14)
  81. #define RMDESTROYSYSNAME        (RMCALLBASE+15)
  82. #define RMADDTOHDEVICE          (RMCALLBASE+16)
  83. #define RMKEYTOHANDLELIST       (RMCALLBASE+17)
  84. #define RMHANDLETOTYPE          (RMCALLBASE+18)
  85. #define RMHANDLETOPARENT        (RMCALLBASE+19)
  86. #define RMUPDATEADJUNCT         (RMCALLBASE+20)
  87. #define RMADJTOHANDLELIST       (RMCALLBASE+21)
  88. #define RMHDEVTOHLDEV           (RMCALLBASE+22)
  89. #define RMRESTOHANDLELIST       (RMCALLBASE+23)
  90. #define RMACTIVATEADAPTER       (RMCALLBASE+24)
  91. #define RMDEACTIVATEADAPTER     (RMCALLBASE+25)
  92. #define RMCREATELINKDEVICE      (RMCALLBASE+26)
  93. #define RMMODIFYRESOURCES       (RMCALLBASE+27)
  94. #define RMGETNODEINFO           (RMCALLBASE+28)
  95. #define RMPARSESCSIINQUIRY      (RMCALLBASE+29)
  96. /* Note add new RMAPIs here and update RMLASTCALL) */
  97. #define RMLASTCALL              (RMCALLBASE+30)
  98.  
  99. #define RMTABLESIZE  RMLASTCALL
  100.  
  101.  
  102. USHORT FAR  CallRM( USHORT RMIndex, PVOID pCallerParm );
  103. USHORT NEAR GetCS(VOID);
  104.  
  105. #pragma alloc_text( RMCode, CallRM )
  106. #pragma alloc_text( RMCode, GetCS )
  107.  
  108. #endif
  109.