Desktop Functions: Smart Device Functions:
|
Search Results for "print" in [All]iphlpapi
IF_TYPE_ISO88025_CRFPRINT = 98, // ISO 802.5 CRFP shlwapi2: 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."); winfax
static extern bool FaxPrintCoverPage (ref FAX_CONTEXT_INFO FaxContextInfo,
Declare Function FaxPrintCoverPage Lib "winfax.dll" (TODO) As TODO
static extern bool FaxStartPrintJob (string PrinterName,
ref FAX_PRINT_INFO PrintInfo, out int FaxJobId,
Declare Function FaxStartPrintJob Lib "winfax.dll" (TODO) As TODO msvcrt6: 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)); gdi327: AbortDoc
8: 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. 9: 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. 10: 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 11: GetPixel
// Print out the RGB value of the pixel which is under the mouse cursor. 12: SetAbortProc
13: StartDoc
coredll
public short dmPrintQuality;
short dmPrintQuality;
Public Property dmPrintQuality() As Short 15: NKDbgPrintfW
//Taken from http://www.codeproject.com/csharp/timezoneconversions.asp?print=true setupapi17: 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 printui21: !!!!!!!!!!!!! 22: !!!!!!!!!!! 23: !!!!!!!!!! 24: !!!!!!!!! 25: !!!!!! 26: !!! 27: !! 28: lorem22 29: lorem37 30: 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 user3232: GetKeyboardState
VK_PRINT = 0x2A, 33: GetKeyState
VK_PRINT = 0x2A, 34: GetLastInputInfo Prints time in seconds since last user input.
printf("%d seconds\n", (idleTicks > 0)? idleTicks/1000: 0); 35: 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 36: UIntPtr
//Console Prints: 0 0 1
public static void CopyPrint() 37: VirtualKeyCodes Public Const VK_PRINT = &H2A 'print screen
public const uint VK_PRINT = 0x2A; 38: wsprintf
xpsprint39: !!!!!!!!!!!!!!! 40: !!!!!!!!!!!!!! 41: !!!!!!!!!!!!! 42: !!!!!!!!!!!! 43: !!!!!!!!!!! 44: !!!!!!!!!! 45: !!!!!!!!! 46: !!!!!! 47: !! 48: ! 49: lorem13 50: lorem18 51: lorem40
crypt32
printf("Opened the MY system store. \n");
printf( "Could not open the MY system store.\n");
printf("The MY store is duplicated.\n");
printf("Duplication of the MY store failed.\n."); kernel32
Debug.Print(CStr(CheckRemoteDebuggerPresent(proc.Handle, bool))) 55: 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). 58: 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))) comdlg3259: ChooseFont
CF_PRINTERFONTS = 0x00000002,
CF_BOTH = (CF_SCREENFONTS | CF_PRINTERFONTS), 60: 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 Cut off search results after 60. Please refine your search. |