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.

41 lines
1001 B

  1. // RegInfFile.cpp: implementation of the CRegInfFile class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #include "RegInfFile.h"
  5. //////////////////////////////////////////////////////////////////////
  6. // Construction/Destruction
  7. //////////////////////////////////////////////////////////////////////
  8. CRegInfFile::CRegInfFile()
  9. {
  10. }
  11. CRegInfFile::~CRegInfFile()
  12. {
  13. }
  14. void CRegInfFile::WriteStoredSectionsToFile()
  15. {
  16. WriteString(TEXT("[Version]\r\n")
  17. TEXT("Signature = \"$Windows NT$\"\r\n\r\n")
  18. TEXT("[DefaultInstall]\r\n")
  19. TEXT("AddReg=AddReg1\r\n")
  20. TEXT("DelReg=DelReg1\r\n\r\n"));
  21. WriteString(TEXT("[AddReg1]\r\n"));
  22. for (int i=0; i<m_AddSection.GetNumElementsStored(); i++)
  23. {
  24. (m_AddSection.Access()[i])->WriteToInfFile(*this, true);
  25. }
  26. WriteString(TEXT("\r\n[DelReg1]\r\n"));
  27. for (i=0; i<m_DelSection.GetNumElementsStored(); i++)
  28. {
  29. (m_DelSection.Access()[i])->WriteToInfFile(*this, false);
  30. }
  31. }