解决ASP.NET创建的线程的用户改变引发的拒绝访问错误
作者: 来源: 添加时间:2006-5-21 19:42:58 Dim thr As Threading.Thread
Dim l As System.Security.Principal.WindowsIdentity
Function print()
thr = New Threading.Thread(AddressOf printAutoCAD)
thr.Start()
l = System.Security.Principal.WindowsIdentity.GetCurrent
End Function
Private Sub printAutoCAD()
System.Security.Principal.WindowsIdentity.Impersonate(l.Token)
...
End Function
站内搜索