71 references to NativeMethods
PresentationFramework (71)
src\Framework\MS\Internal\Printing\PrintDlgExMarshaler.cs (66)
116return NativeMethods.PD_RESULT_CANCEL; 121if ((dialogResult == NativeMethods.PD_RESULT_PRINT) || 122(dialogResult == NativeMethods.PD_RESULT_APPLY)) 139if ((flags & NativeMethods.PD_PAGENUMS) == NativeMethods.PD_PAGENUMS) 151else if ((flags & NativeMethods.PD_SELECTION) == NativeMethods.PD_SELECTION) 155else if ((flags & NativeMethods.PD_CURRENTPAGE) == NativeMethods.PD_CURRENTPAGE) 276NativeMethods.PRINTDLGEX32 pdex = (NativeMethods.PRINTDLGEX32)Marshal.PtrToStructure( 278typeof(NativeMethods.PRINTDLGEX32)); 286NativeMethods.PRINTDLGEX64 pdex = (NativeMethods.PRINTDLGEX64)Marshal.PtrToStructure( 288typeof(NativeMethods.PRINTDLGEX64)); 299if (((flags & NativeMethods.PD_PAGENUMS) == NativeMethods.PD_PAGENUMS) && 302NativeMethods.PRINTPAGERANGE pageRangeStruct = (NativeMethods.PRINTPAGERANGE)Marshal.PtrToStructure( 304typeof(NativeMethods.PRINTPAGERANGE)); 323NativeMethods.DEVNAMES devNames = (NativeMethods.DEVNAMES)Marshal.PtrToStructure( 325typeof(NativeMethods.DEVNAMES)); 440NativeMethods.DEVMODE devMode = (NativeMethods.DEVMODE)Marshal.PtrToStructure( 442typeof(NativeMethods.DEVMODE)); 500NativeMethods.PRINTDLGEX32 pdex = (NativeMethods.PRINTDLGEX32)Marshal.PtrToStructure( 502typeof(NativeMethods.PRINTDLGEX32)); 507NativeMethods.PRINTDLGEX64 pdex = (NativeMethods.PRINTDLGEX64)Marshal.PtrToStructure( 509typeof(NativeMethods.PRINTDLGEX64)); 537NativeMethods.PRINTPAGERANGE range; 542NativeMethods.PD_ALLPAGES | 543NativeMethods.PD_USEDEVMODECOPIESANDCOLLATE | 544NativeMethods.PD_DISABLEPRINTTOFILE | 545NativeMethods.PD_HIDEPRINTTOFILE; 550NativeMethods.PRINTDLGEX32 pdex = new NativeMethods.PRINTDLGEX32(); 560pdex.Flags |= NativeMethods.PD_SELECTION; 565pdex.Flags |= NativeMethods.PD_NOSELECTION; 572pdex.Flags |= NativeMethods.PD_CURRENTPAGE; 577pdex.Flags |= NativeMethods.PD_NOCURRENTPAGE; 582pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(NativeMethods.PRINTPAGERANGE))); 589pdex.Flags |= NativeMethods.PD_PAGENUMS; 600pdex.Flags |= NativeMethods.PD_NOPAGENUMS; 621int cbBufferSize = Marshal.SizeOf(typeof(NativeMethods.PRINTDLGEX32)); 627NativeMethods.PRINTDLGEX64 pdex = new NativeMethods.PRINTDLGEX64(); 637pdex.Flags |= NativeMethods.PD_SELECTION; 642pdex.Flags |= NativeMethods.PD_NOSELECTION; 649pdex.Flags |= NativeMethods.PD_CURRENTPAGE; 654pdex.Flags |= NativeMethods.PD_NOCURRENTPAGE; 659pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(NativeMethods.PRINTPAGERANGE))); 666pdex.Flags |= NativeMethods.PD_PAGENUMS; 677pdex.Flags |= NativeMethods.PD_NOPAGENUMS; 698int cbBufferSize = Marshal.SizeOf(typeof(NativeMethods.PRINTDLGEX64)); 749NativeMethods.PRINTDLGEX32 pdex = (NativeMethods.PRINTDLGEX32)Marshal.PtrToStructure( 751typeof(NativeMethods.PRINTDLGEX32)); 758NativeMethods.PRINTDLGEX64 pdex = (NativeMethods.PRINTDLGEX64)Marshal.PtrToStructure( 760typeof(NativeMethods.PRINTDLGEX64)); 831Marshal.SizeOf(typeof(NativeMethods.DEVNAMES))); 834ushort baseOffset = (ushort)Marshal.SizeOf(typeof(NativeMethods.DEVNAMES)); 843NativeMethods.DEVNAMES devNames;
src\Framework\MS\Internal\Printing\Win32PrintDialog.cs (2)
82UInt32 result = NativeMethods.PD_RESULT_CANCEL; 155result = NativeMethods.PD_RESULT_CANCEL;
src\Framework\System\Windows\Controls\PrintDialog.cs (3)
375if ((dialogResult == MS.Internal.Printing.NativeMethods.PD_RESULT_APPLY) || 376(dialogResult == MS.Internal.Printing.NativeMethods.PD_RESULT_PRINT)) 385return (dialogResult == MS.Internal.Printing.NativeMethods.PD_RESULT_PRINT);