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); 372NativeMethods.DEVMODE devMode = Marshal.PtrToStructure<NativeMethods.DEVMODE>(pDevMode); 418NativeMethods.PRINTDLGEX32 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX32>(unmanagedBuffer); 423NativeMethods.PRINTDLGEX64 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX64>(unmanagedBuffer); 446NativeMethods.PRINTPAGERANGE range; 451NativeMethods.PD_ALLPAGES | 452NativeMethods.PD_USEDEVMODECOPIESANDCOLLATE | 453NativeMethods.PD_DISABLEPRINTTOFILE | 454NativeMethods.PD_HIDEPRINTTOFILE; 459NativeMethods.PRINTDLGEX32 pdex = new NativeMethods.PRINTDLGEX32 471pdex.Flags |= NativeMethods.PD_SELECTION; 476pdex.Flags |= NativeMethods.PD_NOSELECTION; 483pdex.Flags |= NativeMethods.PD_CURRENTPAGE; 488pdex.Flags |= NativeMethods.PD_NOCURRENTPAGE; 493pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(NativeMethods.PRINTPAGERANGE))); 500pdex.Flags |= NativeMethods.PD_PAGENUMS; 511pdex.Flags |= NativeMethods.PD_NOPAGENUMS; 532int cbBufferSize = Marshal.SizeOf(typeof(NativeMethods.PRINTDLGEX32)); 538NativeMethods.PRINTDLGEX64 pdex = new NativeMethods.PRINTDLGEX64 550pdex.Flags |= NativeMethods.PD_SELECTION; 555pdex.Flags |= NativeMethods.PD_NOSELECTION; 562pdex.Flags |= NativeMethods.PD_CURRENTPAGE; 567pdex.Flags |= NativeMethods.PD_NOCURRENTPAGE; 572pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(NativeMethods.PRINTPAGERANGE))); 579pdex.Flags |= NativeMethods.PD_PAGENUMS; 590pdex.Flags |= NativeMethods.PD_NOPAGENUMS; 611int cbBufferSize = Marshal.SizeOf(typeof(NativeMethods.PRINTDLGEX64)); 658NativeMethods.PRINTDLGEX32 pdex = Marshal.PtrToStructure<NativeMethods.PRINTDLGEX32>(unmanagedBuffer); 665NativeMethods.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)
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);