home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 January / Chip_1997-01_cd.bin / ms95 / disk22 / dir08 / f012390.re_ / f012390.re
Text File  |  1996-04-02  |  3KB  |  106 lines

  1. /*----------------------------------------------------------------------+
  2. |                                    |
  3. |  Copyright (c) 1985-93;  Bentley Systems, Inc., All rights reserved.    |
  4. |                                    |
  5. | "MicroStation", "MDL", and "MicroCSL" are trademarks of Bentley    |
  6. |  Systems, Inc.                            |
  7. |                                    |
  8. |  Limited permission is hereby granted to reproduce and modify this    |
  9. |  copyrighted material provided that the resulting code is used only     |
  10. |  in conjunction with Bentley Systems products under the terms of the    |
  11. |  license agreement provided therein, and that this notice is retained    |
  12. |  in its entirety in any such reproduction or modification.        |
  13. |                                    |
  14. +----------------------------------------------------------------------*/
  15. /*----------------------------------------------------------------------+
  16. |                                    |
  17. |   msw32utl.fdf  -- Misc NT utility functions .fdf file                |
  18. |                                    |
  19. |   $Workfile:   msw32utl.fdf  $
  20. |   $Revision:   6.0  $
  21. |          $Date:   Thu Oct 21 10:42:46 1993  $
  22. |                                    |
  23. +----------------------------------------------------------------------*/
  24. #ifndef __msw32utilFDF__
  25. #define __msw32utilFDF__
  26.  
  27. /*----------------------------------------------------------------------+
  28. |                                    |
  29. |   Header File Dependencies                        |
  30. |                                    |
  31. +----------------------------------------------------------------------*/
  32. #include <basedefs.h>
  33. #include <w32dde.h>
  34.  
  35.  
  36. /* Global Memory Flags */
  37. #if ! defined (GMEM_FIXED)
  38. # define GMEM_FIXED          0x0000
  39. # define GMEM_MOVEABLE       0x0002
  40. # define GMEM_NOCOMPACT      0x0010
  41. # define GMEM_NODISCARD      0x0020
  42. # define GMEM_ZEROINIT       0x0040
  43. # define GMEM_MODIFY         0x0080
  44. # define GMEM_DISCARDABLE    0x0100
  45. # define GMEM_NOT_BANKED     0x1000
  46. # define GMEM_SHARE          0x2000
  47. # define GMEM_DDESHARE       0x2000
  48. # define GMEM_NOTIFY         0x4000
  49. # define GMEM_LOWER          GMEM_NOT_BANKED
  50. # define GMEM_VALID_FLAGS    0x7F72
  51. # define GMEM_INVALID_HANDLE 0x8000
  52.  
  53. # define GHND                (GMEM_MOVEABLE | GMEM_ZEROINIT)
  54. # define GPTR                (GMEM_FIXED | GMEM_ZEROINIT)
  55.  
  56. /* Flags returned by GlobalFlags (in addition to GMEM_DISCARDABLE) */
  57. # define GMEM_DISCARDED      0x4000
  58. # define GMEM_LOCKCOUNT      0x00FF
  59. #endif
  60.  
  61.  
  62.  
  63. /*======================================================================+
  64. |                                    |
  65. |   Major Public Code Section                        |
  66. |                                    |
  67. +======================================================================*/
  68.  
  69. DWORD    mdlWin32_GetLastError
  70. (
  71. void
  72. );
  73.  
  74. void    mdlWin32_SetLastError
  75. (
  76. DWORD        errno
  77. );
  78.  
  79. int    mdlWin32_readDataFromHandle
  80. (
  81. HANDLE        hMem,
  82. void          **mdlMemPP,
  83. UInt           *mdlMemLen
  84. );
  85.  
  86. HANDLE mdlWin32_createDataHandle
  87. (
  88. UINT        flags,
  89. void           *mdlMemP,
  90. UInt        mdlMemLen
  91. );
  92.  
  93. HANDLE mdlWin32_destroyDataHandle
  94. (
  95. HANDLE        hMem
  96. );
  97.  
  98. HANDLE mdlWin32_writeDataToHandle
  99. (
  100. HANDLE        hMem,
  101. void           *mdlMemP,
  102. UInt        mdlMemLen
  103. );
  104.  
  105. #endif
  106.