| SOL9 Sample: NetConnectionManager | 
1 Screenshot
 
2 Source code
/*
 * NetConnectionManager.cpp 
 * Copyright (c) 2015 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED. 
 */
//2012/08/29
#include <sol\Locale.h>
#include <sol\COMInitializer.h>
#include <sol\netmgr\NetConnectionManager.h>
#include <sol\netmgr\EnumNetConnection.h>
#include <sol\netmgr\NetConnection.h>
#include <sol\netmgr\NetConnectionProperties.h>
#include <sol\netmgr\NetConnectionProps.h>
void _tmain(int argc, const TCHAR* argv[])
{
  Locale locale;
  try {
    COMInitializer initializer;
    NetConnectionManager connectionManager;
    EnumNetConnection enumNetConnection = connectionManager.enumConnections();
    bool looping = true;
    while(looping) {
      try {
        NetConnection netConnection = enumNetConnection.next();
        netConnection.display();
        
        //NetConnectionProperties properties = netConnection.getProperties();
        //properties.display();
      
      } catch (HRESULT ) {
        break;
      }
    }
  } catch (Exception& ex) {
    ex.printf();  
  } catch (HRESULT hr) {
    _tprintf(_T("Exception: HRESULT=%x\n"), hr);
  }
}
Last modified: 2 May 2016
Copyright (c) 2016  Antillia.com ALL RIGHTS RESERVED.