62 references to NativeMethods
PresentationFramework (62)
MS\Internal\Printing\PrintDlgExMarshaler.cs (57)
90return NativeMethods.PD_RESULT_CANCEL; 95if ((dialogResult == NativeMethods.PD_RESULT_PRINT) || 96(dialogResult == NativeMethods.PD_RESULT_APPLY)) 113if ((flags & NativeMethods.PD_PAGENUMS) == NativeMethods.PD_PAGENUMS) 125else if ((flags & NativeMethods.PD_SELECTION) == NativeMethods.PD_SELECTION) 129else if ((flags & NativeMethods.PD_CURRENTPAGE) == NativeMethods.PD_CURRENTPAGE) 236NativeMethods.PRINTDLGEX32 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX32>(unmanagedBuffer); 244NativeMethods.PRINTDLGEX64 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX64>(unmanagedBuffer); 255if (((flags & NativeMethods.PD_PAGENUMS) == NativeMethods.PD_PAGENUMS) && 258NativeMethods.PRINTPAGERANGE pageRangeStruct = Marshal.PtrToStructure<NativeMethods.PRINTPAGERANGE>(pageRangePtr); 277NativeMethods.DEVNAMES devNames = Marshal.PtrToStructure<NativeMethods.DEVNAMES>(pDevNames); 373NativeMethods.DEVMODE devMode = Marshal.PtrToStructure<NativeMethods.DEVMODE>(pDevMode); 419NativeMethods.PRINTDLGEX32 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX32>(unmanagedBuffer); 424NativeMethods.PRINTDLGEX64 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX64>(unmanagedBuffer); 447NativeMethods.PRINTPAGERANGE range; 452NativeMethods.PD_ALLPAGES | 453NativeMethods.PD_USEDEVMODECOPIESANDCOLLATE | 454NativeMethods.PD_DISABLEPRINTTOFILE | 455NativeMethods.PD_HIDEPRINTTOFILE; 460NativeMethods.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 551pdex.Flags |= NativeMethods.PD_SELECTION; 556pdex.Flags |= NativeMethods.PD_NOSELECTION; 563pdex.Flags |= NativeMethods.PD_CURRENTPAGE; 568pdex.Flags |= NativeMethods.PD_NOCURRENTPAGE; 573pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(NativeMethods.PRINTPAGERANGE))); 580pdex.Flags |= NativeMethods.PD_PAGENUMS; 591pdex.Flags |= NativeMethods.PD_NOPAGENUMS; 612int cbBufferSize = Marshal.SizeOf(typeof(NativeMethods.PRINTDLGEX64)); 659NativeMethods.PRINTDLGEX32 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX32>(unmanagedBuffer); 666NativeMethods.PRINTDLGEX64 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX64>(unmanagedBuffer); 727Marshal.SizeOf(typeof(NativeMethods.DEVNAMES))); 730ushort baseOffset = (ushort)Marshal.SizeOf(typeof(NativeMethods.DEVNAMES)); 739NativeMethods.DEVNAMES devNames;
MS\Internal\Printing\Win32PrintDialog.cs (2)
53UInt32 result = NativeMethods.PD_RESULT_CANCEL; 126result = NativeMethods.PD_RESULT_CANCEL;
System\Windows\Controls\PrintDialog.cs (3)
315if ((dialogResult == MS.Internal.Printing.NativeMethods.PD_RESULT_APPLY) || 316(dialogResult == MS.Internal.Printing.NativeMethods.PD_RESULT_PRINT)) 324return (dialogResult == MS.Internal.Printing.NativeMethods.PD_RESULT_PRINT);