amit punekar wrote:Hello,
how you are using this logger in your application code?
Regards,
amit
Stephan van Hulst wrote:Hard to say without seeing your code. The methods you refer to sound like they're either from the Windows API , or your own methods.
Campbell Ritchie wrote:Still don’t know. But do you mean that it runs all right in WinXP and not in other versions of Windows®?
Campbell Ritchie wrote:Don’t know myself. Sorry.
I presume there is nothing in the Runtime documentation or links like Michael Dacosta’s article to say that exec() starts a new thread which runs independently of the JVM?
endswel shui wrote:
Rob Spoor wrote:To go through all the windows, you need native function "EnumWindows".
To go through all the processes, you first need to make a snapshot using "CreateToolhelp32Snapshot, then call "Process32First" once followed by "Process32Next" for all the remaining processes.
Check out Microsoft's MSDN site for more information and some examples.
hi, Rob
Thank you for your answer, I follow it and implement the result what I want,
there is another issue,
for the app2, when it is activated from the system tray by the app1.
How could I hide the system tray, (because if the app2 shows itself in the desktop, it's system tray will be hide)
I try using the ShowWindow and FindWindow in the jpa under the User32, but FindWindow cant find it. --!
so, is there any method to solve this?
Campbell Ritchie wrote:I am not sure I understand the problem; please explain more.
I think this post is too difficult for “beginning”, so I shall move it.
Rob Spoor wrote:To go through all the windows, you need native function "EnumWindows".
To go through all the processes, you first need to make a snapshot using "CreateToolhelp32Snapshot, then call "Process32First" once followed by "Process32Next" for all the remaining processes.
Check out Microsoft's MSDN site for more information and some examples.
Rob Spoor wrote:Since the other application is not part of the same JVM you definitely have to use JNI (or JNA) for this.