> Ok, well, I have a 'workable' solution. It's pretty simple
[snip]
Update - WINDOWS AND/OR SUN JRE FOR WINDOWS IS FUCKING SHIT
The 'shutdown the node' code now does the following:
> Step 1 - Run Freenet.node.gui.GUINode instead of Freenet.node.Node
> Step 2 - When you want to shut the node down, enumerate all windows in the
> system
> Step 3 - Match each against the process id of the Freenet node process
> (Steps 2 and 3 are trivial under Windows)
Step 4 - Find out if the window has a WndProc associated (a combination of
GetWindowLong() and GetClassLong() API calls). If *not* then don't send the
window any kind of message cos Windows is liable to barf
Step 5 - Send the window a "WM_SYSMESSAGE(SC_CLOSE)" message. Don't send
WM_CLOSE cos javaw.exe is stupid and just ignores it. (Ignoring WM_CLOSE
messages? what the f... ? )
Get yer updated freenet.exe from the usual place. (Sebastian, David,
prepare yrselves...)
Dave
_______________________________________________
Devl mailing list
[EMAIL PROTECTED]
http://lists.freenetproject.org/mailman/listinfo/devl