Delphi WinAPI FindFirstPrinterChangeNotification 和FindNextPrinterChangeNotification

Delphi WinAPI FindFirstPrinterChangeNotificationFindNextPrinterChangeNotification

一般这两个函数一起使用

函数原型:

HANDLE FindFirstPrinterChangeNotification(
  _In_     HANDLE hPrinter,
           DWORD  fdwFilter,
           DWORD  fdwOptions,
  _In_opt_ LPVOID pPrinterNotifyOptions
);

返回值:返回句柄(Delphi Cardinal值)

BOOL FindNextPrinterChangeNotification(
  _In_      HANDLE hChange,
  _Out_opt_ PDWORD pdwChange,
  _In_opt_  LPVOID pPrinterNotifyOptions,
  _Out_opt_ LPVOID *ppPrinterNotifyInfo
);

返回值:返回布尔值Bool

有时间再补充

创建时间:2020.05.04  更新时间:

原文地址:https://www.cnblogs.com/guorongtao/p/12827269.html