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.

71 lines
1.6 KiB

  1. /*
  2. Copyright (c) 1997, Microsoft Corporation, all rights reserved
  3. Description:
  4. History:
  5. */
  6. #ifndef _CEAPCFG_H_
  7. #define _CEAPCFG_H_
  8. #if _MSC_VER >= 1000
  9. #pragma once
  10. #endif // _MSC_VER >= 1000
  11. #define _ATL_APARTMENT_THREADED
  12. #include <atlbase.h>
  13. extern CComModule _Module;
  14. #include <atlcom.h>
  15. #include <rrascfg.h> // IEAPProviderConfig declarations
  16. #include "resource.h"
  17. // Define this here so that our macros will expand correctly
  18. #define IMPL
  19. // External references
  20. extern const CLSID CLSID_EapCfg;
  21. class ATL_NO_VTABLE CEapCfg :
  22. public CComObjectRootEx<CComSingleThreadModel>,
  23. public CComCoClass<CEapCfg, &CLSID_EapCfg>,
  24. public IEAPProviderConfig2
  25. {
  26. public:
  27. CEapCfg() {}
  28. DECLARE_REGISTRY_RESOURCEID(IDR_EAPCFG)
  29. DECLARE_NOT_AGGREGATABLE(CEapCfg)
  30. BEGIN_COM_MAP(CEapCfg)
  31. COM_INTERFACE_ENTRY(IEAPProviderConfig)
  32. COM_INTERFACE_ENTRY(IEAPProviderConfig2)
  33. END_COM_MAP()
  34. public:
  35. // This is the declaration of the UI interface members.
  36. // See rrascfg.idl for the prototypes
  37. DeclareIEAPProviderConfigMembers(IMPL);
  38. STDMETHOD(ServerInvokeConfigUI2)(THIS_ \
  39. DWORD dwEapTypeId,
  40. ULONG_PTR uConnectionParam,
  41. HWND hWnd,
  42. const BYTE *pConfigDataIn,
  43. DWORD dwSizeofConfigDataIn,
  44. BYTE **ppConfigDataOut,
  45. DWORD *pdwSizeofConfigDataOut);
  46. STDMETHOD(GetGlobalConfig)(THIS_ \
  47. DWORD dwEapTypeId,
  48. BYTE **ppConfigDataOut,
  49. DWORD *pdwSizeofConfigDataOut);
  50. };
  51. #endif // _CEAPCFG_H_