Thanks for your answer and the needed time. I replace all my code by yours and it still didn't work...That give me the idea to search for something else and I got it. I was using GetActiveWindow in order to get the handle of the current program...I know, it's not the best way...I will search for a better one later, time is running. During the init of the form, the GetActiveWindow returns the handle of Visual Studio and not the one of my program. So I was trying to register hotkeys for Visual Studio and it wasn't working. Well, thanks to you it's working fine now, I was gonna give up (too much time spent on it) My program should be ready for tomorrow with minimal features.:) Nd.
nitro666
Posts
-
I'm becoming crazy about keys -
I'm becoming crazy about keysThanks Leppie, I didn't know that. It wasn't working because I wasn't doing the registration with the right handle ! I was using GetForegroundWindow during form init, and at this moment, the handle is pointing to Visual Studio and not the launched application... Nd.
-
how to hide c# windows Application from windows task manager processess list..(windows 2000)Well the virus isn't visible in the task manager list...At least, there is a difference...:) I have to recognize that old windows shouldn't be able to shutdown the computer. But W2000 and WinXP don't allow more processes creation after shutdown, so it's ok. Nd.
-
how to hide c# windows Application from windows task manager processess list..(windows 2000)Just launch your application when you receive WM_DESTROY or WM_CLOSE. Your current program will be closed but you will have a new session in memory. I don't think MS wants it to be possible to hide processes from the task manager list. The API shouldn't have anything about this. Nd.