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);
369
NativeMethods
.DEVMODE devMode = Marshal.PtrToStructure<
NativeMethods
.DEVMODE>(pDevMode);
415
NativeMethods
.PRINTDLGEX32 pdex = Marshal.PtrToStructure<
NativeMethods
.PRINTDLGEX32>(unmanagedBuffer);
420
NativeMethods
.PRINTDLGEX64 pdex = Marshal.PtrToStructure<
NativeMethods
.PRINTDLGEX64>(unmanagedBuffer);
443
NativeMethods
.PRINTPAGERANGE range;
448
NativeMethods
.PD_ALLPAGES |
449
NativeMethods
.PD_USEDEVMODECOPIESANDCOLLATE |
450
NativeMethods
.PD_DISABLEPRINTTOFILE |
451
NativeMethods
.PD_HIDEPRINTTOFILE;
456
NativeMethods
.PRINTDLGEX32 pdex = new
NativeMethods
.PRINTDLGEX32
468
pdex.Flags |=
NativeMethods
.PD_SELECTION;
473
pdex.Flags |=
NativeMethods
.PD_NOSELECTION;
480
pdex.Flags |=
NativeMethods
.PD_CURRENTPAGE;
485
pdex.Flags |=
NativeMethods
.PD_NOCURRENTPAGE;
490
pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(
NativeMethods
.PRINTPAGERANGE)));
497
pdex.Flags |=
NativeMethods
.PD_PAGENUMS;
508
pdex.Flags |=
NativeMethods
.PD_NOPAGENUMS;
529
int cbBufferSize = Marshal.SizeOf(typeof(
NativeMethods
.PRINTDLGEX32));
535
NativeMethods
.PRINTDLGEX64 pdex = new
NativeMethods
.PRINTDLGEX64
547
pdex.Flags |=
NativeMethods
.PD_SELECTION;
552
pdex.Flags |=
NativeMethods
.PD_NOSELECTION;
559
pdex.Flags |=
NativeMethods
.PD_CURRENTPAGE;
564
pdex.Flags |=
NativeMethods
.PD_NOCURRENTPAGE;
569
pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(
NativeMethods
.PRINTPAGERANGE)));
576
pdex.Flags |=
NativeMethods
.PD_PAGENUMS;
587
pdex.Flags |=
NativeMethods
.PD_NOPAGENUMS;
608
int cbBufferSize = Marshal.SizeOf(typeof(
NativeMethods
.PRINTDLGEX64));
655
NativeMethods
.PRINTDLGEX32 pdex = Marshal.PtrToStructure<
NativeMethods
.PRINTDLGEX32>(unmanagedBuffer);
662
NativeMethods
.PRINTDLGEX64 pdex = Marshal.PtrToStructure<
NativeMethods
.PRINTDLGEX64>(unmanagedBuffer);
723
Marshal.SizeOf(typeof(
NativeMethods
.DEVNAMES)));
726
ushort baseOffset = (ushort)Marshal.SizeOf(typeof(
NativeMethods
.DEVNAMES));
735
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);