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.

43 lines
928 B

  1. /*++
  2. Copyright (C) 1996-2001 Microsoft Corporation
  3. Module Name:
  4. A51Imp.h
  5. Abstract:
  6. Imports a previously exported repository, dealing with class updates along the way.
  7. History:
  8. 08-Dec-2000 paulall Created.
  9. --*/
  10. class A51Import
  11. {
  12. private:
  13. HANDLE m_hFile;
  14. CRepository *m_pRepository;
  15. bool m_bSkipMode;
  16. protected:
  17. HRESULT ImportHeader();
  18. HRESULT ImportNamespace();
  19. HRESULT ImportClass(CNamespaceHandle *pNs, _IWmiObject *pOldParentClass, _IWmiObject *pNewParentClass);
  20. HRESULT ImportInstance(CNamespaceHandle *pNs, _IWmiObject *pOldParentClass, _IWmiObject *pNewParentClass);
  21. HRESULT ReadObjectType(DWORD *pdwType);
  22. HRESULT ReadBufferWithLength(DWORD *pdwLength, void** ppMemoryBlob);
  23. HRESULT BeginTransaction();
  24. HRESULT AbortTransaction();
  25. HRESULT CommitTransaction();
  26. public:
  27. HRESULT Import(const wchar_t *wszFilename, DWORD dwFlags, CRepository *pRepository);
  28. A51Import();
  29. ~A51Import();
  30. };