Don't Want To Run Any Application...
-
Hi group, I am developing some time critical application. Now my question is " When my application starts, user can't run any application in back ground. Even it can't pres ALT+TAB. Because if windows takes some time to switch my application fails because i am reading some data at miliseconds. Now what is the programming steps which i should take for this." :confused: :confused: :confused: :confused: :confused: :confused: | :-O :rose: -------------------------------------------------- Say Whatever You Know Manish --------------------------------------------------
-
Hi group, I am developing some time critical application. Now my question is " When my application starts, user can't run any application in back ground. Even it can't pres ALT+TAB. Because if windows takes some time to switch my application fails because i am reading some data at miliseconds. Now what is the programming steps which i should take for this." :confused: :confused: :confused: :confused: :confused: :confused: | :-O :rose: -------------------------------------------------- Say Whatever You Know Manish --------------------------------------------------
-
Don't use windows. If you have such a critical task, then a desktop OS like Windows is not suitable. Even when the user is not interfering there is no guaranty that the OS assignes enough CPU time to your application. Regards Daniel
Thanx Daniel But i have no choice of using different OS. I have completed my hardware interface. It works fine when my application runs. But when user starts any other application, delays in timer interrupts occur and my application behave differently. So i want to do that no one can run any application except mine. Anyway or by doing anything he/she can't run any application... :(( :(( :(( :(( :(( :(( :(( :(( || :-O :rose: -------------------------------------------------- Say Whatever You Know Manish --------------------------------------------------
-
Thanx Daniel But i have no choice of using different OS. I have completed my hardware interface. It works fine when my application runs. But when user starts any other application, delays in timer interrupts occur and my application behave differently. So i want to do that no one can run any application except mine. Anyway or by doing anything he/she can't run any application... :(( :(( :(( :(( :(( :(( :(( :(( || :-O :rose: -------------------------------------------------- Say Whatever You Know Manish --------------------------------------------------
the trick is making your computer believe that your application is a screen saver, that way, no other application can run. I did this in VB :mad: some time ago. I suppose it won't be very difficult to port it to VC++ Go to the MSDN and look for this article HOWTO: Block CTRL+ALT+DEL and ALT+TAB in Windows 95 or Windows 98
-
Thanx Daniel But i have no choice of using different OS. I have completed my hardware interface. It works fine when my application runs. But when user starts any other application, delays in timer interrupts occur and my application behave differently. So i want to do that no one can run any application except mine. Anyway or by doing anything he/she can't run any application... :(( :(( :(( :(( :(( :(( :(( :(( || :-O :rose: -------------------------------------------------- Say Whatever You Know Manish --------------------------------------------------
> But i have no choice of using different OS. Then you have but one choice AFAICT, write it as a kernel-mode (ring 0) driver and turn off interrupts. Don't expect to make any friends or ship such a horrible hack though. You are _either_ Real-Time or Windows, it's *impossible* to have real-time demands in windows (even for device-drivers not turning off interrupts). Perhaps your hardware is either designed to be driven by a real-time "something" or it's mis-designed to be used in a preemptive OS?
-
Hi group, I am developing some time critical application. Now my question is " When my application starts, user can't run any application in back ground. Even it can't pres ALT+TAB. Because if windows takes some time to switch my application fails because i am reading some data at miliseconds. Now what is the programming steps which i should take for this." :confused: :confused: :confused: :confused: :confused: :confused: | :-O :rose: -------------------------------------------------- Say Whatever You Know Manish --------------------------------------------------
Have you tried to use SetThreadPriority() and SetPriorityClass() with THREAD_PRIORITY_TIME_CRITICAL and REALTIME_PRIORITY_CLASS respectively? (If you do, don't forget to restore default priority when you don't need that anymore). Maybe that could help, but as others said Windows is not a real-time OS. I think that's the best you can do in a user-mode application. Paolo ------ "airplane is cool, but space shuttle is even better" (J. Kaczorowski)
-
the trick is making your computer believe that your application is a screen saver, that way, no other application can run. I did this in VB :mad: some time ago. I suppose it won't be very difficult to port it to VC++ Go to the MSDN and look for this article HOWTO: Block CTRL+ALT+DEL and ALT+TAB in Windows 95 or Windows 98
Francisco, I am happy with your answer. I will do as you suggest but if i will get ne problem i will mail you in this post. Okay. -------------------------------------------------- Say Whatever You Know Manish --------------------------------------------------
-
the trick is making your computer believe that your application is a screen saver, that way, no other application can run. I did this in VB :mad: some time ago. I suppose it won't be very difficult to port it to VC++ Go to the MSDN and look for this article HOWTO: Block CTRL+ALT+DEL and ALT+TAB in Windows 95 or Windows 98
Dear I want to write application which work in 98/2000. so your article is for 98 and it works fine in 98 but what about 2000.:(( :(( -------------------------------------------------- Say Whatever You Know. Helping other people is good for health. ========= Manish ========= ---------------------------------------------------
-
Dear I want to write application which work in 98/2000. so your article is for 98 and it works fine in 98 but what about 2000.:(( :(( -------------------------------------------------- Say Whatever You Know. Helping other people is good for health. ========= Manish ========= ---------------------------------------------------
In Windows 2000 you have mucho more control on the priorities of the different processes (look at the post by Paolo Messina). I tried once (in Windows 2000) to place the seti process at realtime priority, and I can tell you it did exactly that. I could do nothing more that use that application. No switching, no mouse (keyboard still works), no paging, the closest thing you'll ever see to a real time OS in Windows.:)