Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

96 wiersze
3.0 KiB

  1. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  2. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  3. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  4. // PARTICULAR PURPOSE.
  5. //
  6. // Copyright (c) Microsoft Corporation. All rights reserved
  7. using System;
  8. using System.Runtime.InteropServices;
  9. namespace Security2
  10. {
  11. static internal class Win32Error
  12. {
  13. // Note - the error codes here should all match the definitions in winerror.h.
  14. /// <summary>
  15. /// Equal to ERROR_SUCCESS (The operation completed successfully).
  16. /// </summary>
  17. public const int NO_ERROR = 0;
  18. /// <summary>
  19. /// Error code indicating: The operation completed successfully.
  20. /// </summary>
  21. public const int ERROR_SUCCESS = 0;
  22. /// <summary>
  23. /// The system cannot find the file specified.
  24. /// </summary>
  25. public const int ERROR_FILE_NOT_FOUND = 2;
  26. /// <summary>
  27. /// Error code indicating: Access is denied.
  28. /// </summary>
  29. public const int ERROR_ACCESS_DENIED = 5;
  30. /// <summary>
  31. /// Error code indicating: Not enough storage is available to process this command
  32. /// </summary>
  33. public const int ERROR_NOT_ENOUGH_MEMORY = 8;
  34. /// <summary>
  35. /// The data area passed to a system call is too small.
  36. /// </summary>
  37. public const int ERROR_INSUFFICIENT_BUFFER = 122;
  38. /// <summary>
  39. /// The filename or extension is too long.
  40. /// </summary>
  41. public const int ERROR_FILENAME_EXCED_RANGE = 206;
  42. /// <summary>
  43. /// More data is available.
  44. /// </summary>
  45. public const int ERROR_MORE_DATA = 234;
  46. /// <summary>
  47. /// An attempt was made to reference a token that does not exist.
  48. /// </summary>
  49. public const int ERROR_NO_TOKEN = 1008;
  50. /// <summary>
  51. /// The specified device name is invalid.
  52. /// </summary>
  53. public const int ERROR_BAD_DEVICE = 1200;
  54. /// <summary>
  55. /// Not all privileges or groups referenced are assigned to the caller.
  56. /// </summary>
  57. public const int ERROR_NOT_ALL_ASSIGNED = 1300;
  58. /// <summary>
  59. /// A specified privilege does not exist.
  60. /// </summary>
  61. public const int ERROR_NO_SUCH_PRIVILEGE = 1313;
  62. /// <summary>
  63. /// Cannot open an anonymous level security token.
  64. /// </summary>
  65. public const int ERROR_CANT_OPEN_ANONYMOUS = 1347;
  66. /// <summary>
  67. /// The RPC server is unavailable.
  68. /// </summary>
  69. public const int RPC_S_SERVER_UNAVAILABLE = 1722;
  70. /// <summary>
  71. /// There are no more endpoints available from the endpoint mapper.
  72. /// </summary>
  73. public const int EPT_S_NOT_REGISTERED = 1753;
  74. /// <summary>
  75. /// This network connection does not exist.
  76. /// </summary>
  77. public const int ERROR_NOT_CONNECTED = 2250;
  78. }
  79. }