I have written a small function that will load multiple instances of an executable using CreateProcessWithLogonW
the pseudo-code:
for ( i=0;i<100;i++)
{
sprintf(user,"user%i",i);
sprintf(pass,"pass%i",i);
if(NetUserGetInfo(user,pass)==NOT_FOUND) { NetUserAdd(user,pass); }
aaProcessCreateWithLogin("prog.exe",user,pass);
}
it works fine, except , it is limited to 32 instances - additional instances fail -
Is there a limit to the number of users that can launch processes at the same time ?
Thanks
Ash