62 references to NativeMethods
PresentationFramework (62)
MS\Internal\Printing\PrintDlgExMarshaler.cs (57)
92return NativeMethods.PD_RESULT_CANCEL; 97if ((dialogResult == NativeMethods.PD_RESULT_PRINT) || 98(dialogResult == NativeMethods.PD_RESULT_APPLY)) 115if ((flags & NativeMethods.PD_PAGENUMS) == NativeMethods.PD_PAGENUMS) 127else if ((flags & NativeMethods.PD_SELECTION) == NativeMethods.PD_SELECTION) 131else if ((flags & NativeMethods.PD_CURRENTPAGE) == NativeMethods.PD_CURRENTPAGE) 238NativeMethods.PRINTDLGEX32 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX32>(unmanagedBuffer); 246NativeMethods.PRINTDLGEX64 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX64>(unmanagedBuffer); 257if (((flags & NativeMethods.PD_PAGENUMS) == NativeMethods.PD_PAGENUMS) && 260NativeMethods.PRINTPAGERANGE pageRangeStruct = Marshal.PtrToStructure<NativeMethods.PRINTPAGERANGE>(pageRangePtr); 279NativeMethods.DEVNAMES devNames = Marshal.PtrToStructure<NativeMethods.DEVNAMES>(pDevNames); 375NativeMethods.DEVMODE devMode = Marshal.PtrToStructure<NativeMethods.DEVMODE>(pDevMode); 421NativeMethods.PRINTDLGEX32 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX32>(unmanagedBuffer); 426NativeMethods.PRINTDLGEX64 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX64>(unmanagedBuffer); 449NativeMethods.PRINTPAGERANGE range; 454NativeMethods.PD_ALLPAGES | 455NativeMethods.PD_USEDEVMODECOPIESANDCOLLATE | 456NativeMethods.PD_DISABLEPRINTTOFILE | 457NativeMethods.PD_HIDEPRINTTOFILE; 462NativeMethods.PRINTDLGEX32 pdex = new NativeMethods.PRINTDLGEX32(); 472pdex.Flags |= NativeMethods.PD_SELECTION; 477pdex.Flags |= NativeMethods.PD_NOSELECTION; 484pdex.Flags |= NativeMethods.PD_CURRENTPAGE; 489pdex.Flags |= NativeMethods.PD_NOCURRENTPAGE; 494pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(NativeMethods.PRINTPAGERANGE))); 501pdex.Flags |= NativeMethods.PD_PAGENUMS; 512pdex.Flags |= NativeMethods.PD_NOPAGENUMS; 533int cbBufferSize = Marshal.SizeOf(typeof(NativeMethods.PRINTDLGEX32)); 539NativeMethods.PRINTDLGEX64 pdex = new NativeMethods.PRINTDLGEX64(); 549pdex.Flags |= NativeMethods.PD_SELECTION; 554pdex.Flags |= NativeMethods.PD_NOSELECTION; 561pdex.Flags |= NativeMethods.PD_CURRENTPAGE; 566pdex.Flags |= NativeMethods.PD_NOCURRENTPAGE; 571pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(NativeMethods.PRINTPAGERANGE))); 578pdex.Flags |= NativeMethods.PD_PAGENUMS; 589pdex.Flags |= NativeMethods.PD_NOPAGENUMS; 610int cbBufferSize = Marshal.SizeOf(typeof(NativeMethods.PRINTDLGEX64)); 657NativeMethods.PRINTDLGEX32 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX32>(unmanagedBuffer); 664NativeMethods.PRINTDLGEX64 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX64>(unmanagedBuffer); 726Marshal.SizeOf(typeof(NativeMethods.DEVNAMES))); 729ushort baseOffset = (ushort)Marshal.SizeOf(typeof(NativeMethods.DEVNAMES)); 738NativeMethods.DEVNAMES devNames;
MS\Internal\Printing\Win32PrintDialog.cs (2)
55UInt32 result = NativeMethods.PD_RESULT_CANCEL; 128result = NativeMethods.PD_RESULT_CANCEL;
System\Windows\Controls\PrintDialog.cs (3)
324if ((dialogResult == MS.Internal.Printing.NativeMethods.PD_RESULT_APPLY) || 325(dialogResult == MS.Internal.Printing.NativeMethods.PD_RESULT_PRINT)) 333return (dialogResult == MS.Internal.Printing.NativeMethods.PD_RESULT_PRINT);