ReactOS  0.4.15-dev-2977-ge996662
xcv.c File Reference
#include "precomp.h"
Include dependency graph for xcv.c:

Go to the source code of this file.

Functions

DWORD _RpcXcvData (WINSPOOL_PRINTER_HANDLE hXcv, const WCHAR *pszDataName, BYTE *pInputData, DWORD cbInputData, BYTE *pOutputData, DWORD cbOutputData, DWORD *pcbOutputNeeded, DWORD *pdwStatus)
 

Function Documentation

◆ _RpcXcvData()

DWORD _RpcXcvData ( WINSPOOL_PRINTER_HANDLE  hXcv,
const WCHAR pszDataName,
BYTE pInputData,
DWORD  cbInputData,
BYTE pOutputData,
DWORD  cbOutputData,
DWORD pcbOutputNeeded,
DWORD pdwStatus 
)

Definition at line 11 of file xcv.c.

12 {
13  DWORD dwErrorCode;
14 
15  FIXME("RpcXcvData( %p, %S,,,)\n",hXcv, pszDataName);
16 
17  dwErrorCode = RpcImpersonateClient(NULL);
18  if (dwErrorCode != ERROR_SUCCESS)
19  {
20  ERR("RpcImpersonateClient failed with error %lu!\n", dwErrorCode);
21  return dwErrorCode;
22  }
23 
24  if (!XcvDataW(hXcv, pszDataName, pInputData, cbInputData, pOutputData, cbOutputData, pcbOutputNeeded, pdwStatus))
25  dwErrorCode = GetLastError();
26 
28  return dwErrorCode;
29 }
#define ERROR_SUCCESS
Definition: deptool.c:10
WINBOOL WINAPI XcvDataW(HANDLE hXcv, PCWSTR pszDataName, PBYTE pInputData, DWORD cbInputData, PBYTE pOutputData, DWORD cbOutputData, PDWORD pcbOutputNeeded, PDWORD pdwStatus)
Definition: printers.c:487
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1040
#define FIXME(fmt,...)
Definition: debug.h:111
RPC_STATUS WINAPI RpcRevertToSelf(void)
Definition: rpc_binding.c:1459
unsigned long DWORD
Definition: ntddk_ex.h:95
#define ERR(fmt,...)
Definition: debug.h:110
RPC_STATUS WINAPI RpcImpersonateClient(RPC_BINDING_HANDLE BindingHandle)
Definition: rpc_binding.c:1052
#define NULL
Definition: types.h:112
static HANDLE hXcv
Definition: localmon.c:73

Referenced by GetMonitorUI(), pointer_default(), and XcvDataW().