Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.programmer Subject: Re: WORKGROUP Date: Wed, 04 Jan 2012 17:27:50 -0800 Organization: Canadian Mind Products Lines: 32 Message-ID: <5pu9g7tsk58e1ufl7s09ob3fom2rjctqaa@4ax.com> References: <8f03213b-5a9e-40c5-b106-7f58a4398dae@t38g2000yqe.googlegroups.com> Reply-To: Roedy Green NNTP-Posting-Host: Z2l1DcCELS0rATq8NqV4Sw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 6.00/32.1186 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11075 On Tue, 13 Dec 2011 07:40:04 -0800, Roedy Green wrote, quoted or indirectly quoted someone who said : >Java is WORA. Workgroup is specific to Windows so you won't find >anything in the official Java to find it out. You would have to use >JNI or exec something to find it out. See if there is anything in the C++ windows API to change the workgroup. It might be considered something too dangerous to trust to non-OS code. Scan the Google to see if anyone has a solution, then encapsulate it with an exec or JNI. see http://mindprod.com/jgloss/jni.html http://mindprod.com/jgloss/exec.html If you were willing to endure great expense and pain, you would get some sort of disassembler or trace debugger and watch C:\Windows\System32\control.exe to see what it does when you manually change the workgroup. I used to do this all the time with 16-bit code. Then the guy who wrote my disassembler died and the tracer Periscope went out of business. -- Roedy Green Canadian Mind Products http://mindprod.com If you can't remember the name of some method, consider changing it to something you can remember.