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.

40 lines
1019 B

  1. #pragma once
  2. STDAPI CreatePatchingUtil(IXMLDOMNode *pPatchNode, IPatchingUtil **ppPatchingInfo);
  3. class CPatchingUtil : public IPatchingUtil
  4. {
  5. public:
  6. // IUnknown methods
  7. STDMETHODIMP QueryInterface(REFIID riid, void ** ppv);
  8. STDMETHODIMP_(ULONG) AddRef();
  9. STDMETHODIMP_(ULONG) Release();
  10. STDMETHOD (Init)(
  11. /* in */ IXMLDOMNode *pPatchNode);
  12. // Pre-download
  13. STDMETHOD (MatchTarget)(
  14. /* in */ LPWSTR pwzTarget,
  15. /* out */ IManifestInfo **ppPatchInfo);
  16. // Post-download
  17. STDMETHOD (MatchPatch)(
  18. /* in */ LPWSTR pwzPatch,
  19. /* out */ IManifestInfo **ppPatchInfo);
  20. static HRESULT CreatePatchingInfo(IXMLDOMDocument2 *pXMLDOMDocument, IAssemblyCacheImport *pCacheImport, IManifestInfo **ppPatchingInfo);
  21. CPatchingUtil();
  22. ~CPatchingUtil();
  23. private:
  24. DWORD _dwSig;
  25. DWORD _cRef;
  26. HRESULT _hr;
  27. IXMLDOMNode *_pXMLPatchNode;
  28. };