62 references to NativeMethods
PresentationFramework (62)
MS\Internal\Printing\PrintDlgExMarshaler.cs (57)
89
return
NativeMethods
.PD_RESULT_CANCEL;
94
if ((dialogResult ==
NativeMethods
.PD_RESULT_PRINT) ||
95
(dialogResult ==
NativeMethods
.PD_RESULT_APPLY))
112
if ((flags &
NativeMethods
.PD_PAGENUMS) ==
NativeMethods
.PD_PAGENUMS)
124
else if ((flags &
NativeMethods
.PD_SELECTION) ==
NativeMethods
.PD_SELECTION)
128
else if ((flags &
NativeMethods
.PD_CURRENTPAGE) ==
NativeMethods
.PD_CURRENTPAGE)
235
NativeMethods
.PRINTDLGEX32 pdex = Marshal.PtrToStructure<
NativeMethods
.PRINTDLGEX32>(unmanagedBuffer);
243
NativeMethods
.PRINTDLGEX64 pdex = Marshal.PtrToStructure<
NativeMethods
.PRINTDLGEX64>(unmanagedBuffer);
254
if (((flags &
NativeMethods
.PD_PAGENUMS) ==
NativeMethods
.PD_PAGENUMS) &&
257
NativeMethods
.PRINTPAGERANGE pageRangeStruct = Marshal.PtrToStructure<
NativeMethods
.PRINTPAGERANGE>(pageRangePtr);
276
NativeMethods
.DEVNAMES devNames = Marshal.PtrToStructure<
NativeMethods
.DEVNAMES>(pDevNames);
372
NativeMethods
.DEVMODE devMode = Marshal.PtrToStructure<
NativeMethods
.DEVMODE>(pDevMode);
418
NativeMethods
.PRINTDLGEX32 pdex = Marshal.PtrToStructure<
NativeMethods
.PRINTDLGEX32>(unmanagedBuffer);
423
NativeMethods
.PRINTDLGEX64 pdex = Marshal.PtrToStructure<
NativeMethods
.PRINTDLGEX64>(unmanagedBuffer);
446
NativeMethods
.PRINTPAGERANGE range;
451
NativeMethods
.PD_ALLPAGES |
452
NativeMethods
.PD_USEDEVMODECOPIESANDCOLLATE |
453
NativeMethods
.PD_DISABLEPRINTTOFILE |
454
NativeMethods
.PD_HIDEPRINTTOFILE;
459
NativeMethods
.PRINTDLGEX32 pdex = new
NativeMethods
.PRINTDLGEX32
471
pdex.Flags |=
NativeMethods
.PD_SELECTION;
476
pdex.Flags |=
NativeMethods
.PD_NOSELECTION;
483
pdex.Flags |=
NativeMethods
.PD_CURRENTPAGE;
488
pdex.Flags |=
NativeMethods
.PD_NOCURRENTPAGE;
493
pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(
NativeMethods
.PRINTPAGERANGE)));
500
pdex.Flags |=
NativeMethods
.PD_PAGENUMS;
511
pdex.Flags |=
NativeMethods
.PD_NOPAGENUMS;
532
int cbBufferSize = Marshal.SizeOf(typeof(
NativeMethods
.PRINTDLGEX32));
538
NativeMethods
.PRINTDLGEX64 pdex = new
NativeMethods
.PRINTDLGEX64
550
pdex.Flags |=
NativeMethods
.PD_SELECTION;
555
pdex.Flags |=
NativeMethods
.PD_NOSELECTION;
562
pdex.Flags |=
NativeMethods
.PD_CURRENTPAGE;
567
pdex.Flags |=
NativeMethods
.PD_NOCURRENTPAGE;
572
pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(
NativeMethods
.PRINTPAGERANGE)));
579
pdex.Flags |=
NativeMethods
.PD_PAGENUMS;
590
pdex.Flags |=
NativeMethods
.PD_NOPAGENUMS;
611
int cbBufferSize = Marshal.SizeOf(typeof(
NativeMethods
.PRINTDLGEX64));
658
NativeMethods
.PRINTDLGEX32 pdex = Marshal.PtrToStructure<
NativeMethods
.PRINTDLGEX32>(unmanagedBuffer);
665
NativeMethods
.PRINTDLGEX64 pdex = Marshal.PtrToStructure<
NativeMethods
.PRINTDLGEX64>(unmanagedBuffer);
726
Marshal.SizeOf(typeof(
NativeMethods
.DEVNAMES)));
729
ushort baseOffset = (ushort)Marshal.SizeOf(typeof(
NativeMethods
.DEVNAMES));
738
NativeMethods
.DEVNAMES devNames;
MS\Internal\Printing\Win32PrintDialog.cs (2)
52
UInt32 result =
NativeMethods
.PD_RESULT_CANCEL;
125
result =
NativeMethods
.PD_RESULT_CANCEL;
System\Windows\Controls\PrintDialog.cs (3)
314
if ((dialogResult == MS.Internal.Printing.
NativeMethods
.PD_RESULT_APPLY) ||
315
(dialogResult == MS.Internal.Printing.
NativeMethods
.PD_RESULT_PRINT))
323
return (dialogResult == MS.Internal.Printing.
NativeMethods
.PD_RESULT_PRINT);