I have a project, which perfectly works in Windows XP.
However, in windows vista and up, it doesn't work sometimes
because of UAC, I guess.
So, as my thought, I need to run my project as a service to work properly.
Actually, i just registered it as a service, and ran it,
but I got a message like "you can't open a GUI program running.."
I need other ways to solve it.
any ideas??
I think you can open a GUI program via a windows service if the service is set to interactive mode.
I would just also like to undestand: was the project you had originally a gui application or was it a non iteractive console based app that only interacted with user by calling to other gui apps?
Ideally windows services are not meant for gui interaction - you create client applications with gui interfaces that interact with the widows service via sockets, named pipes, database or some other communication mechism.
A windows service typically servers many clients, hence clients are typically remote - however, if you have some weird case where you will require the client and service to run on same machine (like in a production environment) then you could also use shared memory between the service and client with which to communicate.