home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lxapi32.zip / Include / lxrmcall.h < prev    next >
C/C++ Source or Header  |  2002-04-22  |  4KB  |  133 lines

  1. /*
  2.  * lxrmcall.h
  3.  * Autor:               Stefan Milcke
  4.  * Erstellt am:         12.03.2002
  5.  * Letzte Aenderung am: 08.04.2002
  6.  *
  7. */
  8.  
  9. #ifndef LXRMCALL_H_INCLUDED
  10. #define LXRMCALL_H_INCLUDED
  11.  
  12. /* defines for OS/2 include */
  13.  
  14. /* Standard headers */
  15.  
  16. /* Application headers */
  17.  
  18. /* OS/2 Headers */
  19.  
  20. #include <rmcalls.h>
  21.  
  22. typedef unsigned long RM32RET;
  23.  
  24. struct _RM_ADAPTER
  25. {
  26.  char *name;
  27.  unsigned long rm_hDriver;
  28.  unsigned long rm_hAdapter;
  29.  unsigned short rm_BaseType;
  30.  unsigned short rm_SubType;
  31.  unsigned short rm_InterfaceType;
  32.  unsigned short rm_HostBusType;
  33.  unsigned short rm_HostBusWidth;
  34. };
  35.  
  36. struct lxrm_driver
  37. {
  38.  unsigned long hDriver;
  39.  DRIVERSTRUCT *pDriver;
  40. };
  41.  
  42. struct lxrm_adapter
  43. {
  44.  unsigned long hDriver;
  45.  unsigned long hAdapter;
  46.  ADAPTERSTRUCT *pAdapter;
  47. };
  48.  
  49. struct lxrm_subadapter
  50. {
  51.  unsigned long hDriver;
  52.  unsigned long hParentDevice;
  53.  unsigned long hAdapter;
  54.  ADAPTERSTRUCT *pAdapter;
  55. };
  56.  
  57. struct lxrm_device
  58. {
  59.  unsigned long hDriver;
  60.  unsigned long hAdapter;
  61.  unsigned long hDevice;
  62.  DEVICESTRUCT *pDevice;
  63. };
  64.  
  65. struct lxrm_subdevice
  66. {
  67.  unsigned long hDriver;
  68.  unsigned long hParentAdapter;
  69.  unsigned long hDevice;
  70.  DEVICESTRUCT *pDevice;
  71. };
  72.  
  73. struct lxrm_resource
  74. {
  75.  unsigned long hDriver;
  76.  unsigned long hAdapterOrDevice;
  77.  unsigned long hResource;
  78.  RESOURCESTRUCT *pResource;
  79. };
  80.  
  81. #if (defined(TARGET_OS2) && !defined(NOOS2LXAPI))
  82. extern RM32RET __cdecl (*RM32CreateDriver)(DRIVERSTRUCT*,HDRIVER*);
  83. extern RM32RET __cdecl (*RM32DestroyDriver)(HDRIVER);
  84. extern RM32RET __cdecl (*RM32CreateAdapter)(HDRIVER,HADAPTER*,ADAPTERSTRUCT*,HDEVICE,AHRESOURCE*);
  85. extern RM32RET __cdecl (*RM32DestroyAdapter)(HDRIVER,HADAPTER);
  86. extern RM32RET __cdecl (*RM32CreateDevice)(HDRIVER,HDEVICE*,DEVICESTRUCT*,HADAPTER,AHRESOURCE*);
  87. extern RM32RET __cdecl (*RM32DestroyDevice)(HDRIVER,HDEVICE);
  88. extern RM32RET __cdecl (*RM32AllocResource)(HDRIVER,HRESOURCE*,RESOURCESTRUCT*);
  89. extern RM32RET __cdecl (*RM32DeallocResource)(HDRIVER,HRESOURCE);
  90. extern RM32RET __cdecl (*RM32ModifyResources)(HDRIVER,HADAPTER,USHORT,HRESOURCE);
  91. #else
  92. RM32RET __cdecl RM32CreateDriver(DRIVERSTRUCT*,HDRIVER*);
  93. RM32RET __cdecl RM32DestroyDriver(HDRIVER);
  94. RM32RET __cdecl RM32CreateAdapter(HDRIVER,HADAPTER*,ADAPTERSTRUCT*,HDEVICE,AHRESOURCE*);
  95. RM32RET __cdecl RM32DestroyAdapter(HDRIVER,HADAPTER);
  96. RM32RET __cdecl RM32CreateDevice(HDRIVER,HDEVICE*,DEVICESTRUCT*,HADAPTER,AHRESOURCE*);
  97. RM32RET __cdecl RM32DestroyDevice(HDRIVER,HDEVICE);
  98. RM32RET __cdecl RM32AllocResource(HDRIVER,HRESOURCE*,RESOURCESTRUCT*);
  99. RM32RET __cdecl RM32DeallocResource(HDRIVER,HRESOURCE);
  100. /*
  101. RM32RET __cdecl RM32CreateLDev(HDRIVER,HLDEV*,HDEVICE,LDEVSTRUCT*);
  102. RM32RET __cdecl RM32DestroyLDev(HDRIVER,HLDEV);
  103. RM32RET __cdecl RM32CreateSysName(HDRIVER,HSYSNAME*,HLDEV,SYSNAMESTRUCT*);
  104. RM32RET __cdecl RM32DestroySysName(HDRIVER,HSYSNAME);
  105. RM32RET __cdecl RM32ADDToHDEVICE(HDEVICE*,USHORT,USHORT);
  106. RM32RET __cdecl RM32KeyToHandleList(RMHANDLE,PSZ,HANDLELIST*);
  107. RM32RET __cdecl RM32HandleToType(RMHANDLE,USHORT*);
  108. RM32RET __cdecl RM32HandleToParent(RMHANDLE,RMHANDLE*);
  109. */
  110. RM32RET __cdecl RM32ModifyResources(HDRIVER,HADAPTER,USHORT,HRESOURCE);
  111. /*
  112. RM32RET __cdecl RM32ParseScsiInquiry(VOID*,PSZ,USHORT);
  113. RM32RET __cdecl RM32UpdateAdjunct(HDRIVER,HDEVICE,USHORT,ADJUNCT*);
  114. RM32RET __cdecl RM32AdjToHandleList(ADJUNCT*,HADAPTER,ADJHANDLELIST*);
  115. RM32RET __cdecl RM32HDevToHLDev(HDEVICE,HLDEV,HLDEV*);
  116. RM32RET __cdecl RM32ResToHandleList(RESOURCESTRUCT*,HANDLELIST*);
  117. RM32RET __cdecl RM32GetNodeInfo(RMHANDLE,RM_GETNODE_DATA*,USHORT);
  118. RM32RET __cdecl RM32CreateDetected(HDRIVER,HDETECTED*,DETECTEDSTRUCT*,AHRESOURCE*);
  119. RM32RET __cdecl RM32DestroyDetected(HDRIVER,HDETECTED*);
  120. RM32RET __cdecl RM32DevIDToHandleList(IDTYPE,DEVID,DEVID,DEVID,SEARCHIDFLAGS,HDETECTED,HANDLELIST*);
  121. RM32RET __cdecl RM32HandleToResourceHandleList(RMHANDLE,HANDLELIST*);
  122. RM32RET __cdecl RM32ModifyNodeFlags(HDRIVER,RMHANDLE,USHORT);
  123. RM32RET __cdecl RM32ConvertID(ULONG*,PSZ,USHORT);
  124. RM32RET __cdecl RM32GetCommandLine(PSZ,PSZ,USHORT*,USHORT,USHORT);
  125. RM32RET __cdecl RM32GetVersion(USHORT*,USHORT*);
  126. RM32RET __cdecl RM32SetSnoopLevel(USHORT,USHORT);
  127. RM32RET __cdecl RM32SaveDetectedData(USHORT);
  128. RM32RET __cdecl RM32DeleteDetectedData(USHORT);
  129. */
  130. #endif
  131.  
  132. #endif //LXRMCALL_H_INCLUDED
  133.