Source code of Windows XP (NT5)
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.

74 lines
2.5 KiB

  1. class CCheckInheritList;
  2. BOOL OpenAndCreate( CWrapMetaBase* pmb, LPCTSTR pszTarget, DWORD perm, BOOL fCreate );
  3. BOOL SetMetaDword(IMSAdminBase* pIMB, LPCTSTR pszServer, LPCTSTR pszMetaRoot, LPCTSTR pszSub, DWORD idData, DWORD iType, DWORD dwValue, BOOL fCheckInheritence);
  4. BOOL SetMetaString(IMSAdminBase* pIMB, LPCTSTR pszServer, LPCTSTR pszMetaRoot, LPCTSTR pszSub, DWORD idData, DWORD iType, CString sz, BOOL fCheckInheritence, BOOL fSecure);
  5. BOOL SetMetaData(IMSAdminBase* pIMB, LPCTSTR pszServer, LPCTSTR pszMetaRoot, LPCTSTR pszSub, DWORD idData, DWORD iType, DWORD iDataType, PVOID pData, DWORD cbData, BOOL fCheckInheritence, BOOL fSecure );
  6. BOOL SetMetaMultiSz(IMSAdminBase* pIMB, LPCTSTR pszServer, LPCTSTR pszMetaRoot, LPCTSTR pszSub, DWORD idData, DWORD iType, PVOID pData, DWORD cchmsz, BOOL fCheckInheritence );
  7. BOOL SetMBDword(CWrapMetaBase* pMB,
  8. CCheckInheritList* pInheritList,
  9. LPCTSTR pszSub,
  10. DWORD idData,
  11. DWORD iType,
  12. DWORD dwValue);
  13. BOOL SetMBString(CWrapMetaBase* pMB,
  14. CCheckInheritList* pInheritList,
  15. LPCTSTR pszSub,
  16. DWORD idData,
  17. DWORD iType,
  18. CString sz,
  19. BOOL fSecure);
  20. BOOL SetMBData(CWrapMetaBase* pMB,
  21. CCheckInheritList* pInheritList,
  22. LPCTSTR pszSub,
  23. DWORD idData,
  24. DWORD iType,
  25. DWORD iDataType,
  26. PVOID pData,
  27. DWORD cbData,
  28. BOOL fSecure );
  29. BOOL SetMBMultiSz(CWrapMetaBase* pMB,
  30. CCheckInheritList* pInheritList,
  31. LPCTSTR pszSub,
  32. DWORD idData,
  33. DWORD iType,
  34. PVOID pData,
  35. DWORD cchmsz );
  36. //-------------------------------------------------------------
  37. class CCheckInheritList : public CObject
  38. {
  39. public:
  40. // do the check on all the members of the check array
  41. void CheckInheritence( LPCTSTR pszServer, LPCTSTR pszInheritRoot );
  42. // add an item to check
  43. INT Add( DWORD dwMDIdentifier, DWORD dwMDDataType, DWORD dwMDUserType, DWORD dwMDAttributes );
  44. protected:
  45. //--------------------------
  46. typedef struct _INHERIT_CHECK_ITEM
  47. {
  48. DWORD dwMDIdentifier;
  49. DWORD dwMDDataType;
  50. DWORD dwMDUserType;
  51. DWORD dwMDAttributes;
  52. } INHERIT_CHECK_ITEM, *PINHERIT_CHECK_ITEM;
  53. // the array of items
  54. CArray< INHERIT_CHECK_ITEM, INHERIT_CHECK_ITEM> rgbItems;
  55. };