Desktop Functions: Smart Device Functions:
|
Search Results for "print" in [All]netapi32
''' Admin, Accounts, Print, or Server Operator group membership is required to successfully execute NetMessageBufferSend on a remote server.
PrintQueueServer = 0x00000200,
MicrosoftFileAndPrintServer= 0x00004000,
SV_TYPE_PRINTQ_SERVER = 0x00000200,
PrintQueueServer = 0x00000200,
MicrosoftFileAndPrintServer= 0x00004000, 4: NetShareAdd
STYPE_PRINTQ = 1,
' <summary>Printer Share</summary>
Printer = 1
STYPE_PRINTQ = 1, 6: NetShareEnum
STYPE_PRINTQ = 1, 7: NetUseAdd kernel32
Debug.Print(CStr(CheckRemoteDebuggerPresent(proc.Handle, bool)))
Printer = 0x00000018, Get OutputDebugString function implementation that accepts variable number of arguments like printf here (http://www.go4expert.com/forums/showthread.php?t=871) //sample is probably a bad idea, but it will "trim down" the memory footprint of a .Net App (or at least the value reflected in Task Manager). 12: ZeroMemory
Debug.Print(CStr(bytearray(0)) + " " + CStr(bytearray(elements - 1)) + " " + CStr(bytearray(elements)))
Debug.Print(CStr(bytearray(0)) + " " + CStr(bytearray(elements - 1)) + " " + CStr(bytearray(elements))) Enums13: BrowseInfoFlags
/// Only allow the selection of printers. If the user selects anything other than a printer, the OK button is grayed
BIF_BROWSEFORPRINTER = 0x00002000,
''' Only allow the selection of printers. If the user selects anything other than a printer, the OK button is grayed
BIF_BROWSEFORPRINTER = &H00002000
BIF_BROWSEFORPRINTER As Long = &H00002000 14: CSIDL
CSIDL_PRINTERS = 0x0004,
CSIDL_PRINTHOOD = 0x001b,
CSIDL_PRINTERS = &H4
CSIDL_PRINTHOOD = &H1B
/// Returns the dmFields member of the printer driver's DEVMODE structure. The dmFields member indicates which members in the device-independent portion of the structure are supported by the printer driver.
/// Retrieves a list of supported paper sizes. The pOutput buffer receives an array of WORD values that indicate the available paper sizes for the printer. The return value indicates the number of entries in the array. For a list of the possible array values, see the description of the dmPaperSize member of the DEVMODE structure. If pOutput is NULL, the return value indicates the required number of entries in the array.
/// Returns the minimum paper size that the dmPaperLength and dmPaperWidth members of the printer driver's DEVMODE structure can specify. The LOWORD of the return value contains the minimum dmPaperWidth value, and the HIWORD contains the minimum dmPaperLength value.
/// Returns the maximum paper size that the dmPaperLength and dmPaperWidth members of the printer driver's DEVMODE structure can specify. The LOWORD of the return value contains the maximum dmPaperWidth value, and the HIWORD contains the maximum dmPaperLength value.
/// Retrieves a list of available paper bins. The pOutput buffer receives an array of WORD values that indicate the available paper sources for the printer. The return value indicates the number of entries in the array. For a list of the possible array values, see the description of the dmDefaultSource member of the DEVMODE structure. If pOutput is NULL, the return value indicates the required number of entries in the array.
/// If the printer supports duplex printing, the return value is 1; otherwise, the return value is zero. The pOutput parameter is not used.
/// Returns the dmSize member of the printer driver's DEVMODE structure.
/// Returns the number of bytes required for the device-specific portion of the DEVMODE structure for the printer driver.
/// Returns the specification version to which the printer driver conforms.
/// Returns the version number of the printer driver.
/// Retrieves the names of the printer's paper bins. The pOutput buffer receives an array of string buffers. Each string buffer is 24 characters long and contains the name of a paper bin. The return value indicates the number of entries in the array. The name strings are null-terminated unless the name is 24 characters long. If pOutput is NULL, the return value is the number of bin entries required.
/// Retrieves a list of the resolutions supported by the printer. The pOutput buffer receives an array of LONG values. For each supported resolution, the array contains a pair of LONG values that specify the x and y dimensions of the resolution, in dots per inch. The return value indicates the number of supported resolutions. If pOutput is NULL, the return value indicates the number of supported resolutions.
///DCTT_BITMAP Device can print TrueType fonts as graphics.
/// Returns the number of copies the device can print.
/// If the printer supports collating, the return value is 1; otherwise, the return value is zero. The pOutput parameter is not used.
/// Retrieves a list of printer description languages supported by the printer. The pOutput buffer receives an array of string buffers. Each buffer is 32 characters long and contains the name of a printer description language. The return value indicates the number of entries in the array. The name strings are null-terminated unless the name is 32 characters long. If pOutput is NULL, the return value indicates the required number of array entries.
/// The return value indicates the printer's print rate. The value returned for DC_PRINTRATEUNIT indicates the units of the DC_PRINTRATE value. The pOutput parameter is not used.
DC_PRINTRATE = 26,
/// The return value is one of the following values that indicate the print rate units for the value returned for the DC_PRINTRATE flag. The pOutput parameter is not used.
///PRINTRATEUNIT_CPS Characters per second.
///PRINTRATEUNIT_IPM Inches per minute.
///PRINTRATEUNIT_LPM Lines per minute.
///PRINTRATEUNIT_PPM Pages per minute.
DC_PRINTRATEUNIT = 27,
/// The return value is the amount of available printer memory, in kilobytes. The pOutput parameter is not used.
DC_PRINTERMEM = 28,
/// If the printer supports stapling, the return value is a nonzero value; otherwise, the return value is zero. The pOutput parameter is not used.
/// The return value indicates the printer's print rate, in pages per minute. The pOutput parameter is not used.
DC_PRINTRATEPPM = 31,
/// If the printer supports color printing, the return value is 1; otherwise, the return value is zero. The pOutput parameter is not used.
/// Retrieves an array of integers that indicate that printer's ability to print multiple document pages per printed page. The pOutput buffer receives an array of DWORD values. Each value represents a supported number of document pages per printed page. The return value indicates the number of entries in the array. If pOutput is NULL, the return value indicates the required number of entries in the array.
PrintRate=26
PrintRateUnit=27
PrinterMemory=28
PrintRatePpm=31 16: DEVICE_TYPE
FILE_DEVICE_PRINTER = 0x18,
FILE_DEVICE_PRINTER = &H18 17: DM
/// Selects duplex or double-sided printing for printers capable of duplex printing.
/// Normal (nonduplex) printing. 18: DMCOLLATE
/// Specifies whether collation should be used when printing multiple copies.
/// Do not collate when printing multiple copies.
/// Collate when printing multiple copies. 19: DMCOLOR
/// Switches between color and monochrome on color printers. 20: DMDUP
/// Selects duplex or double-sided printing for printers capable of duplex printing.
/// Normal (nonduplex) printing. 21: fModes
/// of bytes required by the printer driver's DEVMODE data structure.
/// Output value. The function writes the printer driver's current print settings,
/// Input value. The function presents the printer driver's Print Setup property
/// sheet and then changes the settings in the printer's DEVMODE data structure
/// the printer driver's current print settings with the settings in the DEVMODE
/// specified by pDevModeInput override the printer driver's current print settings. 22: HRESULT
///The string contains a non-printable character.
[Description("The string contains a non-printable character.")]
public const int CRYPT_E_INVALID_PRINTABLE_STRING = unchecked((int)0x80092021);
'''The string contains a non-printable character.
<Description("The string contains a non-printable character.")> _
Public Const CRYPT_E_INVALID_PRINTABLE_STRING As Integer = CInt(&H80092021UI) 23: OLECMDID
OLECMDID_PRINT = 6,
OLECMDID_PRINTPREVIEW = 7,
OLECMDID_SHOWPRINT = 44,
OLECMDID_PRINT2 = 49,
OLECMDID_PRINTPREVIEW2 = 50,
OLECMDID_SETPRINTTEMPLATE = 51,
OLECMDID_GETPRINTTEMPLATE = 52,
OLECMDID_GETPRINTTEMPLATE = 52
OLECMDID_PRINT = 6
OLECMDID_PRINT2 = 49
OLECMDID_PRINTPREVIEW = 7
OLECMDID_PRINTPREVIEW2 = 50
OLECMDID_SETPRINTTEMPLATE = 51
OLECMDID_SHOWPRINT = 44 24: PAGESETUP_FLAGS
PSD_DEFAULTMINMARGINS = 0x00000000, // default (printer's)
PSD_DISABLEPRINTER = 0x00000020, 25: PrinterEnumFlags
enum PrinterEnumFlags {
PRINTER_ENUM_DEFAULT = 0x00000001,
PRINTER_ENUM_LOCAL = 0x00000002,
PRINTER_ENUM_CONNECTIONS = 0x00000004,
PRINTER_ENUM_FAVORITE = 0x00000004,
PRINTER_ENUM_NAME = 0x00000008,
PRINTER_ENUM_REMOTE = 0x00000010,
PRINTER_ENUM_SHARED = 0x00000020,
PRINTER_ENUM_NETWORK = 0x00000040,
PRINTER_ENUM_EXPAND = 0x00004000,
PRINTER_ENUM_CONTAINER = 0x00008000,
PRINTER_ENUM_ICONMASK = 0x00ff0000,
PRINTER_ENUM_ICON1 = 0x00010000,
PRINTER_ENUM_ICON2 = 0x00020000,
PRINTER_ENUM_ICON3 = 0x00040000,
PRINTER_ENUM_ICON4 = 0x00080000,
PRINTER_ENUM_ICON5 = 0x00100000,
PRINTER_ENUM_ICON6 = 0x00200000,
PRINTER_ENUM_ICON7 = 0x00400000,
PRINTER_ENUM_ICON8 = 0x00800000,
PRINTER_ENUM_HIDE = 0x01000000,
PRINTER_ENUM_CATEGORY_ALL= 0x02000000,
PRINTER_ENUM_CATEGORY_3D = 0x04000000
Public Enum PrinterEnumFlags
PRINTER_ENUM_DEFAULT = &H1
PRINTER_ENUM_LOCAL = &H2
PRINTER_ENUM_CONNECTIONS = &H4
PRINTER_ENUM_FAVORITE = &H4
PRINTER_ENUM_NAME = &H8
PRINTER_ENUM_REMOTE = &H10
PRINTER_ENUM_SHARED = &H20
PRINTER_ENUM_NETWORK = &H40
PRINTER_ENUM_EXPAND = &H4000
PRINTER_ENUM_CONTAINER = &H8000
PRINTER_ENUM_ICONMASK = &HFF0000
PRINTER_ENUM_ICON1 = &H10000
PRINTER_ENUM_ICON2 = &H20000
PRINTER_ENUM_ICON3 = &H40000
PRINTER_ENUM_ICON4 = &H80000
PRINTER_ENUM_ICON5 = &H100000
PRINTER_ENUM_ICON6 = &H200000
PRINTER_ENUM_ICON7 = &H400000
PRINTER_ENUM_ICON8 = &H800000
PRINTER_ENUM_HIDE = &H1000000
/// The printer attributes.
internal enum PRINTER_ATTRIBUTES
PRINTER_ATTRIBUTE_NONE = 0,
/// If set, the printer spools and starts printing after the last page is spooled.
/// If not set and PRINTER_ATTRIBUTE_DIRECT is not set, the printer spools and
/// prints while spooling.
PRINTER_ATTRIBUTE_QUEUED = 0x1,
/// Job is sent directly to the printer (it is not spooled).
PRINTER_ATTRIBUTE_DIRECT = 0x2,
/// Printer is default printer.
PRINTER_ATTRIBUTE_DEFAULT = 0x4,
/// Printer is shared.
PRINTER_ATTRIBUTE_SHARED = 0x8,
/// Printer is a network printer connection.
PRINTER_ATTRIBUTE_NETWORK = 0x10,
PRINTER_ATTRIBUTE_HIDDEN = 0x20,
/// Printer is a local printer.
PRINTER_ATTRIBUTE_LOCAL = 0x40,
/// If set, DevQueryPrint is called. DevQueryPrint may fail if the document
/// and printer setups do not match. Setting this flag causes mismatched
PRINTER_ATTRIBUTE_ENABLE_DEVQ = 0x80,
/// If set, jobs are kept after they are printed. If unset, jobs are deleted.
PRINTER_ATTRIBUTE_KEEPPRINTEDJOBS = 0x100,
/// If set and printer is set for print-while-spooling, any jobs that have
/// completed spooling are scheduled to print before jobs that have not
PRINTER_ATTRIBUTE_DO_COMPLETE_FIRST = 0x200,
PRINTER_ATTRIBUTE_WORK_OFFLINE = 0x400,
PRINTER_ATTRIBUTE_ENABLE_BIDI = 0x800,
/// Indicates that only raw data type print jobs can be spooled.
PRINTER_ATTRIBUTE_RAW_ONLY = 0x1000,
/// Indicates whether the printer is published in the directory service.
PRINTER_ATTRIBUTE_PUBLISHED = 0x2000,
/// If set, printer is a fax printer. This can only be set by AddPrinter,
/// but it can be retrieved by EnumPrinters and GetPrinter.
PRINTER_ATTRIBUTE_FAX = 0x4000,
/// Indicates the printer is currently connected through a terminal server.
PRINTER_ATTRIBUTE_TS = 0x8000,
/// The printer was installed by using the Push Printer Connections
/// user policy. See Print Management Step-by-Step Guide.
PRINTER_ATTRIBUTE_PUSHED_USER = 0x20000,
/// The printer was installed by using the Push Printer Connections
/// computer policy. See Print Management Step-by-Step Guide.
PRINTER_ATTRIBUTE_PUSHED_MACHINE = 0x40000,
/// Printer is a per-machine connection.
PRINTER_ATTRIBUTE_MACHINE = 0x0000,
/// A computer has connected to this printer and given it a friendly name.
PRINTER_ATTRIBUTE_FRIENDLY_NAME = 0x100000,
PRINTER_ATTRIBUTE_TS_GENERIC_DRIVER = 0x200000, The definition of PRINTER_ATTRIBUTE_NONE is only to satisfy the rule, that every enum should have a zero value. 27: PROPID
/// Last Printed, DateTime
PID_LASTPRINTED = 11, 28: ResourceType
Print = 0x2,
Print = &H2 29: SE_OBJECT_TYPE
SE_PRINTER,
SE_PRINTER 30: ShareType
STYPE_PRINTQ = 1, // Print Queue
STYPE_HIDDEN_PRINT = 0x80000001, // Admin Print Shares
' <summary>Printer Share</summary>
Printer = 1
SHCNF_PRINTERA = 0x0002,
SHCNF_PRINTERW = 0x0006,
SHCNF_PRINTER = SHCNF_PRINTERW
SHCNF_PRINTER = 6
SHCNF_PRINTERA = 2
SHCNF_PRINTERW = 6 32: SHCNF
SHCNF_PRINTERA = 0x0002,
SHCNF_PRINTERW = 0x0006, 33: SHCONTF
SHCONTF_NETPRINTERSRCH = 0x0200, // hint that client is looking for printers
SHCONTF_NETPRINTERSRCH = &H200 ' hint that client is looking for printers
NETPRINTERSRCH = &H200 ' . The calling application is looking for printer objects. 34: SHSTOCKICONID
SIID_PRINTER = 16,
SIID_PRINTERNET = 50,
SIID_PRINTERFAX = 52,
SIID_PRINTERFAXNET = 53,
SIID_PRINTERFILE = 54,
SIID_PRINTER = 16
SIID_PRINTERNET = 50
SIID_PRINTERFAX = 52
SIID_PRINTERFAXNET = 53
SIID_PRINTERFILE = 54
PRINTER = 16
PRINTERNET = 50
PRINTERFAX = 52
PRINTERFAXNET = 53
PRINTERFILE = 54 35: VirtualKeys
Print = 0x2A,
VK_PRINT = &H2A ' // [Print] = 042
' // UNDEFINED // ' // [PrintScreen] = 044 36: VK
///PRINT key
PRINT = 0x2A,
///PRINT SCREEN key
PRINT_KEY = 42
WinBuiltinPrintOperatorsSid = 32, 38: WindowsMessages
/// The WM_SPOOLERSTATUS message is sent from Print Manager whenever a job is added to or removed from the Print Manager queue.
/// The WM_PRINT message is sent to a window to request that it draw itself in the specified device context, most commonly in a printer device context.
PRINT = 0x0317,
/// The WM_PRINTCLIENT message is sent to a window to request that it draw its client area in the specified device context, most commonly in a printer device context.
PRINTCLIENT = 0x0318,
'''The WM_PRINT message is sent to a window to request that it draw itself in the specified device context most commonly in a printer device context.
WM_PRINT = &H317
'''The WM_PRINTCLIENT message is sent to a window to request that it draw its client area in the specified device context most commonly in a printer device context.
WM_PRINTCLIENT = &H318
'''The WM_SPOOLERSTATUS message is sent from Print Manager whenever a job is added to or removed from the Print Manager queue.
''' most commonly in a printer device context.
WmPrint = &H317
''' most commonly in a printer device context.
WmPrintClient = &H318
''' The message is sent from Print Manager whenever a job is added to or removed from the Print Manager queue. psapi39: EmptyWorkingSet
Print("{0:N0} Mb", ((Proc.WorkingSet64 \ 1024) \ 1024))
Print("{0:N0} Mb", ((Proc.WorkingSet64 \ 1024) \ 1024)) : Print("")
Sub Print(format$, ParamArray args As Object) Structures40: DEVMODE
Int16 dmPrintQuality;
Public dmPrintQuality As Short This code (taken from .NET source code) is working with System.Drawing.Printing.PrinterSettings.Gethdevmode, where default structure doesn't work for me.
public Int16 dmPrintQuality; 41: FAX_PRINT_INFO 42: FORMATETC
DVASPECT_DOCPRINT = 8
DVASPECT_DOCPRINT = 8 43: JOB_INFO_1 44: KEYBDINPUT
///PRINT key
PRINT = 0x2A,
///PRINT SCREEN key
PRINT = 0, 45: PRINTDLG
public class PRINTDLG
public IntPtr lpfnPrintHook;
public IntPtr lpPrintTemplateName;
public IntPtr hPrintTemplate;
Structure PRINTDLG 46: PRINTER_DEFAULTS
struct PRINTER_DEFAULTS {
/// The PRINTER_DEFAULTS structure specifies the default data type,
/// environment, initialization data, and access rights for a printer.
internal class PRINTER_DEFAULTS
/// default data type for a printer.
/// default environment and initialization data for a printer.
/// 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.
Structure PRINTER_DEFAULTS If you use the class-version, you only need one OpenPrinter declaration, because you can pass NULL or an object references. 47: PRINTER_INFO_2
public struct PRINTER_INFO_2
public string pPrinterName;
public string pPrintProcessor;
Private Structure PRINTER_INFO_2
Public pPrinterName As String
Public pPrintProcessor As String
public PRINTER_ATTRIBUTES Attributes; See the PRINTER_ATTRIBUTES enum for more details. If you only want to get or set the DEVMODE struct, you can use the PRINTER_INFO_9 struct instead. 48: PRINTER_INFO_5
public struct PRINTER_INFO_5
public string pPrinterName;
Structure PRINTER_INFO_5
public PRINTER_ATTRIBUTES Attributes; See the PRINTER_ATTRIBUTES enum for more details. 49: PRINTER_INFO_9
/// The PRINTER_INFO_9 structure specifies the per-user default printer settings.
internal class PRINTER_INFO_9
/// default printer data such as the paper orientation and the resolution.
ushort PrintNameOffset;
ushort PrintNameLength;
(4 * sizeof(ushort)) + SubstituteNameLength + PrintNameLength +
PrintNameOffset
Offset, in bytes, of the print name string in the PathBuffer array.
PrintNameLength
Length, in bytes, of the print name string. If this string is null-terminated,
PrintNameLength does not include space for the null character.
the substitute name string and print name string.
internal ushort PrintNameOffset;
internal ushort PrintNameLength;
internal ushort PrintNameOffset;
internal ushort PrintNameLength;
rdb.PrintNameOffset = (ushort)(targetLenBytes + 2); 51: StartDocPrinter
[DllImport("winspool.drv", EntryPoint="StartDocPrinterW", SetLastError=true,
private static extern uint StartDocPrinter(
IntPtr hPrinter,
[DllImport("winspool.drv", EntryPoint="StartDocPrinterA", SetLastError=true,
private static extern uint StartDocPrinter(
IntPtr hPrinter,
Structure StartDocPrinter
Public Function StartDocPrinter(hPrinter As IntPtr, Level As Integer, ByRef pDocInfo As DOC_INFO_1W) As Long
Public Function StartDocPrinter(hPrinter As IntPtr, Level As Integer, ByRef pDocInfo As DOC_INFO_1A) As Long user3252: GetKeyboardState
VK_PRINT = 0x2A, 53: GetKeyState
VK_PRINT = 0x2A, 54: GetLastInputInfo Prints time in seconds since last user input.
printf("%d seconds\n", (idleTicks > 0)? idleTicks/1000: 0); 55: PrintWindow
static extern bool PrintWindow(IntPtr hwnd, IntPtr hDC, uint nFlags);
Private Shared Function PrintWindow(ByVal hwnd As IntPtr, ByVal hDC As IntPtr, ByVal nFlags As UInteger) As Boolean
bool success = PrintWindow(form.Handle, dc, 0);
PrintWindow Me.hWnd, Me.hDC, 0 56: UIntPtr
//Console Prints: 0 0 1
public static void CopyPrint() 57: VirtualKeyCodes Public Const VK_PRINT = &H2A 'print screen
public const uint VK_PRINT = 0x2A; 58: wsprintf icmp59: IcmpSendEcho
printf("IcmpCreatefile returned error: %ld\n", GetLastError());
printf("Unable to allocate ReplyBuffer memory\n");
printf("!inet_addr(\"%s\")\n", ip_addr_str);
printf("No reply from %s after %d mSec\n", ip_addr_str, maxMsec);
printf("no reply from %s after %d mSec\n", ip_addr_str, maxMsec);
printf("Roundtrip time to %s = %ld mSec\n", ip_addr_str, msvcrt60: sprintf
static extern int sprintf(
static extern int swprintf(
static extern int sprintf([In,Out]StringBuilder buffer, String fmt,
static extern int sprintf([In,Out]StringBuilder buffer, String fmt,
static extern int sprintf([In,Out]StringBuilder buffer, String fmt,
Public Shared Function sprintf(ByVal TargetString As System.Text.StringBuilder, swprintf(buffer, "Greetings from thread %d\n", __arglist(Thread.CurrentThread.ManagedThreadId)); Cut off search results after 60. Please refine your search. |