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

  1. -- $Source: /home/harp/1/proto/monoBANK/winnt/win32-signal.adb,v $ 
  2. -- $Revision: 1.3 $ $Date: 95/02/02 15:56:54 $ $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. with System;
  20. with Win32.PerThread;
  21.  
  22. package body Win32.Signal is
  23.  
  24.     -- If necessary someone could look at this code, and write a
  25.     -- procedure that gets the address and then *sets* the code
  26.     -- instead of getting it.  I don't know if this is useful.
  27.  
  28.     function pxcptinfoptrs return Win32.PVOID is            -- signal.h:77
  29.         type PPVOID is access all Win32.PVOID;
  30.         function To_PPVOID is new Ada.Unchecked_Conversion (
  31.             System.Address, PPVOID);
  32.     begin
  33.         return To_PPVOID(
  34.             Win32.PerThread.Get_Address(Win32.PerThread.pxcptinfoptrs)).all;
  35.     end pxcptinfoptrs;
  36.  
  37. end Win32.Signal;
  38.