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.

41 lines
837 B

  1. //
  2. // MyALG.h : Declaration of the CMyALG
  3. //
  4. #pragma once
  5. // {6E590D41-F6BC-4dad-AC21-7DC40D304059}
  6. DEFINE_GUID(CLSID_MyALG, 0x6e590d41, 0xf6bc, 0x4dad, 0xac, 0x21, 0x7d, 0xc4, 0xd, 0x30, 0x40, 0x59);
  7. /////////////////////////////////////////////////////////////////////////////
  8. //
  9. // CMyALG
  10. //
  11. class ATL_NO_VTABLE CMyALG :
  12. public CComObjectRoot,
  13. public CComCoClass<CMyALG, &CLSID_MyALG>,
  14. public IApplicationGateway
  15. {
  16. public:
  17. DECLARE_REGISTRY(CMyALG, TEXT("ALG_TEST.MyALG.1"), TEXT("ALG_TEST.MyALG"), -1, THREADFLAGS_BOTH)
  18. DECLARE_NOT_AGGREGATABLE(CMyALG)
  19. BEGIN_COM_MAP(CMyALG)
  20. COM_INTERFACE_ENTRY(IApplicationGateway)
  21. END_COM_MAP()
  22. //
  23. // IApplicationGateway
  24. //
  25. public:
  26. STDMETHODIMP Initialize(
  27. IApplicationGatewayServices* pIAlgServices
  28. );
  29. STDMETHODIMP Stop(
  30. void
  31. );
  32. };