SOL9 Sample: NetShare

SOL9 2.0 Samples

1 Screenshot


2 Source code

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


#include <sol/nm/ShareInfo0.h>
#include <sol/nm/ShareInfo1.h>
#include <sol/nm/ShareInfo2.h>
#include <sol/nm/NetShare.h>

#include <sol/Locale.h>

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

  try {
    ShareInfo0 info0;
    ShareInfo1 info1;
    ShareInfo2 info2;

    wchar_t* server = NULL;
    NetShare netShare(server);

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

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

    netShare.enumerate(info2);
    info2.display();

  } 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.