home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 14 / IOPROG_14.ISO / soft / sdkjava / sdkjava.exe / SDKJava.cab / Src / Win32Api / PRINTER_INFO_5.java < prev    next >
Encoding:
Java Source  |  1998-03-05  |  1.0 KB  |  38 lines

  1. // Copyright (C) 1997 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.
  8.  
  9. package com.ms.win32;
  10.  
  11.  
  12. public class PRINTER_INFO_5 extends PRINTER_INFO
  13. {
  14.     public String pPrinterName;
  15.     public String pPortName;
  16.     public int    Attributes;
  17.     public int    DeviceNotSelectedTimeout;
  18.     public int    TransmissionRetryTimeout;
  19.  
  20.     void copyFromNative(int[] pnative, int ofs)
  21.     {
  22.         pPrinterName             = com.ms.dll.DllLib.ptrToString(pnative[ofs++]);
  23.         pPortName                = com.ms.dll.DllLib.ptrToString(pnative[ofs++]);
  24.         Attributes               = pnative[ofs++];
  25.         DeviceNotSelectedTimeout = pnative[ofs++];
  26.         TransmissionRetryTimeout = pnative[ofs++];
  27.     }
  28.  
  29.     int numSlots()
  30.     {
  31.         return 20/4;
  32.     }
  33.  
  34. }
  35.  
  36.  
  37.  
  38.