I have code that checks to see who is logged on to the Win2K session. What I need is to be able to re-log that user as someone else at runtime. This is the code to check the current user:
Public Property Get CurrentUser() As String
Dim usr As String
Set wshnet = CreateObject(“wscript.network”)
usr = wshnet.UserName
CurrentUser = usr
End Property
I have an application published in a Citrix session. This VB6 app accesses an Access 2K2 database on another server. They want to restrict NDFS rights to the folder containing this Access DB to only one user. The idea is, in the Citrix session, I would like to re-log the user programmatically to another account that has access to see this folder.