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.

54 lines
2.2 KiB

  1. <%
  2. /************************************************************************************
  3. * These are server global constants used throughout the site.
  4. * Since Javascript does not have an intrinsic constant data type
  5. * they are just declared with all caps.
  6. ************************************************************************************/
  7. var L_ERR_DB_CONNECTIONFAILED_TEXT = "Windows Online Crash Analysis was unable to connect to the database. Please try this task again.";
  8. //global State Variables
  9. var STATE_SOLVED = 0; //solved crsh
  10. var STATE_GENERIC = 1; //generic (or general) solution
  11. var STATE_UNDEFINED = 2; //undefined state, or bad state
  12. var STATE_SOLVED_ADDEDCOMMENT = 3; //Solved and customer filled out comment
  13. var STATE_GENERIC_ADDEDREPRO = 4; //generic state and customer filled out repro
  14. var STATE_UNABLE_TO_TRACK =5; //failure to track this crash
  15. var STATE_DISPLAYED_NO_TRACK =6; //if you failed to track, then after we have display the err, set state to this
  16. var STATE_COUNT = 7; //total number above.
  17. var SOLUTIONID_HIGH_RANGE = 1000; //assuming a max of 1000 solutions at this point
  18. var ERR_BAD_SOLUTIONID = -2; //Bad solution ID has been passed in
  19. var ERR_BAD_STOPCODE = -3; //Bad StopCode value has been passed in
  20. var ERR_UNDEFINED_STATE = -4; //Undefined state . . .
  21. var ERR_BAD_GUID = -5; //We got ourselves a bad guid
  22. var ERR_CRASHDB_NO_GUID = "-6"; //The GUID does not exist in the crashdb
  23. var ERR_DUPLICATE_GUID = "-7"; //The guid already exists in the customer incident table
  24. var L_RESEARCHINGSOLUTIONID_TEXT = "74"; //this is the default solution for reasearching
  25. var L_UNABLETOTRACKSOLUTIONID_TEXT = "75"; //this is the default unable to track solution ID
  26. /************************************************************************************
  27. * These are server specific global variables
  28. ************************************************************************************/
  29. //these are used for the fnHex function, when converting to a hex digit
  30. var HexChars = { "10" : "a",
  31. "11" : "b",
  32. "12" : "c",
  33. "13" : "d",
  34. "14" : "e",
  35. "15" : "f"
  36. };
  37. %>