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.

50 lines
1.5 KiB

  1. using System;
  2. using System.Xml;
  3. using System.Collections;
  4. using System.IO;
  5. namespace Microsoft.Fusion.ADF
  6. {
  7. public class MGPlatformWriter
  8. {
  9. public static void XmlOutput(XmlTextWriter xtw) // this is always insisde a dependency block
  10. {
  11. xtw.WriteStartElement("platform");
  12. xtw.WriteStartElement("osVersionInfo");
  13. xtw.WriteStartElement("os");
  14. xtw.WriteAttributeString("majorVersion", "5");
  15. xtw.WriteAttributeString("minorVersion", "1");
  16. xtw.WriteAttributeString("buildNumber", "2600");
  17. xtw.WriteAttributeString("servicePackMajor", "0");
  18. xtw.WriteAttributeString("servicePackMinor", "0");
  19. xtw.WriteEndElement(); // os
  20. xtw.WriteEndElement(); // osVersionInfo
  21. xtw.WriteStartElement("platformInfo");
  22. xtw.WriteAttributeString("friendlyName", "Microsoft Windows XP");
  23. xtw.WriteAttributeString("href", "http://windows.microsoft.com");
  24. xtw.WriteEndElement(); // platformInfo
  25. xtw.WriteEndElement(); // platform
  26. xtw.WriteStartElement("platform");
  27. xtw.WriteStartElement("dotNetVersionInfo");
  28. xtw.WriteStartElement("supportedRuntime");
  29. xtw.WriteAttributeString("version", "v1.0.3705");
  30. xtw.WriteEndElement(); // supportedRuntime
  31. xtw.WriteEndElement(); // dotNetVersionInfo
  32. xtw.WriteStartElement("platformInfo");
  33. xtw.WriteAttributeString("friendlyName", "Microsoft .Net Frameworks redist");
  34. xtw.WriteAttributeString("href", "http://www.microsoft.com/net");
  35. xtw.WriteEndElement(); // platformInfo
  36. xtw.WriteEndElement(); // platform
  37. }
  38. }
  39. }