home *** CD-ROM | disk | FTP | other *** search
- -- $Source: /home/harp/1/proto/monoBANK/winnt/win32-utils.ads,v $
- -- $Revision: 1.7 $ $Date: 95/11/18 19:09:20 $ $Author: jj $
- -- See end of file for Copyright (c) information.
-
- package Win32.Utils is
- -- Unsigned types:
- subtype BYTE is Win32.BYTE;
- subtype WORD is Win32.WORD;
- subtype DWORD is Win32.DWORD;
- subtype QWORD is Win32.DWORDLONG;
-
- -- Signed types:
- subtype Signed_DWORD is Win32.LONG;
- subtype Signed_QWORD is Win32.LONGLONG;
-
- -- windef.h
- function MAKEWORD(Low, High: BYTE) return WORD;
-
- function MAKELONG(Low, High: WORD) return DWORD;
-
- function LOWORD(L: DWORD) return WORD;
-
- function HIWORD(L: DWORD) return WORD;
-
- function LOBYTE(W: WORD) return BYTE;
-
- function HIBYTE(W: WORD) return BYTE;
-
- -- winnt.h
- function Int32x32To64(A, B: Signed_DWORD) return Signed_QWORD;
-
- function UInt32x32To64(A, B: DWORD) return QWORD;
-
- type Shift_Count is range 0..31;
-
- function Int64ShllMod32 (Val: QWORD;
- By : Shift_Count) return QWORD;
-
- function Int64ShraMod32 (Val: Signed_QWORD;
- By : Shift_Count) return Signed_QWORD;
-
- function Int64ShrlMod32 (Val: QWORD;
- By : Shift_Count) return QWORD;
-
- -- does nothing
- procedure Null_Proc;
-
- private
-
- pragma Inline(MAKEWORD);
- pragma Inline(MAKELONG);
- pragma Inline(LOWORD);
- pragma Inline(HIWORD);
- pragma Inline(LOBYTE);
- pragma Inline(HIBYTE);
- pragma Inline(Int32x32To64);
- pragma Inline(UInt32x32To64);
- pragma Inline(Int64ShllMod32);
- pragma Inline(Int64ShraMod32);
- pragma Inline(Int64ShrlMod32);
- pragma Inline(Null_Proc);
-
- -------------------------------------------------------------------------------
- --
- -- THIS FILE AND ANY ASSOCIATED DOCUMENTATION IS FURNISHED "AS IS" WITHOUT
- -- WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
- -- TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
- -- PURPOSE. The user assumes the entire risk as to the accuracy and the
- -- use of this file.
- --
- -- Copyright (c) Intermetrics, Inc. 1995
- -- Royalty-free, unlimited, worldwide, non-exclusive use, modification,
- -- reproduction and further distribution of this file is permitted.
- --
- -------------------------------------------------------------------------------
-
- end Win32.Utils;
-