Author: cfinck
Date: Tue Jul 21 13:19:14 2015
New Revision: 68511
URL:
http://svn.reactos.org/svn/reactos?rev=68511&view=rev
Log:
[WINPRINT]
Add traces
Modified:
branches/colins-printing-for-freedom/reactos/win32ss/printing/processors/winprint/main.c
Modified:
branches/colins-printing-for-freedom/reactos/win32ss/printing/processors/winprint/main.c
URL:
http://svn.reactos.org/svn/reactos/branches/colins-printing-for-freedom/rea…
==============================================================================
---
branches/colins-printing-for-freedom/reactos/win32ss/printing/processors/winprint/main.c [iso-8859-1]
(original)
+++
branches/colins-printing-for-freedom/reactos/win32ss/printing/processors/winprint/main.c [iso-8859-1]
Tue Jul 21 13:19:14 2015
@@ -32,6 +32,8 @@
DWORD dwErrorCode;
PWINPRINT_HANDLE pHandle;
+ TRACE("ClosePrintProcessor(%p)\n", hPrintProcessor);
+
// Sanity checks
if (!hPrintProcessor)
{
@@ -66,6 +68,8 @@
BOOL WINAPI
ControlPrintProcessor(HANDLE hPrintProcessor, DWORD Command)
{
+ TRACE("ControlPrintProcessor(%p, %lu)\n", hPrintProcessor, Command);
+
UNIMPLEMENTED;
return FALSE;
}
@@ -104,7 +108,7 @@
* A more specific error code can be obtained through GetLastError.
*/
BOOL WINAPI
-EnumPrintProcessorDatatypesW(LPWSTR pName, LPWSTR pPrintProcessorName, DWORD Level,
LPBYTE pDatatypes, DWORD cbBuf, LPDWORD pcbNeeded, LPDWORD pcReturned)
+EnumPrintProcessorDatatypesW(PWSTR pName, PWSTR pPrintProcessorName, DWORD Level, PBYTE
pDatatypes, DWORD cbBuf, PDWORD pcbNeeded, PDWORD pcReturned)
{
DWORD cbDatatype;
DWORD dwDatatypeCount = 0;
@@ -113,6 +117,8 @@
PCWSTR* pCurrentDatatype;
PDWORD pCurrentOffset = dwOffsets;
+ TRACE("EnumPrintProcessorDatatypesW(%S, %S, %lu, %p, %lu, %p, %p)\n",
pName, pPrintProcessorName, Level, pDatatypes, cbBuf, pcbNeeded, pcReturned);
+
// Sanity checks
if (Level != 1 || !pcbNeeded || !pcReturned)
{
@@ -166,6 +172,8 @@
DWORD WINAPI
GetPrintProcessorCapabilities(PWSTR pValueName, DWORD dwAttributes, PBYTE pData, DWORD
nSize, PDWORD pcbNeeded)
{
+ TRACE("GetPrintProcessorCapabilities(%S, %lu, %p, %lu, %p)\n", pValueName,
dwAttributes, pData, nSize, pcbNeeded);
+
UNIMPLEMENTED;
return 0;
}
@@ -191,6 +199,8 @@
DWORD dwErrorCode;
HANDLE hReturnValue = NULL;
PWINPRINT_HANDLE pHandle = NULL;
+
+ TRACE("OpenPrintProcessor(%S, %p)\n", pPrinterName,
pPrintProcessorOpenData);
// Sanity checks
// This time a datatype needs to be given. We can't fall back to a default here.
@@ -255,6 +265,8 @@
DWORD dwErrorCode;
PWINPRINT_HANDLE pHandle;
+ TRACE("PrintDocumentOnPrintProcessor(%p, %S)\n", hPrintProcessor,
pDocumentName);
+
// Sanity checks
if (!hPrintProcessor)
{