Application hibernation [modified]
-
Hi, I have a requirement to keep an application alive even after an user logs off. i.e When the second user logs in, the applications that are opened by the first user should remain open. Is there any way to do this? As our appication would take more time to shutdown and startup we dont want to close it while log off. Can anybody help me out in resolving this...:) An another thing i dont want run my application as a service :(.... Is it possible to hibernate the application and wake up when the next user logs in? Can anybody tell me the concept of Identity Switching? Can this be employed to solve this issue? What happens when the Switch user is being called in Windows XP? Is there any API to accomplish this task? Platform : Windows Thanks, Selva -- modified at 4:25 Tuesday 21st November, 2006
~ Selva
SelvaKr wrote:
to keep an application alive even after an user logs off. i.e When the second user logs in, the applications that are opened by the first user should remain open
I think you need to wrote a windows service application. Good luck!
-
SelvaKr wrote:
to keep an application alive even after an user logs off. i.e When the second user logs in, the applications that are opened by the first user should remain open
I think you need to wrote a windows service application. Good luck!
-
Hi, I have a requirement to keep an application alive even after an user logs off. i.e When the second user logs in, the applications that are opened by the first user should remain open. Is there any way to do this? As our appication would take more time to shutdown and startup we dont want to close it while log off. Can anybody help me out in resolving this...:) An another thing i dont want run my application as a service :(.... Is it possible to hibernate the application and wake up when the next user logs in? Can anybody tell me the concept of Identity Switching? Can this be employed to solve this issue? What happens when the Switch user is being called in Windows XP? Is there any API to accomplish this task? Platform : Windows Thanks, Selva -- modified at 4:25 Tuesday 21st November, 2006
~ Selva
If you detect that your app is being closed, and store it's state to a local file, you can read it again when the app opens. You would have to do something fairly funky for it to work like hibernation.
Christian Graus - C++ MVP
-
If you detect that your app is being closed, and store it's state to a local file, you can read it again when the app opens. You would have to do something fairly funky for it to work like hibernation.
Christian Graus - C++ MVP
Hi Graus, Thanks for your reply. But this approach will again require all my supporting dlls to load again which will lead in time consumption again :-( Or is it possible to switch the identities of all the running applications instead of logoff/login. Will it change the user privilege of windows too? Thanks.
~ Selva
-
Hi Graus, Thanks for your reply. But this approach will again require all my supporting dlls to load again which will lead in time consumption again :-( Or is it possible to switch the identities of all the running applications instead of logoff/login. Will it change the user privilege of windows too? Thanks.
~ Selva
SelvaKr wrote:
Or is it possible to switch the identities of all the running applications instead of logoff/login. Will it change the user privilege of windows too?
No, that's not going to work.
Christian Graus - C++ MVP
-
Hi, I have a requirement to keep an application alive even after an user logs off. i.e When the second user logs in, the applications that are opened by the first user should remain open. Is there any way to do this? As our appication would take more time to shutdown and startup we dont want to close it while log off. Can anybody help me out in resolving this...:) An another thing i dont want run my application as a service :(.... Is it possible to hibernate the application and wake up when the next user logs in? Can anybody tell me the concept of Identity Switching? Can this be employed to solve this issue? What happens when the Switch user is being called in Windows XP? Is there any API to accomplish this task? Platform : Windows Thanks, Selva -- modified at 4:25 Tuesday 21st November, 2006
~ Selva
SelvaKr wrote:
An another thing i dont want run my application as a service
Why not? A service is exactly the solution to what you're asking.
SelvaKr wrote:
Is it possible to hibernate the application and wake up when the next user logs in?
Why build your own keep-alive system when the OS already has one? I suppose you could make your app persist its state to a file, then read it back in on the next launch. But then it's not actually running after logoff.
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
-
Hi, I have a requirement to keep an application alive even after an user logs off. i.e When the second user logs in, the applications that are opened by the first user should remain open. Is there any way to do this? As our appication would take more time to shutdown and startup we dont want to close it while log off. Can anybody help me out in resolving this...:) An another thing i dont want run my application as a service :(.... Is it possible to hibernate the application and wake up when the next user logs in? Can anybody tell me the concept of Identity Switching? Can this be employed to solve this issue? What happens when the Switch user is being called in Windows XP? Is there any API to accomplish this task? Platform : Windows Thanks, Selva -- modified at 4:25 Tuesday 21st November, 2006
~ Selva
-
Did you try to add a key in the following registry path "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" to automatically start your application for all users ?
-
Thanks for your reply.. But my app should not be closed while logoff.. I dont want to start it for each login since it would take more time to load.
~ Selva
-
I see 2 solutions : - Create a service : I know that you dont want to do this...but a service is not closed on logoff - Use the Run Registry Key to launch your app for each logon and optimize the applicatino loading