views:

450

answers:

1

Can anyone provide a clear explanation of the difference between LOGON32__LOGON_INTERACTIVE and LOGON32_LOGON_NETWORK when used with LogonUser?

The MS documentation is here.

But I'm not clear what should be used. The scenario is similar to a telnet server that Windows users (local to the server, and domain users) are logging into - I want to impersonate the user in the thread. They may want to delete files or whatever.

+1  A: 

Look at http://www.bitvise.com/wug-logontype for a thorough discussion of the issue and a recommendation:

We recommend that users who require terminal shell access use the 'interactive' logon type.

Justin Grant
thanks, that's a very useful link.
Bruce Blackshaw