[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
public struct PRINTER_INFO_5
{
[MarshalAs(UnmanagedType.LPTStr)]
public string pPrinterName;
[MarshalAs(UnmanagedType.LPTStr)]
public string pPortName;
public uint Attributes;
public uint DeviceNotSelectedTimeout;
public uint TransmissionRetryTimeout;
}
Structure PRINTER_INFO_5
Public TODO
End Structure
None.
Instead of the definition
public uint Attributes;
your can also use
public PRINTER_ATTRIBUTES Attributes;
See the PRINTER_ATTRIBUTES enum for more details.