Examples of GROUP_USERS_INFO_0


Examples of com.sun.jna.platform.win32.LMAccess.GROUP_USERS_INFO_0

                serverName, userName,
                    0, bufptr, LMCons.MAX_PREFERRED_LENGTH, entriesread, totalentries);
            if (rc != LMErr.NERR_Success) {
                throw new Win32Exception(rc);
            }
            GROUP_USERS_INFO_0 lgroup = new GROUP_USERS_INFO_0(bufptr.getValue());     
            GROUP_USERS_INFO_0[] lgroups = (GROUP_USERS_INFO_0[]) lgroup.toArray(entriesread.getValue());
            ArrayList<Group> result = new ArrayList<Group>();
            for (GROUP_USERS_INFO_0 lgpi : lgroups) {
                Group lgp = new Group();
                if (lgpi.grui0_name != null) {
                  lgp.name = lgpi.grui0_name.toString();
View Full Code Here

Examples of com.sun.jna.platform.win32.LMAccess.GROUP_USERS_INFO_0

      IntByReference entriesread = new IntByReference();
      IntByReference totalentries = new IntByReference();
      assertEquals(LMErr.NERR_Success, Netapi32.INSTANCE.NetUserGetGroups(
          null, users[0].name, 0, bufptr, LMCons.MAX_PREFERRED_LENGTH,
          entriesread, totalentries));
      GROUP_USERS_INFO_0 lgroup = new GROUP_USERS_INFO_0(bufptr.getValue());     
      GROUP_USERS_INFO_0[] lgroups = (GROUP_USERS_INFO_0[]) lgroup.toArray(entriesread.getValue());
        for (GROUP_USERS_INFO_0 localGroupInfo : lgroups) {
          assertTrue(localGroupInfo.grui0_name.length() > 0);
        }
      assertEquals(LMErr.NERR_Success, Netapi32.INSTANCE.NetApiBufferFree(bufptr.getValue()));
    }
View Full Code Here

Examples of com.sun.jna.platform.win32.LMAccess.GROUP_USERS_INFO_0

        int rc = Netapi32.INSTANCE.NetUserGetGroups(serverName, userName,
            0, bufptr, LMCons.MAX_PREFERRED_LENGTH, entriesread, totalentries);
        if (rc != LMErr.NERR_Success) {
          throw new Win32Exception(rc);
        }
        GROUP_USERS_INFO_0 lgroup = new GROUP_USERS_INFO_0(bufptr.getValue());     
        GROUP_USERS_INFO_0[] lgroups = (GROUP_USERS_INFO_0[]) lgroup.toArray(entriesread.getValue());
      ArrayList<Group> result = new ArrayList<Group>();
          for (GROUP_USERS_INFO_0 lgpi : lgroups) {
        Group lgp = new Group();
        lgp.name = lgpi.grui0_name.toString();
        result.add(lgp);
View Full Code Here

Examples of com.sun.jna.platform.win32.LMAccess.GROUP_USERS_INFO_0

      IntByReference entriesread = new IntByReference();
      IntByReference totalentries = new IntByReference();
      assertEquals(LMErr.NERR_Success, Netapi32.INSTANCE.NetUserGetGroups(
          null, users[0].name, 0, bufptr, LMCons.MAX_PREFERRED_LENGTH,
          entriesread, totalentries));
      GROUP_USERS_INFO_0 lgroup = new GROUP_USERS_INFO_0(bufptr.getValue());     
      GROUP_USERS_INFO_0[] lgroups = (GROUP_USERS_INFO_0[]) lgroup.toArray(entriesread.getValue());
        for (GROUP_USERS_INFO_0 localGroupInfo : lgroups) {
          assertTrue(localGroupInfo.grui0_name.length() > 0);
        }
      assertEquals(LMErr.NERR_Success, Netapi32.INSTANCE.NetApiBufferFree(bufptr.getValue()));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.