I have a basic setup to deal with here, no domains or fancy stuff. I can make a program receive a message from my phone to trigger events, etc.
How can a C# application run in the background before login? (I'll try as a service first...)
And, how can that program trigger a logon into Windows? It would be a personal app, so I'm not concerned too much with security.
some pseudo-code (Yes, I know it's not secure):
LogOnWindows(string WindowsUserName, string WindowsPassword)
{
if (Environment.GetEnvironmentVariable(USERNAME) == null)
{
LogonWindows(WindowsUserName, WindowsPassword);
}
}
I've checked out the LogOnUser API call for Windows but that seems to log the user on in the background...