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(); 470pdex.Flags |= NativeMethods.PD_SELECTION; 475pdex.Flags |= NativeMethods.PD_NOSELECTION; 482pdex.Flags |= NativeMethods.PD_CURRENTPAGE; 487pdex.Flags |= NativeMethods.PD_NOCURRENTPAGE; 492pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(NativeMethods.PRINTPAGERANGE))); 499pdex.Flags |= NativeMethods.PD_PAGENUMS; 510pdex.Flags |= NativeMethods.PD_NOPAGENUMS; 531int cbBufferSize = Marshal.SizeOf(typeof(NativeMethods.PRINTDLGEX32)); 537NativeMethods.PRINTDLGEX64 pdex = new NativeMethods.PRINTDLGEX64(); 547pdex.Flags |= NativeMethods.PD_SELECTION; 552pdex.Flags |= NativeMethods.PD_NOSELECTION; 559pdex.Flags |= NativeMethods.PD_CURRENTPAGE; 564pdex.Flags |= NativeMethods.PD_NOCURRENTPAGE; 569pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(NativeMethods.PRINTPAGERANGE))); 576pdex.Flags |= NativeMethods.PD_PAGENUMS; 587pdex.Flags |= NativeMethods.PD_NOPAGENUMS; 608int cbBufferSize = Marshal.SizeOf(typeof(NativeMethods.PRINTDLGEX64)); 655NativeMethods.PRINTDLGEX32 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX32>(unmanagedBuffer); 662NativeMethods.PRINTDLGEX64 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX64>(unmanagedBuffer); 723Marshal.SizeOf(typeof(NativeMethods.DEVNAMES))); 726ushort baseOffset = (ushort)Marshal.SizeOf(typeof(NativeMethods.DEVNAMES)); 735NativeMethods.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)
314if ((dialogResult == MS.Internal.Printing.NativeMethods.PD_RESULT_APPLY) || 315(dialogResult == MS.Internal.Printing.NativeMethods.PD_RESULT_PRINT)) 323return (dialogResult == MS.Internal.Printing.NativeMethods.PD_RESULT_PRINT);