挂钩XPS打印输出功能以收集信息 [英] Hooking XPS print output function to collect information
问题描述
关于XPS打印输出的问题。
我想知道"输出"的内容。和"打印完成时间"。挂钩API函数并打印输出时。
如果您要挂钩该API,请告知是否可以实现该功能以及是否有其他方式。
HRESULT WINAPI StartXpsPrintJob(
_In_ const LPCWSTR printerName,
_In_ const LPCWSTR jobName,
_In_ const LPCWSTR outputFileName,
_In_ HANDLE progressEvent,
_In_ HANDLE completionEvent,
_In_ UINT8 * printablePagesOn,
_In_ UINT32 printablePagesOnCount,
_Out_ IXpsPrintJob ** xpsPrintJob,
_Out_ IXpsPrintJobStream * * documentStream,
_Out_ IXpsPrintJobStream ** printTicketStream
);
Msdn:https:// msdn.microsoft.com/en-us/library/windows/desktop/dd374437(v=vs.85).aspx
HRESULT CreateDocumentPackageTargetForPrintJob(
[in] LPCWSTR printerName,
[in] LPCWSTR jobName,
[in] IStream * jobOutputStream,
[in] IStream * jobPrintTicketStream,
[out] IPrintDocumentPackageTarget ** docPackageTarget
);
$
Msdn:https://msdn.microsoft.com/en-us/library /windows/desktop/hh448395(v=vs.85).aspx
Question about XPS print output.
I want to know the contents of "output" and "print completion time" when hooking API functions and printing out.
If you are hooking that API, please advise if it is possible to implement the feature and if there is any other way.
HRESULT WINAPI StartXpsPrintJob (
_In_ const LPCWSTR printerName,
_In_ const LPCWSTR jobName,
_In_ const LPCWSTR outputFileName,
_In_ HANDLE progressEvent,
_In_ HANDLE completionEvent,
_In_ UINT8 * printablePagesOn,
_In_ UINT32 printablePagesOnCount,
_Out_ IXpsPrintJob ** xpsPrintJob,
_Out_ IXpsPrintJobStream ** documentStream,
_Out_ IXpsPrintJobStream ** printTicketStream
);
Msdn: https://msdn.microsoft.com/en-us/library/windows/desktop/dd374437(v=vs.85).aspx
HRESULT CreateDocumentPackageTargetForPrintJob (
[in] LPCWSTR printerName,
[in] LPCWSTR jobName,
[in] IStream * jobOutputStream,
[in] IStream * jobPrintTicketStream,
[out] IPrintDocumentPackageTarget ** docPackageTarget
);
Msdn: https://msdn.microsoft.com/en-us/library/windows/desktop/hh448395(v=vs.85).aspx
推荐答案
您好pkrlove,
Hi pkrlove,
根据根据您的描述,您的问题与桌面有关。这个论坛正在讨论并询问有关Windows窗体和ClickOnce的问题,我将把这个帖子移到相应的论坛: 一般
Windows桌面开发问题论坛以获取专门信息。
According to your description, your issue is more related about Desktop. And this forum is discussing and asking questions about the Windows Form and ClickOnce, I will move this thread to corresponding forum: General Windows Desktop Development Issues Forum for dedicated information.
感谢您的理解。
问候,
Stanly
这篇关于挂钩XPS打印输出功能以收集信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!