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.

76 lines
2.6 KiB

  1. /*++
  2. Copyright (c) 1998-2000 Microsoft Corporation
  3. Module Name:
  4. drstatus.h
  5. Abstract:
  6. Status Codes from ntstatus.h. These are what the server expects in
  7. response to its requests.
  8. Author:
  9. Tad Brockway 3/23/99
  10. Revision History:
  11. --*/
  12. #ifndef __DRSTATUS_H__
  13. #define __DRSTATUS_H__
  14. #define NTSTATUS long
  15. #ifdef OS_WINCE
  16. #include <wince.h>
  17. #endif
  18. #undef STATUS_SUCCESS
  19. #undef STATUS_UNSUCCESSFUL
  20. #undef STATUS_CANCELLED
  21. #undef STATUS_INSUFFICIENT_RESOURCES
  22. #undef STATUS_BUFFER_TOO_SMALL
  23. #undef STATUS_INVALID_PARAMETER
  24. #undef STATUS_INVALID_PARAMETER
  25. #undef STATUS_TIMEOUT
  26. #undef STATUS_OPEN_FAILED
  27. #undef STATUS_NO_MEMORY
  28. #define STATUS_SUCCESS ((NTSTATUS)0x00000000L)
  29. #define STATUS_NO_MORE_FILES ((NTSTATUS)0x80000006L)
  30. #define STATUS_UNSUCCESSFUL ((NTSTATUS)0xC0000001L)
  31. #define STATUS_CANCELLED ((NTSTATUS)0xC0000120L)
  32. #define STATUS_INSUFFICIENT_RESOURCES ((NTSTATUS)0xC000009AL)
  33. #define STATUS_BUFFER_TOO_SMALL ((NTSTATUS)0xC0000023L)
  34. #define STATUS_INVALID_PARAMETER ((NTSTATUS)0xC000000DL)
  35. #define STATUS_TIMEOUT ((NTSTATUS)0x00000102L)
  36. #define STATUS_NO_MEMORY ((NTSTATUS)0xC0000017L)
  37. #define STATUS_UNEXPECTED_IO_ERROR ((NTSTATUS)0xC00000E9L)
  38. #define STATUS_OPEN_FAILED ((NTSTATUS)0xC0000136L)
  39. #define STATUS_NOT_A_DIRECTORY ((NTSTATUS)0xC0000103L)
  40. #define STATUS_NO_SUCH_FILE ((NTSTATUS)0xC000000FL)
  41. #define STATUS_OBJECT_NAME_EXISTS ((NTSTATUS)0x40000000L)
  42. #define STATUS_INVALID_DEVICE_REQUEST ((NTSTATUS)0xC0000010L)
  43. #define STATUS_OBJECT_NAME_COLLISION ((NTSTATUS)0xC0000035L)
  44. #define STATUS_NOT_SUPPORTED ((NTSTATUS)0xC00000BBL)
  45. #define STATUS_ACCESS_DENIED ((NTSTATUS)0xC0000022L)
  46. #define STATUS_INVALID_PARAMETER ((NTSTATUS)0xC000000DL)
  47. #define STATUS_OBJECT_PATH_NOT_FOUND ((NTSTATUS)0xC000003AL)
  48. #define STATUS_SHARING_VIOLATION ((NTSTATUS)0xC0000043L)
  49. #define STATUS_DISK_FULL ((NTSTATUS)0xC000007FL)
  50. #define STATUS_FILE_IS_A_DIRECTORY ((NTSTATUS)0xC00000BAL)
  51. #if ((!defined(OS_WINCE)) || (defined(WINCE_SDKBUILD)))
  52. #define STATUS_MEDIA_WRITE_PROTECTED ((NTSTATUS)0xc00000a2L)
  53. #define STATUS_PRIVILEGE_NOT_HELD ((NTSTATUS)0xc0000061L)
  54. #define STATUS_DEVICE_NOT_READY ((NTSTATUS)0xc00000a3L)
  55. #define STATUS_UNRECOGNIZED_MEDIA ((NTSTATUS)0xc0000014L)
  56. #endif
  57. #define STATUS_UNRECOGNIZED_VOLUME ((NTSTATUS)0xC000014FL)
  58. #endif