SOL9 Sample: NetUser

SOL9 2.0 Samples

1 Screenshot


2 Source code

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


#include <sol/nm/NetUser.h>

#include <sol/nm/UserInfo0.h>
#include <sol/nm/UserInfo1.h>
#include <sol/nm/UserInfo2.h>
// 2011/09/06 Added the following line.
#include <sol/nm/UserInfo4.h>


#include <sol/Locale.h>

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

  try {
    wchar_t* server = NULL;

    NetUser netUser(server);

    UserInfo0 info0;
    UserInfo1 info1;
    UserInfo2 info2;
    UserInfo4 info4;

    netUser.enumerateAll(info0);
    info0.display();
    printf("\n");
    netUser.enumerateAll(info1);
    info1.display();
    printf("\n");

    netUser.enumerateAll(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.