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