befab8dbce96047fcf6f480bf6cdd7da2c265a7b
2 * PROJECT: ReactOS Print Spooler Service
3 * LICENSE: GNU GPLv2 or any later version as published by the Free Software Foundation
4 * PURPOSE: Functions related to Ports
5 * COPYRIGHT: Copyright 2015 Colin Finck <colin@reactos.org>
11 _RpcEnumPorts(WINSPOOL_HANDLE pName
, DWORD Level
, BYTE
* pPort
, DWORD cbBuf
, DWORD
* pcbNeeded
, DWORD
* pcReturned
)
15 dwErrorCode
= RpcImpersonateClient(NULL
);
16 if (dwErrorCode
!= ERROR_SUCCESS
)
18 ERR("RpcImpersonateClient failed with error %lu!\n", dwErrorCode
);
22 EnumPortsW(pName
, Level
, pPort
, cbBuf
, pcbNeeded
, pcReturned
);
23 dwErrorCode
= GetLastError();