62 references to NativeMethods
PresentationFramework (62)
MS\Internal\Printing\PrintDlgExMarshaler.cs (57)
90
return
NativeMethods
.PD_RESULT_CANCEL;
95
if ((dialogResult ==
NativeMethods
.PD_RESULT_PRINT) ||
96
(dialogResult ==
NativeMethods
.PD_RESULT_APPLY))
113
if ((flags &
NativeMethods
.PD_PAGENUMS) ==
NativeMethods
.PD_PAGENUMS)
125
else if ((flags &
NativeMethods
.PD_SELECTION) ==
NativeMethods
.PD_SELECTION)
129
else if ((flags &
NativeMethods
.PD_CURRENTPAGE) ==
NativeMethods
.PD_CURRENTPAGE)
236
NativeMethods
.PRINTDLGEX32 pdex = Marshal.PtrToStructure<
NativeMethods
.PRINTDLGEX32>(unmanagedBuffer);
244
NativeMethods
.PRINTDLGEX64 pdex = Marshal.PtrToStructure<
NativeMethods
.PRINTDLGEX64>(unmanagedBuffer);
255
if (((flags &
NativeMethods
.PD_PAGENUMS) ==
NativeMethods
.PD_PAGENUMS) &&
258
NativeMethods
.PRINTPAGERANGE pageRangeStruct = Marshal.PtrToStructure<
NativeMethods
.PRINTPAGERANGE>(pageRangePtr);
277
NativeMethods
.DEVNAMES devNames = Marshal.PtrToStructure<
NativeMethods
.DEVNAMES>(pDevNames);
373
NativeMethods
.DEVMODE devMode = Marshal.PtrToStructure<
NativeMethods
.DEVMODE>(pDevMode);
419
NativeMethods
.PRINTDLGEX32 pdex = Marshal.PtrToStructure<
NativeMethods
.PRINTDLGEX32>(unmanagedBuffer);
424
NativeMethods
.PRINTDLGEX64 pdex = Marshal.PtrToStructure<
NativeMethods
.PRINTDLGEX64>(unmanagedBuffer);
447
NativeMethods
.PRINTPAGERANGE range;
452
NativeMethods
.PD_ALLPAGES |
453
NativeMethods
.PD_USEDEVMODECOPIESANDCOLLATE |
454
NativeMethods
.PD_DISABLEPRINTTOFILE |
455
NativeMethods
.PD_HIDEPRINTTOFILE;
460
NativeMethods
.PRINTDLGEX32 pdex = new
NativeMethods
.PRINTDLGEX32();
470
pdex.Flags |=
NativeMethods
.PD_SELECTION;
475
pdex.Flags |=
NativeMethods
.PD_NOSELECTION;
482
pdex.Flags |=
NativeMethods
.PD_CURRENTPAGE;
487
pdex.Flags |=
NativeMethods
.PD_NOCURRENTPAGE;
492
pdex.lpPageRanges = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(
NativeMethods
.PRINTPAGERANGE)));
499
pdex.Flags |=
NativeMethods
.PD_PAGENUMS;
510
pdex.Flags |=
NativeMethods
.PD_NOPAGENUMS;
531
int cbBufferSize = Marshal.SizeOf(typeof(
NativeMethods
.PRINTDLGEX32));
537
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)
53
UInt32 result =
NativeMethods
.PD_RESULT_CANCEL;
126
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);