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.

67 lines
744 B

  1. #pragma once
  2. #include <Softpub.h>
  3. //
  4. // Holds information on the ALG module loaded
  5. //
  6. class CAlgModule
  7. {
  8. public:
  9. CAlgModule(
  10. LPCTSTR pszProgID,
  11. LPCTSTR pszFriendlyName
  12. )
  13. {
  14. lstrcpy(m_szID, pszProgID);
  15. lstrcpy(m_szFriendlyName, pszFriendlyName);
  16. m_pInterface=NULL;
  17. };
  18. ~CAlgModule()
  19. {
  20. Stop();
  21. }
  22. //
  23. // Methods
  24. //
  25. private:
  26. HRESULT
  27. ValidateDLL(
  28. LPCTSTR pszPathAndFileNameOfDLL
  29. );
  30. public:
  31. HRESULT
  32. Start();
  33. HRESULT
  34. Stop();
  35. //
  36. // Properties
  37. //
  38. public:
  39. TCHAR m_szID[MAX_PATH];
  40. TCHAR m_szFriendlyName[MAX_PATH];
  41. IApplicationGateway* m_pInterface;
  42. };