Desktop Functions: Smart Device Functions:
|
Search Results for "print" in [All]mpr
RESOURCETYPE_PRINT,
// RESOURCETYPE_PRINT = 2,
Print = 2,
RESOURCETYPE_PRINT,
RESOURCETYPE_PRINT = 0x00000002,
RESOURCETYPE_PRINT = &H2 localName is the local name for the network resource (drive or printer)
PRINT = 0x00000002, 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). 10: 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))) comdlg3211: ChooseFont
CF_PRINTERFONTS = 0x00000002,
CF_BOTH = (CF_SCREENFONTS | CF_PRINTERFONTS), 12: PrintDlg
private static extern bool PrintDlgEx([In(), Out()] PRINTDLGEX lppd);
Private Shared Function PrintDlgEx(<[In](), Out()> ByVal lppd As PRINTDLGEX) As Boolean System.Windows.Forms.PrintDialog
Public Class WWPrintDialog
Private m_bAllowPrintToFile As Boolean = False
Private m_sPrinterName As String = String.Empty
Private Shared Function PrintDlgEx(<[In](), Out()> ByVal lppd As PRINTDLGEX) As Boolean
Return InvokePrintDlgEx()
Public Function InvokePrintDlgEx() As DialogResult
Dim _pdex As PRINTDLGEX = New PRINTDLGEX()
Dim _ppr As PRINTPAGERANGE = New PRINTPAGERANGE()
Dim prnsettings As Printing.PrinterSettings = New Printing.PrinterSettings()
_pdex.lpPrintTemplateName = Nothing
_pdex.Flags = PRINTFLAG.PD_NOSELECTION Or PRINTFLAG.PD_NOPAGENUMS
Return IIf(PrintDlgEx(_pdex), DialogResult.OK, DialogResult.Cancel)
Public Class PRINTDLGEX
Public lpPrintTemplateName As String
Public Class PRINTPAGERANGE
Public Class PRINTFLAG
Public Const PD_PRINTTOFILE As Int32 = 32
Public Const PD_PRINTSETUP As Int32 = 64
Public Const PD_ENABLEPRINTHOOK As Int32 = 4096
Public Const PD_ENABLEPRINTTEMPLATE As Int32 = 16384
Public Const PD_ENABLEPRINTTEMPLATEHANDLE As Int32 = 65536
Public Const PD_DISABLEPRINTTOFILE As Int32 = 524288
Public Const PD_HIDEPRINTTOFILE As Int32 = 1048576 13: PrintDlgEx
private static extern bool PrintDlgEx([In(), Out()] PRINTDLGEX lppd);
Private Shared Function PrintDlgEx(<[In](), Out()> ByVal lppd As PRINTDLGEX) As Boolean System.Windows.Forms.PrintDialog
Public Class WWPrintDialog
Private m_bAllowPrintToFile As Boolean = False
Private m_sPrinterName As String = String.Empty
Private Shared Function PrintDlgEx(<[In](), Out()> ByVal lppd As PRINTDLGEX) As Boolean
Return InvokePrintDlgEx()
Public Function InvokePrintDlgEx() As DialogResult
Dim _pdex As PRINTDLGEX = New PRINTDLGEX()
Dim _ppr As PRINTPAGERANGE = New PRINTPAGERANGE()
Dim prnsettings As Printing.PrinterSettings = New Printing.PrinterSettings()
_pdex.lpPrintTemplateName = Nothing
_pdex.Flags = PRINTFLAG.PD_NOSELECTION Or PRINTFLAG.PD_NOPAGENUMS
Return IIf(PrintDlgEx(_pdex), DialogResult.OK, DialogResult.Cancel)
Public Class PRINTDLGEX
Public lpPrintTemplateName As String
Public Class PRINTPAGERANGE
Public Class PRINTFLAG
Public Const PD_PRINTTOFILE As Int32 = 32
Public Const PD_PRINTSETUP As Int32 = 64
Public Const PD_ENABLEPRINTHOOK As Int32 = 4096
Public Const PD_ENABLEPRINTTEMPLATE As Int32 = 16384
Public Const PD_ENABLEPRINTTEMPLATEHANDLE As Int32 = 65536
Public Const PD_DISABLEPRINTTOFILE As Int32 = 524288
Public Const PD_HIDEPRINTTOFILE As Int32 = 1048576 urlmon14: FindMimeFromData
Debug.Print PtrToString(buffAddr) rapi15: CeRapiInvoke
wsprintf( outBuffer, _T("This is just a Test!") ); iphlpapi
IF_TYPE_ISO88025_CRFPRINT = 98, // ISO 802.5 CRFP ntdll
System.Diagnostics.Debug.Print(
// print results:
// sample printout: userenv
printf("%d %s\n", (int)size, path);
printf("%d %s\n", (int)size, path); opengl32
public void glPrint(String outputString,Int32 x1, Int32 y1, Int32 x2,
// Print the string if there is room
public Int32 getPrintWidth(String outputString) Constants21: 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}}"); 22: 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> 23: 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; 24: PROPERTYKEY
public static PropertyKey PKEY_Document_DatePrinted = new PropertyKey( 0xF29F85E0, 0x4FF9, 0x1068, 0xAB, 0x91, 0x08, 0x00, 0x2B, 0x27, 0xB3, 0xD9, 11); 25: RESOURCE
const UInt32 RESOURCETYPE_PRINT = 0x00000002; 26: 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; 27: 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; 28: 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); 29: 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 Structures30: 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; 31: FAX_PRINT_INFO
32: FORMATETC
DVASPECT_DOCPRINT = 8
DVASPECT_DOCPRINT = 8 33: JOB_INFO_1
34: KEYBDINPUT
///PRINT key
PRINT = 0x2A,
///PRINT SCREEN key
PRINT = 0, 35: PRINTDLG
public class PRINTDLG
public IntPtr lpfnPrintHook;
public IntPtr lpPrintTemplateName;
public IntPtr hPrintTemplate;
Structure PRINTDLG 36: 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. 37: 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. 38: 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. 39: 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); 41: 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 msvcrt42: 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)); gdi3243: AbortDoc
44: CreateIC in Pointer to a null-terminated character string that specifies the name of the specific output device being used, as shown by the Print Manager (for example, Epson FX-80). It is not the printer model name. The lpszDevice parameter must be used. 45: ExtEscape
static bool PrinterSupportsPostScript(string printername)
hDC =CreateDC(null,printername,0,IntPtr.Zero);
if(test==0) return false; // printer driver does not support GETTECHNOLOGY Checks. 46: GetDeviceCaps
// Printing related DeviceCaps. These replace the appropriate Escapes
/// Physical Printable Area x margin
/// Physical Printable Area y margin
' Printing related DeviceCaps. These replace the appropriate Escapes
''' Physical Printable Area x margin
''' Physical Printable Area y margin 47: GetPixel
// Print out the RGB value of the pixel which is under the mouse cursor. 48: SetAbortProc
49: StartDoc
shell3250: CSIDL
CSIDL_PRINTERS = 0x0004, // My Computer\Printers
CSIDL_PRINTHOOD = 0x001b, // <user name>\PrintHood 51: CSIDL
/// printers, and Control Panel. The folder may also contain mapped network drives.
CSIDL_PRINTERS = 0x0004, // The virtual folder containing installed printers.
/// The file system directory that contains the link objects that can exist in the Printers virtual folder.
/// A typical path is C:\Documents and Settings\username\PrintHood.
CSIDL_PRINTHOOD = 0x001b, 52: FindExecutable
''' <summary>There is no application associated with the given file name extension. This error will also be returned if you attempt to print a file that is not printable. </summary>
/// represent the friendly names of the printer(s) affected by the change.
SHCNF_PRINTERA = 0x0002,
/// represent the friendly names of the printer(s) affected by the change.
SHCNF_PRINTERW = 0x0006,
' represent the friendly names of the printer(s) affected by the change.
SHCNF_PRINTERA = &H2
' represent the friendly names of the printer(s) affected by the change.
SHCNF_PRINTERW = &H6 54: SHBindToParent
SHCONTF_NETPRINTERSRCH = 0x0200,
private uint BIF_BROWSEFORPRINTER = 0x2000;// Browsing for Printers If using .net version 1.1 or greater, you can use [System.Windows.Forms.FolderBrowserDialog] instead -- as long as you are only browsing for folders! If you want to browse for computers or printers, the .Net version does not seem to support this. 56: ShellExecuteEx lpVerb member can be used for a varity of actions like "properties", "find", "openas", "print"..etc depending on the file type you're dealing with.Actions available for a specific file type are stored in registry, setting lpVerb to null results in the default action of that file type to be executed.
"print" - Start printing the file with the default application.
"printto" - see MSDN 57: SHGetFolderPath
CSIDL_PRINTERS = 0x0004, // My Computer\Printers
CSIDL_PRINTHOOD = 0x001b, // <user name>\PrintHood
public static readonly Guid PrintersFolder = new Guid( "76FC4E2D-D6AD-4519-A663-37BD56068185" );
public static readonly Guid PrintHood = new Guid( "9274BD8D-CFD1-41C3-B35E-B13F55A758F4" );
PRINTERS = &H4
PRINTHOOD = &H1B
CSIDL_PRINTERS = 0x0004, // My Computer\Printers
CSIDL_PRINTHOOD = 0x001b, // <user name>\PrintHood Cut off search results after 60. Please refine your search. |