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
1.1 KiB

  1. /* Dispatch.h
  2. *
  3. * History: a-jsari 3/18/98 Initial version.
  4. *
  5. * Copyright (c) 1998-1999 Microsoft Corporation
  6. */
  7. #pragma once
  8. #include <atlbase.h>
  9. #include <atlcom.h>
  10. #include "Consts.h"
  11. #include "MSInfo.h"
  12. #ifndef IDS_DESCRIPTION
  13. #include "Resource.h"
  14. #endif
  15. /*
  16. * CMSInfo - Class implementation of MSInfo's IDispatch interface.
  17. *
  18. * History: a-jsari 3/18/98 Initial version.
  19. */
  20. class CMSInfo :
  21. public IDispatchImpl <ISystemInfo, &IID_ISystemInfo, &LIBID_MSINFOSNAPINLib, 1, 0>,
  22. public CComObjectRoot,
  23. public CComCoClass <CMSInfo, &CLSID_SystemInfo>
  24. {
  25. public:
  26. DECLARE_REGISTRY(CMSInfo, _T("MSInfo.Application.1"), _T("MSInfo.Application"), IDS_DESCRIPTION, THREADFLAGS_BOTH)
  27. BEGIN_COM_MAP(CMSInfo)
  28. COM_INTERFACE_ENTRY(ISystemInfo)
  29. END_COM_MAP()
  30. CMSInfo();
  31. ~CMSInfo();
  32. STDMETHOD(make_nfo)(BSTR lpszFilename, BSTR lpszComputername);
  33. STDMETHOD(make_report)(BSTR lpszFilename, BSTR lpszComputername, BSTR lpszCategory);
  34. STDMETHOD(MakeNFO)(BSTR lpszFilename, BSTR lpszComputername, BSTR lpszCategory);
  35. STDMETHOD(MakeReport)(BSTR lpszFilename, BSTR lpszComputername, BSTR lpszCategory);
  36. STDMETHOD(QueryCategories)(BSTR lpszCategories);
  37. };