15,471
社区成员
发帖
与我相关
我的任务
分享
OpenPrinter(name,handle,NULL);
hChange=FindFirstPrinterChangeNotification(handle,,,);
if(WaitForSingleObject(hChange,0U)==WAIT_OBJECT_0)
{
//监控到打印行为
}
触发时间对象就需要打印机的name handle,所以这两个变量在触发之前得确定啊。
OpenPrinter(name,handle,NULL);
hChange=FindFirstPrinterChangeNotification(handle,,,);
if(WaitForSingleObject(hChange,0U)==WAIT_OBJECT_0)
{
//监控到打印行为
}
触发时间对象就需要打印机的name handle,所以这两个变量在触发之前得确定啊。[/quote]
WaitForMultipleObjects