I have the following C# test program:
NWSessLib.NWSess sess = new NWSessLib.NWSess();
bool retval = sess.Login("",
"NDS:\\\\TESTLAB\\framingham\\admin", "xxxxxx", false);
NWDirLib.NWDir nwdir = new NWDirLib.NWDir();
nwdir.FullName = "NDS:\\\\TESTLAB\\framingham";
//the on the next line, dircount = 344, I have confirmed that
many of these are group types
int dircount = nwdir.Entries.Count;
NWUsrGrpLib.NWUsrGrp nwgrp = new NWUsrGrpLib.NWUsrGrp();
nwgrp.GroupSearchScope =
NWUsrGrpLib.NWSearchScope.ugSearchSubtree;
nwgrp.FullName = "NDS:\\\\TESTLAB\\framingham";
//Next line causes a 'General API Error'
NWUsrGrpLib.NWGroups groups = nwgrp.Groups;
int count = groups.Count;
I am simple attempting to iterate over the groups in the
'NDS:\\TESTLAB\framingham' context. Can anyone help troubleshoot this
'General API Error' or suggest an alternative?