rpcnterr.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright (C) 2001 Peter Hunnisett
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2.1 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. */
  18. #ifndef __RPCNTERR_H__
  19. #define __RPCNTERR_H__
  20. #define RPC_S_OK ERROR_SUCCESS
  21. #define RPC_S_INVALID_ARG ERROR_INVALID_PARAMETER
  22. #define RPC_S_OUT_OF_MEMORY ERROR_OUTOFMEMORY
  23. #define RPC_S_OUT_OF_THREADS ERROR_MAX_THRDS_REACHED
  24. #define RPC_S_INVALID_LEVEL ERROR_INVALID_PARAMETER
  25. #define RPC_S_BUFFER_TOO_SMALL ERROR_INSUFFICIENT_BUFFER
  26. #define RPC_S_INVALID_SECURITY_DESC ERROR_INVALID_SECURITY_DESCR
  27. #define RPC_S_ACCESS_DENIED ERROR_ACCESS_DENIED
  28. #define RPC_S_SERVER_OUT_OF_MEMORY ERROR_NOT_ENOUGH_SERVER_MEMORY
  29. #define RPC_S_ASYNC_CALL_PENDING ERROR_IO_PENDING
  30. #define RPC_S_UNKNOWN_PRINCIPAL ERROR_NONE_MAPPED
  31. #define RPC_S_TIMEOUT ERROR_TIMEOUT
  32. #define RPC_X_NO_MEMORY RPC_S_OUT_OF_MEMORY
  33. #define RPC_X_INVALID_BOUND RPC_S_INVALID_BOUND
  34. #define RPC_X_INVALID_TAG RPC_S_INVALID_TAG
  35. #define RPC_X_ENUM_VALUE_TOO_LARGE RPC_X_ENUM_VALUE_OUT_OF_RANGE
  36. #define RPC_X_SS_CONTEXT_MISMATCH ERROR_INVALID_HANDLE
  37. #define RPC_X_INVALID_BUFFER ERROR_INVALID_USER_BUFFER
  38. #define RPC_X_PIPE_APP_MEMORY ERROR_OUTOFMEMORY
  39. #define RPC_X_INVALID_PIPE_OPERATION RPC_X_WRONG_PIPE_ORDER
  40. #endif /* __RPCNTERR_H__ */