AbelMorelos
Programmer
Hello guys! I'm a Java programmer switching to C++(I'm starting to like this language but I´m very far of being good enought with C++)... and for now I need the assistance of some experts.
I have a Java application running under the "System" account, and I have to launch a GUI(display a chm file) when the user presses a "Help" button. When you press this button, I send a message(using JNI) to a NamedPipe to spawn the needed process, I'm doing this because I need this process to run under the current logged user account in Windows instead of the System account. But I have a problem, in some machines this GUI appears in the front of my application, and this is ok, but in other machines my Help window is behind my application(it seems to be happening always in Win2k and in some machines with XP). The question is: There is some way to force my Help window to be always in the front? I'm using a CreateProcess call to launch the Help window... I already tried many things with hShowWindow and STARTUPINFO parameters... and nothing.
This defect was assigned to me, because the code owner is on vacations, so, help plese!
(I already had posted this question in other forum, but I just found this was right place this, sorry if you noticed the duplicated post)
Regards!
Abel Morelos
I have a Java application running under the "System" account, and I have to launch a GUI(display a chm file) when the user presses a "Help" button. When you press this button, I send a message(using JNI) to a NamedPipe to spawn the needed process, I'm doing this because I need this process to run under the current logged user account in Windows instead of the System account. But I have a problem, in some machines this GUI appears in the front of my application, and this is ok, but in other machines my Help window is behind my application(it seems to be happening always in Win2k and in some machines with XP). The question is: There is some way to force my Help window to be always in the front? I'm using a CreateProcess call to launch the Help window... I already tried many things with hShowWindow and STARTUPINFO parameters... and nothing.
This defect was assigned to me, because the code owner is on vacations, so, help plese!
(I already had posted this question in other forum, but I just found this was right place this, sorry if you noticed the duplicated post)
Regards!
Abel Morelos