62 references to NativeMethods
PresentationFramework (62)
MS\Internal\Printing\PrintDlgExMarshaler.cs (57)
92
return
NativeMethods
.PD_RESULT_CANCEL;
97
if ((dialogResult ==
NativeMethods
.PD_RESULT_PRINT) ||
98
(dialogResult ==
NativeMethods
.PD_RESULT_APPLY))
115
if ((flags &
NativeMethods
.PD_PAGENUMS) ==
NativeMethods
.PD_PAGENUMS)
127
else if ((flags &
NativeMethods
.PD_SELECTION) ==
NativeMethods
.PD_SELECTION)
131
else if ((flags &
NativeMethods
.PD_CURRENTPAGE) ==
NativeMethods
.PD_CURRENTPAGE)
238
NativeMethods
.PRINTDLGEX32 pdex = Marshal.PtrToStructure<
NativeMethods
.PRINTDLGEX32>(unmanagedBuffer);
246
NativeMethods
.PRINTDLGEX64 pdex = Marshal.PtrToStructure<
NativeMethods
.PRINTDLGEX64>(unmanagedBuffer);
257
if (((flags &
NativeMethods
.PD_PAGENUMS) ==
NativeMethods
.PD_PAGENUMS) &&
260
NativeMethods
.PRINTPAGERANGE pageRangeStruct = Marshal.PtrToStructure<
NativeMethods
.PRINTPAGERANGE>(pageRangePtr);
279
NativeMethods
.DEVNAMES devNames = Marshal.PtrToStructure<
NativeMethods
.DEVNAMES>(pDevNames);
375
NativeMethods
.DEVMODE devMode = Marshal.PtrToStructure<
NativeMethods
.DEVMODE>(pDevMode);
421
NativeMethods
.PRINTDLGEX32 pdex = Marshal.PtrToStructure<
NativeMethods
.PRINTDLGEX32>(unmanagedBuffer);
426
NativeMethods
.PRINTDLGEX64 pdex = Marshal.PtrToStructure<
NativeMethods
.PRINTDLGEX64>(unmanagedBuffer);
449
NativeMethods
.PRINTPAGERANGE range;
454
NativeMethods
.PD_ALLPAGES |
455
NativeMethods
.PD_USEDEVMODECOPIESANDCOLLATE |
456
NativeMethods
.PD_DISABLEPRINTTOFILE |
457
NativeMethods
.PD_HIDEPRINTTOFILE;
462
NativeMethods
.PRINTDLGEX32 pdex = new
NativeMethods
.PRINTDLGEX32();
472
pdex.Flags |=
NativeMethods
.PD_SELECTION;
477
pdex.Flags |=
NativeMethods
.PD_NOSELECTION;
484
pdex.Flags |=
NativeMethods
.PD_CURRENTPAGE;
489
pdex.Flags |=
NativeMethods
.PD_NOCURRENTPAGE;
494
pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(
NativeMethods
.PRINTPAGERANGE)));
501
pdex.Flags |=
NativeMethods
.PD_PAGENUMS;
512
pdex.Flags |=
NativeMethods
.PD_NOPAGENUMS;
533
int cbBufferSize = Marshal.SizeOf(typeof(
NativeMethods
.PRINTDLGEX32));
539
NativeMethods
.PRINTDLGEX64 pdex = new
NativeMethods
.PRINTDLGEX64();
549
pdex.Flags |=
NativeMethods
.PD_SELECTION;
554
pdex.Flags |=
NativeMethods
.PD_NOSELECTION;
561
pdex.Flags |=
NativeMethods
.PD_CURRENTPAGE;
566
pdex.Flags |=
NativeMethods
.PD_NOCURRENTPAGE;
571
pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(
NativeMethods
.PRINTPAGERANGE)));
578
pdex.Flags |=
NativeMethods
.PD_PAGENUMS;
589
pdex.Flags |=
NativeMethods
.PD_NOPAGENUMS;
610
int cbBufferSize = Marshal.SizeOf(typeof(
NativeMethods
.PRINTDLGEX64));
657
NativeMethods
.PRINTDLGEX32 pdex = Marshal.PtrToStructure<
NativeMethods
.PRINTDLGEX32>(unmanagedBuffer);
664
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)
55
UInt32 result =
NativeMethods
.PD_RESULT_CANCEL;
128
result =
NativeMethods
.PD_RESULT_CANCEL;
System\Windows\Controls\PrintDialog.cs (3)
324
if ((dialogResult == MS.Internal.Printing.
NativeMethods
.PD_RESULT_APPLY) ||
325
(dialogResult == MS.Internal.Printing.
NativeMethods
.PD_RESULT_PRINT))
333
return (dialogResult == MS.Internal.Printing.
NativeMethods
.PD_RESULT_PRINT);