Advertisement

11.17.2008 at 02:04PM PST, ID: 23912449
[x]
Attachment Details

Looking to make use of Win32 ShowWindow from Java (looking at using JACOB, JAva-COm Bridge)

[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2
My goal is from my java program to hide a program that is already started. I have the proccess id already but I am not certain that will be much use for me. From my research it looks like I can either work very hard on some custom JNI hooks or I can take the easier route and use an open source API like JACOB (I looked at a number of other API projects but JACOB seemed most reliable and widely endorsed, please correct me if I am wrong ). I am not able to modify how the program initial program starts.

So I have the idea and I am now looking through the javadocs... but I don't have any clear examples...so I am googling and soon to be ramming code down the jvm's throat to see what it spits back... If anyone has any insight that they can share with me about using JACOB or any other Java to COM open-source API please help.

My thoughts are this (psuedo'ish):

//Find window of Oracle installer proccess
myWin = FindWindow("setup.exe", NULL);
//Force minimize
ShowWindow( myWin, SW_FORCEMINIMIZE);

That is my start... how to impliment this in JACOB is a good guess. I also have a feeling that I could be completely off base here (the main reason for this post would be for reassurance that I am not headed into a deadend)



Answered By: techieBrandon
Expert Since: 04/23/2008
Accepted Solutions: 7
Computer Expertise: Beginner
techieBrandon has been an Expert for 8 months, during which he has posted 46 comments and answered 7 questions. techieBrandon is just one of 148 experts in the Windows ATL / WTL / COM Programming Zone. 1 expert collaborated on this answer, which was graded an "A" by the asker.
 
 
 
 
20081119-EE-VQP-48 - Hierarchy / EE_QW_2_20070628