控制Windows打印服务 [英] Control Windows Printing Service
本文介绍了控制Windows打印服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的,
钩挂打印服务时遇到问题,我是Windows钩挂的初学者.我的想法是挂接打印后台处理程序服务以控制任何打印作业.我使用C#来实现我广受好评的解决方案,我正在尝试使用SHELLHockstruct
,
Dear ,
I face a problem while hooking printing service, I am beginner in windows hooking. My idea to hook printing spooler service to control any printing job. I use C# to implement my propopsed solution, I am trying to use SHELLHockstruct
,
[DllImport("user32.dll",CharSet=CharSet.Auto,
CallingConvention=CallingConvention.StdCall)]
public static extern int SetWindowsHookEx(int idHook, HookProc lpfn,
IntPtr hInstance, int threadId);
请我帮助您解决 urgent 问题,为我提供控制打印服务的快捷方式,我可以阅读的所有材料,示例,等等.
最好的问候
Hany Mohamed
Please I need your help in solving that urgent issue, give me shortcut for control printing service, any material I can read, example, and so on.
Best Regards
Hany Mohamed
推荐答案
我认为您需要寻找基于WMI的解决方案.
看看这些文章:
http://redmondmag.com/articles/2005/04/01/notify-with- wmi.aspx [ ^ ],
监视打印机队列(.NET)中的作业 [使用WMI控制打印作业的简单方法 [ http://netcode.ru/dotnet/?lang=&katID= 30& skatID = 270& artID = 7406 [ http://en.lmgtfy.com/?q=WMI+control+printer+job [ ^ ].
—SA
I think you need to look for solution based on WMI.
Look at these articles:
http://redmondmag.com/articles/2005/04/01/notify-with-wmi.aspx[^],
Monitor jobs in a printer queue (.NET)[^],
A simple approach for controlling print jobs using WMI[^],
http://netcode.ru/dotnet/?lang=&katID=30&skatID=270&artID=7406[^].
Search for WMI control:
http://en.lmgtfy.com/?q=WMI+control+printer+job[^].
—SA
这篇关于控制Windows打印服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文