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.

53 lines
1.7 KiB

  1. #ifndef _MDENTRY_H_
  2. #define _MDENTRY_H_
  3. class CDWord : public CObject
  4. {
  5. protected:
  6. DWORD m_dwData;
  7. public:
  8. CDWord(DWORD dwData) { m_dwData = dwData; }
  9. ~CDWord() {};
  10. operator DWORD () { return m_dwData; }
  11. };
  12. // fMigrate, fKeepOldReg, hRegRootKey, szRegSubKey, szRegValueName,
  13. // szMDPath, dwMDId, dwMDAttr, dwMDuType, dwMDdType, dwMDDataLen, szMDData
  14. typedef struct _MDEntry {
  15. LPTSTR szMDPath;
  16. DWORD dwMDIdentifier;
  17. DWORD dwMDAttributes;
  18. DWORD dwMDUserType;
  19. DWORD dwMDDataType;
  20. DWORD dwMDDataLen;
  21. LPBYTE pbMDData;
  22. } MDEntry;
  23. DWORD atodw(LPCTSTR lpszData);
  24. BOOL SplitLine(LPTSTR szLine);
  25. // if the regkey part of szLine contains a * then this can enumerate across the keys.
  26. // to enumerate dwIndex should be set to 0 on the first call. pszKey gets the name where
  27. // the * is in the regkey name. if pszKey == \0 then enumeration is done. dwIndex should
  28. // be incremented on each call
  29. BOOL SetupMDEntry(LPTSTR szLine, BOOL fUpgrade);
  30. void SetMDEntry(MDEntry *pMDEntry, LPTSTR pszKey, BOOL fSetOnlyIfNotPresent=FALSE);
  31. void MigrateNNTPToMD(HINF hInf, LPCTSTR szSection, BOOL fUpgrade);
  32. void MigrateIMSToMD(
  33. HINF hInf,
  34. LPCTSTR szServerName,
  35. LPCTSTR szSection,
  36. DWORD dwRoutingSourcesMDID,
  37. BOOL fUpgrade,
  38. BOOL k2UpgradeToEE = FALSE
  39. );
  40. void MigrateInfSectionToMD(HINF hInf, LPCTSTR szSection, BOOL fUpgrade);
  41. void AddVRootsToMD(LPCTSTR szSvcName, BOOL fUpgrade);
  42. void CreateMDVRootTree(CString csKeyPath, CString csName, CString csValue);
  43. void SplitVRString(CString csValue, LPTSTR szPath, LPTSTR szUserName, DWORD *pdwPerm);
  44. BOOL MigrateRoutingSourcesToMD(LPCTSTR szSvcName, DWORD dwMDID);
  45. #endif // _MDENTRY_H_