Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than Structures, prefix the name with the module name and a period.
PRINTER_DEFAULTS (Structures)
.
C# Definition:
[StructLayout(LayoutKind.Sequential)]
struct PRINTER_DEFAULTS {
public IntPtr pDatatype;
public IntPtr pDevMode;
public int DesiredAccess;
}
/// <summary>
/// The PRINTER_DEFAULTS structure specifies the default data type,
/// environment, initialization data, and access rights for a printer.
/// </summary>
/// <seealso href="http://msdn.microsoft.com/en-us/library/windows/desktop/dd162839(v=vs.85).aspx"/>
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
internal class PRINTER_DEFAULTS
{
/// <summary>
/// Pointer to a null-terminated string that specifies the
/// default data type for a printer.
/// </summary>
public IntPtr pDatatype;
/// <summary>
/// Pointer to a DEVMODE structure that identifies the
/// default environment and initialization data for a printer.
/// </summary>
public IntPtr pDevMode;
/// <summary>
/// Specifies desired access rights for a printer.
/// The <see cref="OpenPrinter(string, out IntPtr, IntPtr)"/> function uses
/// this member to set access rights to the printer. These rights can affect
/// the operation of the SetPrinter and DeletePrinter functions.
/// </summary>
public ACCESS_MASK DesiredAccess;
}
VB Definition:
Structure PRINTER_DEFAULTS
Public pDatatype As IntPtr
Public pDevMode As IntPtr
Public DesiredAccess As Integer
End Structure
User-Defined Field Types:
If you don't have an enum ACCESS_MASK defined, use
public int DesiredAccess;
instead.
Notes:
If you use the class-version, you only need one OpenPrinter declaration, because you can pass NULL or an object references.
Opens a printer handle given the printer name
5/29/2015 10:24:16 AM - -212.159.121.211
The [ACCESS_MASK] data type is a double word value that defines standard, specific, and generic rights. These rights are used in access control entries (ACEs) and are the primary means of specifying the requested or granted access to an object.
5/10/2014 10:45:06 AM - -193.195.33.66
Opens a printer handle given the printer name
5/29/2015 10:24:16 AM - -212.159.121.211
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.