2015-05-11 14:14:50 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: ReactOS Print Spooler Service
|
2017-09-29 17:18:19 +00:00
|
|
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
2015-05-11 14:14:50 +00:00
|
|
|
* PURPOSE: Unimplemented RPC calls
|
2017-09-29 17:18:19 +00:00
|
|
|
* COPYRIGHT: Copyright 2015 Colin Finck (colin@reactos.org)
|
2015-05-11 14:14:50 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "precomp.h"
|
|
|
|
|
|
|
|
DWORD
|
2015-07-17 10:57:10 +00:00
|
|
|
_RpcCreatePrinterIC(WINSPOOL_PRINTER_HANDLE hPrinter, WINSPOOL_GDI_HANDLE* pHandle, WINSPOOL_DEVMODE_CONTAINER* pDevModeContainer)
|
2015-05-11 14:14:50 +00:00
|
|
|
{
|
|
|
|
UNIMPLEMENTED;
|
|
|
|
return ERROR_INVALID_FUNCTION;
|
|
|
|
}
|
|
|
|
|
|
|
|
DWORD
|
2015-07-17 10:57:10 +00:00
|
|
|
_RpcPlayGdiScriptOnPrinterIC(WINSPOOL_GDI_HANDLE hPrinterIC, BYTE* pIn, DWORD cIn, BYTE* pOut, DWORD cOut, DWORD ul)
|
2015-05-11 14:14:50 +00:00
|
|
|
{
|
|
|
|
UNIMPLEMENTED;
|
|
|
|
return ERROR_INVALID_FUNCTION;
|
|
|
|
}
|
|
|
|
|
|
|
|
DWORD
|
2015-07-17 10:57:10 +00:00
|
|
|
_RpcDeletePrinterIC(WINSPOOL_GDI_HANDLE* phPrinterIC)
|
2015-05-11 14:14:50 +00:00
|
|
|
{
|
|
|
|
UNIMPLEMENTED;
|
|
|
|
return ERROR_INVALID_FUNCTION;
|
|
|
|
}
|
|
|
|
|
|
|
|
DWORD
|
|
|
|
_RpcAddPrinterConnection(WINSPOOL_HANDLE pName)
|
|
|
|
{
|
|
|
|
UNIMPLEMENTED;
|
|
|
|
return ERROR_INVALID_FUNCTION;
|
|
|
|
}
|
|
|
|
|
|
|
|
DWORD
|
|
|
|
_RpcDeletePrinterConnection(WINSPOOL_HANDLE pName)
|
|
|
|
{
|
|
|
|
UNIMPLEMENTED;
|
|
|
|
return ERROR_INVALID_FUNCTION;
|
|
|
|
}
|
|
|
|
|
2020-08-26 22:12:20 +00:00
|
|
|
//
|
|
|
|
// Forward Dead API....
|
|
|
|
//
|
2015-05-11 14:14:50 +00:00
|
|
|
DWORD
|
2015-07-17 10:57:10 +00:00
|
|
|
_RpcPrinterMessageBox(WINSPOOL_PRINTER_HANDLE hPrinter, DWORD Error, ULONG_PTR hWnd, WCHAR* pText, WCHAR* pCaption, DWORD dwType)
|
2015-05-11 14:14:50 +00:00
|
|
|
{
|
2020-08-26 22:12:20 +00:00
|
|
|
DWORD dwErrorCode;
|
|
|
|
|
|
|
|
dwErrorCode = RpcImpersonateClient(NULL);
|
|
|
|
if (dwErrorCode != ERROR_SUCCESS)
|
|
|
|
{
|
|
|
|
ERR("RpcImpersonateClient failed with error %lu!\n", dwErrorCode);
|
|
|
|
return dwErrorCode;
|
|
|
|
}
|
|
|
|
|
|
|
|
PrinterMessageBoxW(hPrinter, Error, (HWND)hWnd, pText, pCaption, dwType);
|
|
|
|
dwErrorCode = GetLastError();
|
|
|
|
|
|
|
|
RpcRevertToSelf();
|
|
|
|
return dwErrorCode;
|
2015-05-11 14:14:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DWORD
|
2017-10-28 13:43:14 +00:00
|
|
|
_RpcSetAllocFailCount(VOID)
|
2015-05-11 14:14:50 +00:00
|
|
|
{
|
|
|
|
UNIMPLEMENTED;
|
|
|
|
return ERROR_INVALID_FUNCTION;
|
|
|
|
}
|
|
|
|
|
|
|
|
DWORD
|
2017-10-28 13:43:14 +00:00
|
|
|
_RpcClusterSplOpen(VOID)
|
2015-05-11 14:14:50 +00:00
|
|
|
{
|
|
|
|
UNIMPLEMENTED;
|
|
|
|
return ERROR_INVALID_FUNCTION;
|
|
|
|
}
|
|
|
|
|
|
|
|
DWORD
|
2017-10-28 13:43:14 +00:00
|
|
|
_RpcClusterSplClose(VOID)
|
2015-05-11 14:14:50 +00:00
|
|
|
{
|
|
|
|
UNIMPLEMENTED;
|
|
|
|
return ERROR_INVALID_FUNCTION;
|
|
|
|
}
|
|
|
|
|
|
|
|
DWORD
|
2017-10-28 13:43:14 +00:00
|
|
|
_RpcClusterSplIsAlive(VOID)
|
2015-05-11 14:14:50 +00:00
|
|
|
{
|
|
|
|
UNIMPLEMENTED;
|
|
|
|
return ERROR_INVALID_FUNCTION;
|
|
|
|
}
|
|
|
|
|
|
|
|
DWORD
|
2015-07-17 10:57:10 +00:00
|
|
|
_RpcAddPerMachineConnection(WINSPOOL_HANDLE pServer, const WCHAR* pPrinterName, const WCHAR* pPrintServer, const WCHAR* pProvider)
|
2015-05-11 14:14:50 +00:00
|
|
|
{
|
|
|
|
UNIMPLEMENTED;
|
|
|
|
return ERROR_INVALID_FUNCTION;
|
|
|
|
}
|
|
|
|
|
|
|
|
DWORD
|
2015-07-17 10:57:10 +00:00
|
|
|
_RpcDeletePerMachineConnection(WINSPOOL_HANDLE pServer, const WCHAR* pPrinterName)
|
2015-05-11 14:14:50 +00:00
|
|
|
{
|
|
|
|
UNIMPLEMENTED;
|
|
|
|
return ERROR_INVALID_FUNCTION;
|
|
|
|
}
|
|
|
|
|
|
|
|
DWORD
|
2015-07-17 10:57:10 +00:00
|
|
|
_RpcEnumPerMachineConnections(WINSPOOL_HANDLE pServer, BYTE* pPrinterEnum, DWORD cbBuf, DWORD* pcbNeeded, DWORD* pcReturned)
|
2015-05-11 14:14:50 +00:00
|
|
|
{
|
|
|
|
UNIMPLEMENTED;
|
|
|
|
return ERROR_INVALID_FUNCTION;
|
|
|
|
}
|
|
|
|
|
|
|
|
DWORD
|
2017-10-28 13:43:14 +00:00
|
|
|
_RpcSplOpenPrinter(VOID)
|
2015-05-11 14:14:50 +00:00
|
|
|
{
|
|
|
|
UNIMPLEMENTED;
|
|
|
|
return ERROR_INVALID_FUNCTION;
|
|
|
|
}
|
|
|
|
|
|
|
|
DWORD
|
2015-07-17 10:57:10 +00:00
|
|
|
_RpcSendRecvBidiData(WINSPOOL_PRINTER_HANDLE hPrinter, const WCHAR* pAction, WINSPOOL_BIDI_REQUEST_CONTAINER* pReqData, WINSPOOL_BIDI_RESPONSE_CONTAINER** ppRespData)
|
2015-05-11 14:14:50 +00:00
|
|
|
{
|
|
|
|
UNIMPLEMENTED;
|
|
|
|
return ERROR_INVALID_FUNCTION;
|
|
|
|
}
|
|
|
|
|
|
|
|
DWORD
|
2017-10-28 13:43:14 +00:00
|
|
|
_RpcAddDriverCatalog(VOID)
|
2015-05-11 14:14:50 +00:00
|
|
|
{
|
|
|
|
UNIMPLEMENTED;
|
|
|
|
return ERROR_INVALID_FUNCTION;
|
|
|
|
}
|