[DllImport("winspool.drv", SetLastError=true)]
static extern int ClosePrinter(IntPtr hPrinter);
<DllImport("winspool.drv", EntryPoint:="ClosePrinter", _
SetLastError:=True, _
ExactSpelling:=True, _
CallingConvention:=CallingConvention.StdCall)> _
Private Shared Function ClosePrinter(ByVal hPrinter As Int32) As Boolean
End Function
None.
As always, only do SetLastError=true if you actually intend to call GetLastError.
Please add some!
Please add some!
Do you know one? Please contribute it!