I appended on this topic before and I think it got lost. Anyway ....
I'm seeing REALLY strange behaviour from the userid() command. At work, my userid is misi01 and at home I simply have Michael. On my girlfriend's PC I have an account called Michael_V. When debugging in RPC on her PC, the result from the userid() command is MISI01 !?!?!?!?!?
Any ideas Jeff on where this could be coming from ???
I remember from the previous append that got lost that I wrote that I had changed my account name on my girlfriend's PC from Michael to Michael_V and that userid was still returning the former rather than the latter.
To my knowledge, the only (?) way her PC could be returning MISI01 would be if installing Reginald on a PC hard-wired the account name somewhere into the innards, and as a result of simply copying Reginald to a memory stick from work and then installing it on her machine would result in userid() returning MISI01.
BTW - my computer name at work is SEW02160, so at least there userid() is working as expected (where it returns my LAN logon userid of MISI01).
I did the same test on several PCs, with different Windows userids. In my home network I get the windows userid, at work my LAN userid. But I have never seen an unexpected userid as Michael did.