Out of range problem with UserRoster

G

GeorgeMar

I created a function to display the number of users connected to a BE
database. It is based on the API codes from Dev Ashish's site.

It works fine in my office where I have Office 2002/2003 and Windows Server
2000. It doesn't work on Office 2003 and Windows Server 2003.

The error message is: "Subscript out of range . . .".
It fails in the function:fGetRemoteLoggedUserID
at the line:
If
(apiAllocateAndInitializeSid(Authority,lngSubAuthorityCount,alngSubAuthority(0), . . .,alngSubAuthority(7),pSid)) Then

alngSubAuthority(4) and beyond are "out of range"

Is there something else I have to do for 2003? Could the OpenSchema be
different?

Thanks for your help
George
 
G

GeorgeMar

Thank you Rob

Yes. I did use the latest. I looked at it again and saw that it was
written for NT/2000. Not knowing enough about the API codes, it is hard for
me to debug.

From the descriptions I have given, would anyone be able to point me in some
direction? Windows Server 2003 has been around a while now, I wonder if
someone has been able to get it to work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top