コード例 #1
0
 /// <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());
 }
コード例 #2
0
 internal static extern bool FindNextPrinterChangeNotification(SafePrinterChangeNotificationHandle hChange, [Out] out uint pdwChange, ref PrinterNotifyOptions pPrinterNotifyOptions, [Out] out SafePrinterNotifyInfoHandle ppPrinterNotifyInfo);