home *** CD-ROM | disk | FTP | other *** search
/ Enter 1999 November / ENTER11_1.bin / WARSZTAT / SDKJava32.exe / data1.cab / fg_Win32Src / Src / Win32Api / FILETIME.java < prev    next >
Encoding:
Java Source  |  1999-03-17  |  992 b   |  40 lines

  1. // (C) Copyright 1995 - 1999 Microsoft Corporation.  All rights reserved.
  2.  
  3. // These classes provide direct, low-overhead access to commonly used
  4. // Windows api. These classes use the new J/Direct feature.
  5. //
  6. // Information on how to use J/Direct to write your own declarations
  7. // can be found in the Microsoft SDK for Java 2.0 or later.
  8.  
  9. package com.ms.win32;
  10.  
  11.  
  12. /** @dll.struct() */
  13. public class FILETIME {
  14.     public int dwLowDateTime;
  15.     public int dwHighDateTime;
  16.  
  17.     public FILETIME()
  18.     {
  19.     }
  20.  
  21.     public FILETIME( int dwLowDateTime, int dwHighDateTime )
  22.     {
  23.         this.dwLowDateTime = dwLowDateTime;
  24.         this.dwHighDateTime = dwHighDateTime;
  25.     }
  26.  
  27.     public FILETIME( long lTime )
  28.     {
  29.         dwLowDateTime = (int)(lTime);
  30.         dwHighDateTime = (int)(lTime >> 32);
  31.     }
  32.  
  33.     public long getTimeLong()
  34.     {
  35.         return( (((long)dwHighDateTime) << 32) |
  36.                     (((long)dwLowDateTime) & 0xFFFFFFFFL) );
  37.     }
  38. }
  39.  
  40.