DocumentProperties (winspool)
Last changed: Anisan-179.178.48.53

.
Summary
Brings up a printer properties page

C# Signature:

[DllImport("winspool.Drv", EntryPoint = "DocumentPropertiesW", SetLastError = true,
         ExactSpelling = true, CallingConvention = CallingConvention.StdCall)]
static extern int DocumentProperties(IntPtr hwnd, IntPtr hPrinter,
        [MarshalAs(UnmanagedType.LPWStr)] string pDeviceName,
        IntPtr pDevModeOutput, ref IntPtr pDevModeInput, int fMode);

VB Signature:

Declare Function DocumentProperties Lib "winspool.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

Doesn't work on a x64 system. (i.e. this declaration is wrong for x64, I'm just not quite sure why.)

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation