home *** CD-ROM | disk | FTP | other *** search
/ Enter 1999 November / ENTER11_1.bin / WARSZTAT / SDKJava32.exe / data1.cab / fg_Win32Src / Src / Win32Api / PRINTER_INFO_4.java < prev    next >
Encoding:
Java Source  |  1999-03-17  |  840 b   |  32 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. public class PRINTER_INFO_4 extends PRINTER_INFO
  12. {
  13.     public String   pPrinterName;
  14.     public String   pServerName;
  15.     public int      Attributes;
  16.  
  17.     void copyFromNative(int[] pnative, int ofs)
  18.     {
  19.         pPrinterName = com.ms.dll.DllLib.ptrToString(pnative[ofs++]);
  20.         pServerName  = com.ms.dll.DllLib.ptrToString(pnative[ofs++]);
  21.         Attributes   = pnative[ofs++];
  22.     }
  23.  
  24.     int numSlots()
  25.     {
  26.         return 12/4;
  27.     }
  28.  
  29. }
  30.  
  31.  
  32.