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.

107 lines
1.9 KiB

  1. #include "headers.hxx"
  2. #include "constants.hpp"
  3. #include "global.hpp"
  4. #include "AnalysisResults.hpp"
  5. #include "CSVDSReader.hpp"
  6. #include <set>
  7. using namespace std;
  8. // Burnslib globals
  9. //This should be declared before any static String
  10. DWORD DEFAULT_LOGGING_OPTIONS =
  11. Log::OUTPUT_TO_FILE
  12. | Log::OUTPUT_FUNCCALLS
  13. | Log::OUTPUT_LOGS
  14. | Log::OUTPUT_ERRORS
  15. | Log::OUTPUT_HEADER;
  16. HINSTANCE hResourceModuleHandle = 0;
  17. const wchar_t* RUNTIME_NAME = L"dspecup";
  18. // Used to hold the latest error
  19. String error;
  20. // Used in WinGetVLFilePointer.
  21. LARGE_INTEGER zero={0};
  22. // Variables kept from analysis to repair
  23. bool goodAnalysis=false;
  24. AnalysisResults results;
  25. String targetDomainControllerName;
  26. String csvFileName,csv409Name;
  27. CSVDSReader csvReaderIntl;
  28. CSVDSReader csvReader409;
  29. String rootContainerDn,ldapPrefix,domainName;
  30. String completeDcName;
  31. //other variables and constants
  32. const long LOCALE409[] = {0x409,0};
  33. const long LOCALEIDS[] =
  34. {
  35. // a list of all the non-english locale IDs that we support
  36. 0x401,
  37. 0x404,
  38. 0x405,
  39. 0x406,
  40. 0x407,
  41. 0x408,
  42. 0x40b,
  43. 0x40c,
  44. 0x40d,
  45. 0x40e,
  46. 0x410,
  47. 0x411,
  48. 0x412,
  49. 0x413,
  50. 0x414,
  51. 0x415,
  52. 0x416,
  53. 0x419,
  54. 0x41d,
  55. 0x41f,
  56. 0x804,
  57. 0x816,
  58. 0xc0a,
  59. 0
  60. };
  61. void addChange
  62. (
  63. const GUID guid,
  64. const long locale,
  65. const wchar_t *object,
  66. const wchar_t *property,
  67. const wchar_t *firstArg,
  68. const wchar_t *secondArg,
  69. const enum TYPE_OF_CHANGE type
  70. )
  71. {
  72. sChange tempChange;
  73. tempChange.object=object;
  74. tempChange.property=property;
  75. tempChange.firstArg=firstArg;
  76. tempChange.secondArg=secondArg;
  77. tempChange.type=type;
  78. changes[guid][locale].push_back(tempChange);
  79. }
  80. allChanges changes;