home *** CD-ROM | disk | FTP | other *** search
Java Source | 1998-03-05 | 904 b | 35 lines |
- // Copyright (C) 1997 Microsoft Corporation All Rights Reserved
-
- // These classes provide direct, low-overhead access to commonly used
- // Windows api. These classes use the new J/Direct feature.
- //
- // Information on how to use J/Direct to write your own declarations
- // can be found in the Microsoft SDK for Java 2.0.
-
- package com.ms.win32;
-
- public class PRINTER_INFO_1 extends PRINTER_INFO
- {
- public int Flags;
- public String pDescription;
- public String pName;
- public String pComment;
-
-
- void copyFromNative(int[] pnative, int ofs)
- {
- Flags = pnative[ofs++];
- pDescription = com.ms.dll.DllLib.ptrToString(pnative[ofs++]);
- pName = com.ms.dll.DllLib.ptrToString(pnative[ofs++]);
- pComment = com.ms.dll.DllLib.ptrToString(pnative[ofs++]);
-
- }
-
- int numSlots()
- {
- return 16/4;
- }
- }
-
-
-