// Path: src/main/java/com/sun/jna/platform/win32/Winspool.java
// public static class PRINTER_INFO_1 extends Structure {
//     public int Flags;
//     public String pDescription;
//     public String pName;
//     public String pComment;
// 	    
//     public PRINTER_INFO_1() {
// 	    	
//     }
// 	    
//     public PRINTER_INFO_1(int size) {
//     	super(new Memory(size));
//     }
// }
// 
// Path: src/main/java/com/sun/jna/ptr/IntByReference.java
// public class IntByReference extends ByReference {
// 
//     public IntByReference() {
//         this(0);
//     }
//     
//     public IntByReference(int value) {
//         super(4);
//         setValue(value);
//     }
//     
//     public void setValue(int value) {
//         getPointer().setInt(0, value);
//     }
//     
//     public int getValue() {
//         return getPointer().getInt(0);
//     }
// }


import com.sun.jna.platform.win32.Winspool.PRINTER_INFO_1;
import com.sun.jna.ptr.IntByReference;

/* Copyright (c) 2010 Daniel Doubrovkine, All Rights Reserved
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.  
 */
package com.sun.jna.platform.win32;


/**
 * Winspool Utility API.
 * @author dblock[at]dblock.org
 */
public abstract class WinspoolUtil {
	
	public static PRINTER_INFO_1[] getPrinterInfo1() {

// Path: src/main/java/com/sun/jna/platform/win32/Winspool.java
// public static class PRINTER_INFO_1 extends Structure {
//     public int Flags;
//     public String pDescription;
//     public String pName;
//     public String pComment;
// 	    
//     public PRINTER_INFO_1() {
// 	    	
//     }
// 	    
//     public PRINTER_INFO_1(int size) {
//     	super(new Memory(size));
//     }
// }
// 
// Path: src/main/java/com/sun/jna/ptr/IntByReference.java
// public class IntByReference extends ByReference {
// 
//     public IntByReference() {
//         this(0);
//     }
//     
//     public IntByReference(int value) {
//         super(4);
//         setValue(value);
//     }
//     
//     public void setValue(int value) {
//         getPointer().setInt(0, value);
//     }
//     
//     public int getValue() {
//         return getPointer().getInt(0);
//     }
// }


// Path: src/main/java/com/sun/jna/platform/win32/WinspoolUtil.java
import com.sun.jna.platform.win32.Winspool.PRINTER_INFO_1;
import com.sun.jna.ptr.IntByReference;

/* Copyright (c) 2010 Daniel Doubrovkine, All Rights Reserved
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.  
 */
package com.sun.jna.platform.win32;


/**
 * Winspool Utility API.
 * @author dblock[at]dblock.org
 */
public abstract class WinspoolUtil {
	
	public static PRINTER_INFO_1[] getPrinterInfo1() {

    	IntByReference pcbNeeded = new IntByReference();
