SOL9 Sample: NetUse

SOL9 2.0 Samples

1 Screenshot


2 Source code

/*
 * NetUse.cpp 
 * Copyright (c) 2015 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED. 
 */


#include <sol/nm/NetUse.h>

#include <sol/nm/UseInfo0.h>
#include <sol/nm/UseInfo1.h>

#include <sol/Locale.h>

void _tmain(int argc, TCHAR** argv)
{
  Locale locale;

  try {
    wchar_t* server = NULL;

    NetUse netUse(server);

    UseInfo0 info0;
    UseInfo1 info1;

    netUse.enumerate(info0);
    info0.display();
    printf("\n");

    netUse.enumerate(info1);
    info1.display();
    printf("\n");

  } catch (...) {
    printf("Exception \n");
  }

  printf("OK. Please hit [enter] key\n");
  getchar();
}

Last modified: 2 May 2016

Copyright (c) 2016 Antillia.com ALL RIGHTS RESERVED.