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.

37 lines
1000 B

  1. #pragma once
  2. #include "nmbase.h"
  3. class ATL_NO_VTABLE CSharedAccessBeacon :
  4. public CComObjectRootEx <CComMultiThreadModel>,
  5. public ISharedAccessBeacon
  6. {
  7. public:
  8. BEGIN_COM_MAP(CSharedAccessBeacon)
  9. COM_INTERFACE_ENTRY(ISharedAccessBeacon)
  10. END_COM_MAP()
  11. CSharedAccessBeacon();
  12. // ISharedAccessBeacon
  13. STDMETHODIMP GetMediaType(NETCON_MEDIATYPE* pMediaType);
  14. STDMETHODIMP GetLocalAdapterGUID(GUID* pGuid);
  15. STDMETHODIMP GetService(SAHOST_SERVICES ulService, IUPnPService**);
  16. STDMETHODIMP GetUniqueDeviceName(BSTR* pUniqueDeviceName);
  17. HRESULT SetMediaType(NETCON_MEDIATYPE MediaType);
  18. HRESULT SetLocalAdapterGUID(GUID* pGuid);
  19. HRESULT SetService(ULONG ulService, IUPnPService* pService);
  20. HRESULT SetUniqueDeviceName(BSTR UniqueDeviceName);
  21. HRESULT FinalRelease();
  22. private:
  23. NETCON_MEDIATYPE m_MediaType;
  24. GUID m_LocalAdapterGUID;
  25. IUPnPService* m_Services[SAHOST_SERVICE_MAX];
  26. BSTR m_UniqueDeviceName;
  27. };