Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.9 KiB

  1. /*********************************************************/
  2. /** Microsoft LAN Manager **/
  3. /** Copyright (c) Microsoft Corporation. All rights reserved.
  4. /** **/
  5. /** Rpc Error Codes from the compiler and runtime **/
  6. /** **/
  7. /*********************************************************/
  8. /*
  9. If you change this file, you must also change rpcerr.h.
  10. */
  11. #ifndef __RPCNTERR_H__
  12. #define __RPCNTERR_H__
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif
  16. #define RPC_S_OK ERROR_SUCCESS
  17. #define RPC_S_INVALID_ARG ERROR_INVALID_PARAMETER
  18. #define RPC_S_OUT_OF_MEMORY ERROR_OUTOFMEMORY
  19. #define RPC_S_OUT_OF_THREADS ERROR_MAX_THRDS_REACHED
  20. #define RPC_S_INVALID_LEVEL ERROR_INVALID_PARAMETER
  21. #define RPC_S_BUFFER_TOO_SMALL ERROR_INSUFFICIENT_BUFFER
  22. #define RPC_S_INVALID_SECURITY_DESC ERROR_INVALID_SECURITY_DESCR
  23. #define RPC_S_ACCESS_DENIED ERROR_ACCESS_DENIED
  24. #define RPC_S_SERVER_OUT_OF_MEMORY ERROR_NOT_ENOUGH_SERVER_MEMORY
  25. #define RPC_S_ASYNC_CALL_PENDING ERROR_IO_PENDING
  26. #define RPC_S_UNKNOWN_PRINCIPAL ERROR_NONE_MAPPED
  27. #define RPC_S_TIMEOUT ERROR_TIMEOUT
  28. #define RPC_X_NO_MEMORY RPC_S_OUT_OF_MEMORY
  29. #define RPC_X_INVALID_BOUND RPC_S_INVALID_BOUND
  30. #define RPC_X_INVALID_TAG RPC_S_INVALID_TAG
  31. #define RPC_X_ENUM_VALUE_TOO_LARGE RPC_X_ENUM_VALUE_OUT_OF_RANGE
  32. #define RPC_X_SS_CONTEXT_MISMATCH ERROR_INVALID_HANDLE
  33. #define RPC_X_INVALID_BUFFER ERROR_INVALID_USER_BUFFER
  34. #define RPC_X_PIPE_APP_MEMORY ERROR_OUTOFMEMORY
  35. #define RPC_X_INVALID_PIPE_OPERATION RPC_X_WRONG_PIPE_ORDER
  36. #endif /* __RPCNTERR_H__ */