K
Ken Varn
I am using WindowsIdentity.Impersonate() to impersonate using a logon token
acquired from the Win32 LogonUser account.
I was wondering if it is safe to close the LogonUser handle passed to the
WindowsIdentity constructor while the WindowsIdentity object is still in
use, or does the WindowsIdentity object close it when it is destroyed. I am
not quite sure what is done behind the scenes by the WindowsIdentity class
in this respect.
--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
EmailID = varnk
Domain = Diebold.com
-----------------------------------
acquired from the Win32 LogonUser account.
I was wondering if it is safe to close the LogonUser handle passed to the
WindowsIdentity constructor while the WindowsIdentity object is still in
use, or does the WindowsIdentity object close it when it is destroyed. I am
not quite sure what is done behind the scenes by the WindowsIdentity class
in this respect.
--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
EmailID = varnk
Domain = Diebold.com
-----------------------------------