62 references to NativeMethods
PresentationFramework (62)
MS\Internal\Printing\PrintDlgExMarshaler.cs (57)
89return NativeMethods.PD_RESULT_CANCEL; 94if ((dialogResult == NativeMethods.PD_RESULT_PRINT) || 95(dialogResult == NativeMethods.PD_RESULT_APPLY)) 112if ((flags & NativeMethods.PD_PAGENUMS) == NativeMethods.PD_PAGENUMS) 124else if ((flags & NativeMethods.PD_SELECTION) == NativeMethods.PD_SELECTION) 128else if ((flags & NativeMethods.PD_CURRENTPAGE) == NativeMethods.PD_CURRENTPAGE) 235NativeMethods.PRINTDLGEX32 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX32>(unmanagedBuffer); 243NativeMethods.PRINTDLGEX64 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX64>(unmanagedBuffer); 254if (((flags & NativeMethods.PD_PAGENUMS) == NativeMethods.PD_PAGENUMS) && 257NativeMethods.PRINTPAGERANGE pageRangeStruct = Marshal.PtrToStructure<NativeMethods.PRINTPAGERANGE>(pageRangePtr); 276NativeMethods.DEVNAMES devNames = Marshal.PtrToStructure<NativeMethods.DEVNAMES>(pDevNames); 369NativeMethods.DEVMODE devMode = Marshal.PtrToStructure<NativeMethods.DEVMODE>(pDevMode); 415NativeMethods.PRINTDLGEX32 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX32>(unmanagedBuffer); 420NativeMethods.PRINTDLGEX64 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX64>(unmanagedBuffer); 443NativeMethods.PRINTPAGERANGE range; 448NativeMethods.PD_ALLPAGES | 449NativeMethods.PD_USEDEVMODECOPIESANDCOLLATE | 450NativeMethods.PD_DISABLEPRINTTOFILE | 451NativeMethods.PD_HIDEPRINTTOFILE; 456NativeMethods.PRINTDLGEX32 pdex = new NativeMethods.PRINTDLGEX32 468pdex.Flags |= NativeMethods.PD_SELECTION; 473pdex.Flags |= NativeMethods.PD_NOSELECTION; 480pdex.Flags |= NativeMethods.PD_CURRENTPAGE; 485pdex.Flags |= NativeMethods.PD_NOCURRENTPAGE; 490pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(NativeMethods.PRINTPAGERANGE))); 497pdex.Flags |= NativeMethods.PD_PAGENUMS; 508pdex.Flags |= NativeMethods.PD_NOPAGENUMS; 529int cbBufferSize = Marshal.SizeOf(typeof(NativeMethods.PRINTDLGEX32)); 535NativeMethods.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)
52UInt32 result = NativeMethods.PD_RESULT_CANCEL; 125result = 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);