Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

PRINTER_INFO_2 (Structures)
 
.
Summary
Used by the EnumPrinters call in Winspool.

C# Definition:

    [StructLayout(LayoutKind.Sequential)]
    public struct PRINTER_INFO_2
    {
        [MarshalAs(UnmanagedType.LPTStr)]
        public string pServerName;
        [MarshalAs(UnmanagedType.LPTStr)]
        public string pPrinterName;
        [MarshalAs(UnmanagedType.LPTStr)]
        public string pShareName;
        [MarshalAs(UnmanagedType.LPTStr)]
        public string pPortName;
        [MarshalAs(UnmanagedType.LPTStr)]
        public string pDriverName;
        [MarshalAs(UnmanagedType.LPTStr)]
        public string pComment;
        [MarshalAs(UnmanagedType.LPTStr)]
        public string pLocation;
        public IntPtr pDevMode;
        [MarshalAs(UnmanagedType.LPTStr)]
        public string pSepFile;
        [MarshalAs(UnmanagedType.LPTStr)]
        public string pPrintProcessor;
        [MarshalAs(UnmanagedType.LPTStr)]
        public string pDatatype;
        [MarshalAs(UnmanagedType.LPTStr)]
        public string pParameters;
        public IntPtr pSecurityDescriptor;
        public uint Attributes;
        public uint Priority;
        public uint DefaultPriority;
        public uint StartTime;
        public uint UntilTime;
        public uint Status;
        public uint cJobs;
        public uint AveragePPM;
    }

VB Definition:

    <StructLayout(LayoutKind.Sequential)> _
    Private Structure PRINTER_INFO_2

        <MarshalAs(UnmanagedType.LPStr)> _
        Public pServerName As String
        <MarshalAs(UnmanagedType.LPStr)> _
        Public pPrinterName As String
        <MarshalAs(UnmanagedType.LPStr)> _
        Public pShareName As String
        <MarshalAs(UnmanagedType.LPStr)> _
        Public pPortName As String
        <MarshalAs(UnmanagedType.LPStr)> _
        Public pDriverName As String
        <MarshalAs(UnmanagedType.LPStr)> _
        Public pComment As String
        <MarshalAs(UnmanagedType.LPStr)> _
        Public pLocation As String

        Public pDevMode As IntPtr

        <MarshalAs(UnmanagedType.LPStr)> _
        Public pSepFile As String
        <MarshalAs(UnmanagedType.LPStr)> _
        Public pPrintProcessor As String
        <MarshalAs(UnmanagedType.LPStr)> _
        Public pDatatype As String
        <MarshalAs(UnmanagedType.LPStr)> _
        Public pParameters As String

        Public pSecurityDescriptor As IntPtr
        Public Attributes As Integer
        Public Priority As Integer
        Public DefaultPriority As Integer
        Public StartTime As Integer
        Public UntilTime As Integer
        Public Status As Integer
        Public cJobs As Integer
        Public AveragePPM As Integer

    End Structure

User-Defined Field Types:

None.

Notes:

Nothing.

Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions