Desktop Functions: Smart Device Functions:
|
Search Results for "print" in [All]user32
VK_PRINT = 0x2A, 2: GetKeyState
VK_PRINT = 0x2A, Prints time in seconds since last user input.
printf("%d seconds\n", (idleTicks > 0)? idleTicks/1000: 0); 4: 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 5: UIntPtr
//Console Prints: 0 0 1
public static void CopyPrint() Public Const VK_PRINT = &H2A 'print screen
public const uint VK_PRINT = 0x2A; 7: wsprintf ntdll
System.Diagnostics.Debug.Print(
// print results:
// sample printout: advapi3210: GetSecurityInfo
Local or remote printers
SE_PRINTER, // Prints out sid of current user
SE_PRINTER,
SE_PRINTER, icmp14: 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, Constants15: GUID_DEVCLASS
public static readonly Guid GUID_DEVCLASS_DOT4PRINT = new Guid("{0x49ce6ac8, 0x6f86, 0x11d2, {0xb1, 0xe5, 0x00, 0x80, 0xc7, 0x2e, 0x74, 0xa2}}");
public static readonly Guid GUID_DEVCLASS_PNPPRINTERS = new Guid("{0x4658ee7e, 0xf050, 0x11d1, {0xb6, 0xbd, 0x00, 0xc0, 0x4f, 0xa3, 0x72, 0xa7}}");
public static readonly Guid GUID_DEVCLASS_PRINTER = new Guid("{0x4d36e979, 0xe325, 0x11ce, {0xbf, 0xc1, 0x08, 0x00, 0x2b, 0xe1, 0x03, 0x18}}");
public static readonly Guid GUID_DEVCLASS_PRINTERUPGRADE = new Guid("{0x4d36e97a, 0xe325, 0x11ce, {0xbf, 0xc1, 0x08, 0x00, 0x2b, 0xe1, 0x03, 0x18}}"); 16: NERR_
/// <summary> 2150 - The printer does not exist. </summary>
/// <summary> 2151 - The print job does not exist. </summary>
/// <summary> 2152 - The printer destination cannot be found. </summary>
/// <summary> 2153 - The printer destination already exists. </summary>
/// <summary> 2154 - The printer queue already exists. </summary>
/// <summary> 2155 - No more printers can be added. </summary>
/// <summary> 2156 - No more print jobs can be added. </summary>
/// <summary> 2157 - No more printer destinations can be added. </summary>
/// <summary> 2158 - This printer destination is idle and cannot accept control operations. </summary>
/// <summary> 2159 - This printer destination request contains an invalid control function. </summary>
/// <summary> 2160 - The print processor is not responding. </summary>
/// <summary> 2162 - This operation cannot be performed on the print destination in its current state. </summary>
/// <summary> 2163 - This operation cannot be performed on the printer queue in its current state. </summary>
/// <summary> 2164 - This operation cannot be performed on the print job in its current state. </summary>
/// <summary> 2167 - The data type is not supported by the print processor. </summary>
/// <summary> 2168 - The print processor is not installed. </summary> 17: PRINTER_ACCESS
private const int PRINTER_ACCESS_ADMINISTRATOR = 0x4;
private const int PRINTER_ACCESS_USE = 0x8;
private const int PRINTER_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED | PRINTER_ACCESS_ADMINISTRATOR | PRINTER_ACCESS_USE; 18: PROPERTYKEY
public static PropertyKey PKEY_Document_DatePrinted = new PropertyKey( 0xF29F85E0, 0x4FF9, 0x1068, 0xAB, 0x91, 0x08, 0x00, 0x2B, 0x27, 0xB3, 0xD9, 11); 19: RESOURCE
const UInt32 RESOURCETYPE_PRINT = 0x00000002; 20: ShellAPI
public const int PO_DELETE = 0x0013; // printer is being deleted
public const int PO_RENAME = 0x0014; // printer is being renamed
public const int PO_PORTCHANGE = 0x0020; // port this printer connected to is being changed
// list of strings. The first is the printer
// name and the second is the printer port.
// Printer stuff
public const int PRINTACTION_OPEN = 0;
public const int PRINTACTION_PROPERTIES = 1;
public const int PRINTACTION_NETINSTALL = 2;
public const int PRINTACTION_NETINSTALLLINK = 3;
public const int PRINTACTION_TESTPAGE = 4;
public const int PRINTACTION_OPENNETPRN = 5;
public const int PRINTACTION_DOCUMENTDEFAULTS = 6;
public const int PRINTACTION_SERVERPROPERTIES = 7; 21: ShellAPI
public const int PO_DELETE = 0x0013; // printer is being deleted
public const int PO_RENAME = 0x0014; // printer is being renamed
public const int PO_PORTCHANGE = 0x0020; // port this printer connected to is being changed
// list of strings. The first is the printer
// name and the second is the printer port.
// Printer stuff
public const int PRINTACTION_OPEN = 0;
public const int PRINTACTION_PROPERTIES = 1;
public const int PRINTACTION_NETINSTALL = 2;
public const int PRINTACTION_NETINSTALLLINK = 3;
public const int PRINTACTION_TESTPAGE = 4;
public const int PRINTACTION_OPENNETPRN = 5;
public const int PRINTACTION_DOCUMENTDEFAULTS = 6;
public const int PRINTACTION_SERVERPROPERTIES = 7; 22: WINERROR
/// The printer is out of paper.
/// The printer queue is full.
public const int ERROR_PRINTQ_FULL = 61;
/// Space to store the file waiting to be printed is not available on the server.
/// Your file waiting to be printed was deleted.
public const int ERROR_PRINT_CANCELLED = 63;
/// The specified printer or disk device has been paused.
/// The specified printer driver is already installed.
public const int ERROR_PRINTER_DRIVER_ALREADY_INSTALLED = 1795;
/// The printer driver is unknown.
public const int ERROR_UNKNOWN_PRINTER_DRIVER = 1797;
/// The print processor is unknown.
public const int ERROR_UNKNOWN_PRINTPROCESSOR = 1798;
/// The printer name is invalid.
public const int ERROR_INVALID_PRINTER_NAME = 1801;
/// The printer already exists.
public const int ERROR_PRINTER_ALREADY_EXISTS = 1802;
/// The printer command is invalid.
public const int ERROR_INVALID_PRINTER_COMMAND = 1803;
/// The specified printer handle is already being waited on
/// The specified printer has been deleted.
public const int ERROR_PRINTER_DELETED = 1905;
/// The state of the printer is invalid.
public const int ERROR_INVALID_PRINTER_STATE = 1906;
/// The printer driver is not compatible with a policy enabled on your computer that blocks NT 4.0 drivers.
public const int ERROR_REMOTE_PRINT_CONNECTIONS_BLOCKED = 1936;
/// The specified print monitor is unknown.
public const int ERROR_UNKNOWN_PRINT_MONITOR = 3000;
/// The specified printer driver is currently in use.
public const int ERROR_PRINTER_DRIVER_IN_USE = 3001;
/// A StartDocPrinter call was not issued.
/// The specified print processor has already been installed.
public const int ERROR_PRINT_PROCESSOR_ALREADY_INSTALLED = 3005;
/// The specified print monitor has already been installed.
public const int ERROR_PRINT_MONITOR_ALREADY_INSTALLED = 3006;
/// The specified print monitor does not have the required functions.
public const int ERROR_INVALID_PRINT_MONITOR = 3007;
/// The specified print monitor is currently in use.
public const int ERROR_PRINT_MONITOR_IN_USE = 3008;
/// The requested operation is not allowed when there are jobs queued to the printer.
public const int ERROR_PRINTER_HAS_JOBS_QUEUED = 3009;
/// No printers were found.
public const int ERROR_PRINTER_NOT_FOUND = 3012;
/// The printer driver is known to be unreliable.
public const int ERROR_PRINTER_DRIVER_WARNED = 3013;
/// The printer driver is known to harm the system.
public const int ERROR_PRINTER_DRIVER_BLOCKED = 3014;
/// The string contains a non-printable character.
public const int CRYPT_E_INVALID_PRINTABLE_STRING = (int)(0x80092021 - 0x100000000); 23: WM
private const UInt32 WM_PRINT = 0x0317;
private const UInt32 WM_PRINTCLIENT = 0x0318;
WM_PRINT = &H317
WM_PRINTCLIENT = &H318
WM_PRINT equ 317h
WM_PRINTCLIENT equ 318h userenv
printf("%d %s\n", (int)size, path);
printf("%d %s\n", (int)size, path); winfax
static extern bool FaxPrintCoverPage (ref FAX_CONTEXT_INFO FaxContextInfo,
Declare Function FaxPrintCoverPage Lib "winfax.dll" (TODO) As TODO 26: FaxStartPrintJob
static extern bool FaxStartPrintJob (string PrinterName,
ref FAX_PRINT_INFO PrintInfo, out int FaxJobId,
Declare Function FaxStartPrintJob Lib "winfax.dll" (TODO) As TODO 27: FAX_PRINT_INFO printui28: PrintUIEntryW
[DllImport("printui.dll", SetLastError = true, CharSet = CharSet.Unicode)]
private static extern void PrintUIEntryW(IntPtr hwnd, IntPtr hinst, string lpszCmdLine, int nCmdShow);
PrintUIEntry(IntPtr.Zero, IntPtr.Zero, @"/?", 0); Add per machine printer connection (the connection will be propagated to the user upon logon):
PrintUIEntry(IntPtr.Zero, IntPtr.Zero, @"/c \\machine /ga /n\\server\queue", 0); Delete per machine printer connection (the connection will be deleted upon user logon):
PrintUIEntry(IntPtr.Zero, IntPtr.Zero, @"/c \\machine /gd /n\\server\queue", 0); View default printer's properties PrintDocument printDoc = new PrintDocument(); PrintUIEntryW(IntPtr.Zero, IntPtr.Zero, @"/p /n " + "\ " + printDoc.PrinterSettings.PrinterName + "\ ", 0); // "\"" required for printer name with spaces rasapi32
SecureFileAndPrint = 0x1, iphlpapi
IF_TYPE_ISO88025_CRFPRINT = 98, // ISO 802.5 CRFP netapi32
''' Admin, Accounts, Print, or Server Operator group membership is required to successfully execute NetMessageBufferSend on a remote server. 33: netserverenum
PrintQueueServer = 0x00000200,
MicrosoftFileAndPrintServer= 0x00004000,
SV_TYPE_PRINTQ_SERVER = 0x00000200, 34: NetServerGetInfo
PrintQueueServer = 0x00000200,
MicrosoftFileAndPrintServer= 0x00004000, 35: NetShareAdd
STYPE_PRINTQ = 1,
' <summary>Printer Share</summary>
Printer = 1 36: NetShareCheck
STYPE_PRINTQ = 1, 37: NetShareEnum
STYPE_PRINTQ = 1, 38: NetUseAdd mpr
RESOURCETYPE_PRINT,
// RESOURCETYPE_PRINT = 2,
Print = 2,
RESOURCETYPE_PRINT, 41: WNetEnumResource
RESOURCETYPE_PRINT = 0x00000002,
RESOURCETYPE_PRINT = &H2 localName is the local name for the network resource (drive or printer)
PRINT = 0x00000002, opengl32
public void glPrint(String outputString,Int32 x1, Int32 y1, Int32 x2,
// Print the string if there is room
public Int32 getPrintWidth(String outputString) xpsprintkernel32
Debug.Print(CStr(CheckRemoteDebuggerPresent(proc.Handle, bool))) 47: DeviceIoControl
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). 50: 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))) coredll
public short dmPrintQuality;
short dmPrintQuality;
Public Property dmPrintQuality() As Short 52: NKDbgPrintfW
//Taken from http://www.codeproject.com/csharp/timezoneconversions.asp?print=true shlwapi54: AssocCreate
"print", null, ref size);
"print", sb, ref size);
Console.WriteLine(".doc is printed by : {0}", sb.ToString());
Console.WriteLine("No command line is associated to .doc print verb."); setupapi55: Option Explicit Text1.Text = SendToUsbPrinter(”Hello world.”) Function SendToUsbPrinter(PrintOut As String) As Boolean SendToUsbPrinter = False Debug.Print DeviceName Debug.Print “Open failed on ” & DeviceName Ret = WriteFile(DeviceHandle, PrintOut, _ Len(PrintOut), BytesWritten, 0) Debug.Print “Sent ” & BytesWritten & ” bytes.” SendToUsbPrinter = True winmmurlmon57: FindMimeFromData
Debug.Print PtrToString(buffAddr) Structures58: 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; 59: FAX_PRINT_INFO 60: FORMATETC
DVASPECT_DOCPRINT = 8
DVASPECT_DOCPRINT = 8 Cut off search results after 60. Please refine your search. |