Netif.h 568 B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include "Netif.g.h"
  3. namespace winrt::Maple_App::implementation
  4. {
  5. struct Netif : NetifT<Netif>
  6. {
  7. Netif() = default;
  8. Netif(const hstring& desc, const hstring& Addr);
  9. hstring Desc();
  10. hstring Addr();
  11. static std::vector<Maple_App::Netif> EnumerateInterfaces();
  12. static hstring SniffOutboundAddress();
  13. private:
  14. hstring m_desc;
  15. hstring m_addr;
  16. };
  17. }
  18. namespace winrt::Maple_App::factory_implementation
  19. {
  20. struct Netif : NetifT<Netif, implementation::Netif>
  21. {
  22. };
  23. }