/// <summary> /// Initializes a new instance of the <see cref="PrinterNotifyInfoReader"/> class. /// </summary> /// <param name="infoHandle">The handle to a <see cref="PrinterNotifyInfo" />.</param> public PrinterNotifyInfoReader(SafePrinterNotifyInfoHandle infoHandle) { _infoHandle = infoHandle; Info = Marshal.PtrToStructure <PrinterNotifyInfo>(infoHandle.DangerousGetHandle()); }
internal static extern bool FindNextPrinterChangeNotification(SafePrinterChangeNotificationHandle hChange, [Out] out uint pdwChange, ref PrinterNotifyOptions pPrinterNotifyOptions, [Out] out SafePrinterNotifyInfoHandle ppPrinterNotifyInfo);