home *** CD-ROM | disk | FTP | other *** search
/ Solo Programadores 22 / SOLO_22.iso / packages / win32ada / data.z / win32-ole2.adb < prev    next >
Encoding:
Text File  |  1995-11-17  |  1.5 KB  |  41 lines

  1. -- $Source: /home/harp/1/proto/monoBANK/winnt/win32-ole2.adb,v $ 
  2. -- $Revision: 1.2 $ $Date: 95/02/07 15:12:39 $ $Author: mg $ 
  3. -------------------------------------------------------------------------------
  4. --
  5. -- THIS FILE AND ANY ASSOCIATED DOCUMENTATION IS FURNISHED "AS IS" WITHOUT 
  6. -- WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED 
  7. -- TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR 
  8. -- PURPOSE.  The user assumes the entire risk as to the accuracy and the 
  9. -- use of this file.
  10. --
  11. -- Copyright (c) Intermetrics, Inc. 1995
  12. -- Royalty-free, unlimited, worldwide, non-exclusive use, modification, 
  13. -- reproduction and further distribution of this file is permitted.
  14. --
  15. -------------------------------------------------------------------------------
  16.  
  17.  
  18. with Ada.Unchecked_Conversion;
  19.  
  20. package body Win32.Ole2 is
  21.  
  22.     procedure DISCARDCACHE_to_xmit(pEnum : in PDISCARDCACHE;
  23.                    ppLong: out Win32.PLONG) is    -- ole2.h:649
  24.  
  25.     function To_LONG is new Ada.Unchecked_Conversion(DISCARDCACHE,
  26.         Win32.LONG);
  27.     begin
  28.     ppLong.all := To_LONG(pEnum.all);
  29.     end DISCARDCACHE_to_xmit;
  30.  
  31.     procedure DISCARDCACHE_from_xmit(pLong: in Win32.PLONG;
  32.                      pEnum: out PDISCARDCACHE) is
  33.                                 -- ole2.h:650
  34.     function To_DISCARDCACHE is new Ada.Unchecked_Conversion(Win32.LONG,
  35.         DISCARDCACHE);
  36.     begin
  37.      pEnum.all := To_DISCARDCACHE(pLong.all);
  38.     end DISCARDCACHE_from_xmit;
  39.  
  40. end Win32.Ole2;
  41.