Source code of Windows XP (NT5)
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.

35 lines
1.3 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 2000
  6. //
  7. // File: exitcode.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef __CSCPIN_EXITCODE_H_
  11. #define __CSCPIN_EXITCODE_H_
  12. //
  13. // Error codes returned by the application to the cmd interpreter.
  14. //
  15. // 0 means everything completed without error.
  16. // <0 means something went wrong and application did not complete.
  17. // >0 means application completed but not all items were processed.
  18. //
  19. const int CSCPIN_EXIT_POLICY_ACTIVE = -6; // Admin-pin policy is active.
  20. const int CSCPIN_EXIT_OUT_OF_MEMORY = -5; // Insufficient memory.
  21. const int CSCPIN_EXIT_CSC_NOT_ENABLED = -4; // CSC not enabled.
  22. const int CSCPIN_EXIT_LISTFILE_NO_OPEN = -3; // Can't find or open listfile.
  23. const int CSCPIN_EXIT_FILE_NOT_FOUND = -2; // Single file not found.
  24. const int CSCPIN_EXIT_INVALID_PARAMETER = -1; // Invalid argument
  25. const int CSCPIN_EXIT_NORMAL = 0;
  26. const int CSCPIN_EXIT_APPLICATION_ABORT = 1; // App aborted by user.
  27. const int CSCPIN_EXIT_CSC_ERRORS = 2; // CSC errors occured.
  28. void SetExitCode(int iCode);
  29. int GetExitCode(void);
  30. #endif // __CSCPIN_EXITCODE_H_