Re: Getting a programs ui to run at the login prompt
I added the window service template to the project.
I have now followed the steps from the link you provided and it is creating a service that I can now start from services.msc.
But when I run the executable it still trys to start the service to no avail.
And install util still gives the same error.
Re: Getting a programs ui to run at the login prompt
You cant run the service.exe by double clicking on it. Running and stopping is controlled by service manager. If you say your service starts and stops though service manager, then you've successfully created a service. Whether or not your service does what you want, thats another story.
Re: Getting a programs ui to run at the login prompt
Quote:
Originally Posted by petes1234
How did you do this in VB? Can you show abreviated code?
......
Code:
static class Program
{
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1()); // this is the call that get's your program started
}
}
Ignore all I said about this. I was misinterpretting your problem, and was thinking about program login and start-up, not windows login and start-up.
Sorry.
Re: Getting a programs ui to run at the login prompt
Quote:
Originally Posted by cjard
Seeing as how the example was in c++, and a little beyond my programming skills at the moment, I decided to do a little research on winlogon.exe and I ran across this.... dont know if this applies to the link you provided.
http://www.gridview.org/kb/CSharp200...-in-the-c.aspx
Quote:
Explains that you should not use NET Framework Class Libraries or other framework libraries in the core system processes
We recommend that you only use C languages and Win32 APIs for any add-in components that are loaded by core operating system processes. Two examples of core operating system processes are Winlogon.exe and Lsass.exe.
The behavior of any high-level language, framework, or runtime in the components that are loaded by core operating system processes is undefined. For example, the Microsoft .NET Framework and the common language runtime were not designed to run in the context of core operating system processes. The following is a partial list of high-level languages, frameworks, and runtimes where the behavior is undefined in the context of core operating system processes: .NET Framework languages C#Visual Basic .NETManaged Extensions for C++common language runtimeJavaMicrosoft Component Object Model (COM)Microsoft COM+Microsoft Distributed Component Object Model (DCOM) Microsoft Foundation Classes (MFC)Microsoft ActiveX Template Library (ATL) framework