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.

50 lines
1.2 KiB

  1. #pragma once
  2. // {4D3F9715-73DA-4506-8933-1E0E1718BA3B}
  3. DEFINE_GUID(CLSID_CInternetGatewayFinder,
  4. 0x4d3f9715, 0x73da, 0x4506, 0x89, 0x33, 0x1e, 0xe, 0x17, 0x18, 0xba, 0x3b);
  5. class ATL_NO_VTABLE CInternetGatewayFinder :
  6. public CComObjectRootEx <CComSingleThreadModel>,
  7. public IInternetGatewayFinder
  8. {
  9. public:
  10. BEGIN_COM_MAP(CInternetGatewayFinder)
  11. COM_INTERFACE_ENTRY(IInternetGatewayFinder)
  12. END_COM_MAP()
  13. DECLARE_PROTECT_FINAL_CONSTRUCT();
  14. CInternetGatewayFinder();
  15. HRESULT Initialize(HWND hWindow);
  16. STDMETHODIMP GetInternetGateway(BSTR DeviceId, IInternetGateway** ppInternetGateway);
  17. HWND m_hWindow;
  18. };
  19. class ATL_NO_VTABLE CInternetGatewayFinderClassFactory :
  20. public CComObjectRootEx <CComSingleThreadModel>,
  21. public IClassFactory
  22. {
  23. public:
  24. BEGIN_COM_MAP(CInternetGatewayFinderClassFactory)
  25. COM_INTERFACE_ENTRY(IClassFactory)
  26. END_COM_MAP()
  27. DECLARE_PROTECT_FINAL_CONSTRUCT();
  28. CInternetGatewayFinderClassFactory();
  29. HRESULT Initialize(HWND hWindow);
  30. // IClassFactory
  31. STDMETHODIMP CreateInstance(IUnknown* pUnkOuter, REFIID riid, void** ppvObject);
  32. STDMETHODIMP LockServer(BOOL fLock);
  33. HWND m_hWindow;
  34. };