View unanswered posts | View active topics It is currently Wed Feb 10, 2010 3:16 am



Post new topic Reply to topic  [ 57 posts ]  Go to page 1, 2, 3, 4  Next
 bblean 1.16 with better x64 support 
Author Message
BBDinosaur
User avatar

Joined: Wed Dec 13, 2006 7:33 pm
Posts: 260
Location: Pretoria, South Africa
Reply with quote
Post bblean 1.16 with better x64 support
I realised today that my AV and firewall weren't starting up when I used bblean as shell in Windows XP x64. After I checked with autoruns I realised that this is because they are located in the 64-bit startup section of the registry, so bblean doesn't see them. So I decided to fix it.

What's added :
  • Executes startup programs from both the 32-bit and 64-bit parts of the registry
  • Disables Filesystem redirection while executing the 64-bit portion, to let stuff using rundll.exe to start properly
  • Install now works under 64-bit (as far as I know)

Tested under Windows XP x64 SP2. Install for current user only not tested, but it should work.
THIS IS NOT A 64-BIT APPLICATION!, so all the plugins should still work. I tried to compile a 64-bit version, but I gave up from all the errors during compilation.

Please test and report if it works, or what doesn't. This should work under normal 32-bit windows exactly like the normal bblean, I'd appreciate it if somebody could test that as well.

This is only the blackbox.exe, so you need the other files from an existing installation. I'll make the changes to the source available later if it works as expected, and after I clean them up a bit

For a link on your menu to open the control panel add
Code:
[exec] (Control Panel) {C:\Windows\explorer.exe ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}}


Attachments:
File comment: Replacement EXE for 64 bit systems
blackbox.exe [147 KiB]
Downloaded 241 times

_________________
Try boxCore! :)
boxCore homepage. Forum thread on lostinthebox.
Bugs, Feature requests


Last edited by Carsomyr on Mon Jan 07, 2008 10:04 am, edited 1 time in total.

Wed Jan 02, 2008 4:40 pm
Report this post
Profile WWW
Sponsored Links
Google Adsense


BBWise

Joined: Tue Aug 23, 2005 2:50 pm
Posts: 59
Location: England
Reply with quote
Post Re: bblean with better x64 support
upgrading to x64 in a month or so after i've built my new rig...
thanks in advance i'll test then :D


Wed Jan 02, 2008 11:21 pm
Report this post
Profile WWW
BBSage
User avatar

Joined: Mon Jan 24, 2005 4:36 am
Posts: 93
Reply with quote
Post Re: bblean with better x64 support
Still no love in Vista 64 :cry: but I look forward to the changes to come...

_________________
C:\> http://goneashore.blogspot.com


Fri Jan 04, 2008 5:32 pm
Report this post
Profile WWW
BBDinosaur
User avatar

Joined: Wed Dec 13, 2006 7:33 pm
Posts: 260
Location: Pretoria, South Africa
Reply with quote
Post Re: bblean with better x64 support
What happens when running it under vista 64 bit?

_________________
Try boxCore! :)
boxCore homepage. Forum thread on lostinthebox.
Bugs, Feature requests


Fri Jan 04, 2008 6:01 pm
Report this post
Profile WWW
Moderator
User avatar

Joined: Sun Feb 04, 2007 2:57 pm
Posts: 1004
Location: austria
Reply with quote
Post Re: bblean with better x64 support
Carsomyr wrote:
.... I tried to compile a 64-bit version, but I gave up from all the errors during compilation ......
What were you using as a compiler?

_________________
HTH

unkamunka - #bb4win


Sat Jan 05, 2008 9:27 am
Report this post
Profile
BBDinosaur
User avatar

Joined: Fri Jan 27, 2006 4:16 am
Posts: 794
Location: Karlstad, Sweden
Reply with quote
Post Re: bblean with better x64 support
Could you create a diff so I could merge this with bbClean? :)

Cheers,
Chris

_________________
Don't forget to check the BlackBox FAQs.

Jabber: noccy@jabber.se | Web: www.noccy.com | Blog: Minimal Security


Sat Jan 05, 2008 10:27 am
Report this post
Profile ICQ YIM WWW
BBSage
User avatar

Joined: Mon Jan 24, 2005 4:36 am
Posts: 93
Reply with quote
Post Re: bblean with better x64 support
Carsomyr wrote:
What happens when running it under vista 64 bit?
Initially everything is peachy, the moment you use any environment variables (COMMON_STARTMENU, STARTMENU etc) or right click on any menu item, BB crashes. I can only suspect it has to do with how BB references system information vs how Vista 64 allows it to be referenced. Initially I though it may be a permission thing, but running as admin made no difference.

_________________
C:\> http://goneashore.blogspot.com


Sat Jan 05, 2008 5:52 pm
Report this post
Profile WWW
Moderator
User avatar

Joined: Sun Feb 04, 2007 2:57 pm
Posts: 1004
Location: austria
Reply with quote
Post Re: bblean with better x64 support
arcangel33 wrote:
....the moment you use any environment variables (COMMON_STARTMENU, STARTMENU etc) or right click on any menu item, BB crashes.....
....it's a while since I used bb on Vista64, but I'm sure I didn't have any right-click issues on either bbClean or xoblite. Also, I'm pretty sure that even STARTMENU was okay ...... but that was under xoblite only. Unmodded bbLean (which I'm guessing is Carsomyr's baseline) runs a bit differently even on Vista32......

_________________
HTH

unkamunka - #bb4win


Sat Jan 05, 2008 6:38 pm
Report this post
Profile
BBDinosaur
User avatar

Joined: Wed Dec 13, 2006 7:33 pm
Posts: 260
Location: Pretoria, South Africa
Reply with quote
Post Re: bblean with better x64 support
@noccy: Posted a diff against your bbClean SVN in the bbClean thread

I was using the 64 bit mingw compiler from http://sourceforge.net/projects/mingw-w64/

Most of the errors are due to integer size and pointer size differences, and I'm afraid that somewhere something might break if I don't carefully follow where the results of those casts are used.

_________________
Try boxCore! :)
boxCore homepage. Forum thread on lostinthebox.
Bugs, Feature requests


Sat Jan 05, 2008 10:24 pm
Report this post
Profile WWW
BBChild

Joined: Sun Jan 06, 2008 8:03 pm
Posts: 5
Reply with quote
Post Re: bblean with better x64 support
This works great! I'm so excited! I've wanted an alternate shell for ages that would work on XP x64, but all the ones I tried gave me problems with my programs starting up. Now they all start up just fine :D ! One thing I do notice, however, is that the x64 programs seem to start up 5 or so seconds after everything else. I don't know if they're really starting up that late, or if the systray is just refreshing it's icons slow.

The only other thing I've noticed is that I can only access the x86 control panel, not the x64 control panel. Is this fixable? If so, I think that would make it work just as well on x64 as it does on x86.

Thanks so much for doing this!


Sun Jan 06, 2008 8:09 pm
Report this post
Profile
BBDinosaur
User avatar

Joined: Wed Dec 13, 2006 7:33 pm
Posts: 260
Location: Pretoria, South Africa
Reply with quote
Post Re: bblean with better x64 support
I'll take a look if I can see anything which could be cuasing the delay. It's possible that there is a wait somewhere after starting a set.

Direct access to the control panel would require that it be compiled as a 64-bit app. I'll try that again during the next few days, but then it would need plugins to be compiled as 64 bit too :(

If you add
Code:
[exec] (Control Panel) {C:\Windows\explorer.exe ,,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}}

to your menu it will give you an entry which opens up the control panel directly in explorer. The full path makes sure we get the 64-bit explorer, which can open the full control panel. That's the best I've got at the moment

_________________
Try boxCore! :)
boxCore homepage. Forum thread on lostinthebox.
Bugs, Feature requests


Sun Jan 06, 2008 8:46 pm
Report this post
Profile WWW
BBChild

Joined: Sun Jan 06, 2008 8:03 pm
Posts: 5
Reply with quote
Post Re: bblean with better x64 support
Carsomyr wrote:
...Direct access to the control panel would require that it be compiled as a 64-bit app. I'll try that again during the next few days, but then it would need plugins to be compiled as 64 bit too :(


Now that you mention it, I do remember reading about that. That sounds like a lot of work :(

How hard is it to re-compile a plugin for x64 support?

Hopefully, once an official blackbox distro has full x64 support, plugin authors will start compiling both x86 and x64 versions.

Carsomyr wrote:
If you add
Code:
[exec] (Control Panel) {C:\Windows\explorer.exe ,,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}}

to your menu it will give you an entry which opens up the control panel directly in explorer. The full path makes sure we get the 64-bit explorer, which can open the full control panel. That's the best I've got at the moment


Thanks for the fix! It gives an error, however: "Windows cannot find ',,::{.....} make sure you typed the name correct, and then try again."

I'm running XP Pro x64 SP2.


Sun Jan 06, 2008 9:14 pm
Report this post
Profile
BBDinosaur
User avatar

Joined: Wed Dec 13, 2006 7:33 pm
Posts: 260
Location: Pretoria, South Africa
Reply with quote
Post Re: bblean with better x64 support
Nalif wrote:
How hard is it to re-compile a plugin for x64 support?


It would depend on the plugin. For some it might be as easy as just using the 64-bit compiler and it would just work. Other's might require more changes. I don't really know myself.

Nalif wrote:
Thanks for the fix! It gives an error, however: "Windows cannot find ',,::{.....} make sure you typed the name correct, and then try again."

I'm running XP Pro x64 SP2.

I'm also running XP x64 SP2. I copied that entry from my menu, and it works there. :?
Try opening explorer mannually and then pasting the whole ::{...}\::{...} bit into the address bar and see if it opens the control panel.

You could also try removing the ",," from the menu item. It works without it here, now that I try it.

_________________
Try boxCore! :)
boxCore homepage. Forum thread on lostinthebox.
Bugs, Feature requests


Sun Jan 06, 2008 9:32 pm
Report this post
Profile WWW
BBChild

Joined: Sun Jan 06, 2008 8:03 pm
Posts: 5
Reply with quote
Post Re: bblean with better x64 support
Carsomyr wrote:
...You could also try removing the ",," from the menu item. It works without it here, now that I try it.


Hmm...Weird, that seems to have fixed it. Thanks!

Also, am I correct in assuming that because the x64 control panel is a x64 application, it cannot be skinned? Meaning that as long as bblean is not a x64 executable, x64 applications cannot be skinned?

Also, I'm not sure if it's associated with x64 support or not, but I have a problem with the systray. It persists in the official version of bblean as well as your x64 executable. My firewall is a x64 application. It's called Outpost Firewall Pro. It starts up, and I can see the icon in the systray - if I mouse over it, it even displays it's name and some brief information about the firewall. I can't, however, double click or right click on it. It's just an icon. Normally, it would bring up the firewall properties in another window. Could this be because the systray would need to be rewritten for x64 support?


Sun Jan 06, 2008 10:07 pm
Report this post
Profile
BBDinosaur
User avatar

Joined: Wed Dec 13, 2006 7:33 pm
Posts: 260
Location: Pretoria, South Africa
Reply with quote
Post Re: bblean with better x64 support
Nalif wrote:
Also, am I correct in assuming that because the x64 control panel is a x64 application, it cannot be skinned? Meaning that as long as bblean is not a x64 executable, x64 applications cannot be skinned?

Getting full skinning under x64 windows will probably be the biggest changes needed in a plugin. Because we will need both an 32- and a 64-bit skinning engine running at the same time, and we can't have both loaded in the same blackbox.exe. It would probably require that leanskin be rewritten to be a standalone program that comunicated with a small stub plugin loaded in blackbox.
Nalif wrote:
Also, I'm not sure if it's associated with x64 support or not, but I have a problem with the systray. It persists in the official version of bblean as well as your x64 executable. My firewall is a x64 application. It's called Outpost Firewall Pro. It starts up, and I can see the icon in the systray - if I mouse over it, it even displays it's name and some brief information about the firewall. I can't, however, double click or right click on it. It's just an icon. Normally, it would bring up the firewall properties in another window. Could this be because the systray would need to be rewritten for x64 support?

I use Comodo Firewall Pro (also an x64 app), and it responds fine in the tray. It's possible that Outpost doesn't handle the tray in a standard way, but I could be wrong. Comodo worked fine even under original blackbox, if you started it mannually. Which version of Outpost Pro are you using?

_________________
Try boxCore! :)
boxCore homepage. Forum thread on lostinthebox.
Bugs, Feature requests


Mon Jan 07, 2008 10:13 am
Report this post
Profile WWW
Sponsored Links
Google Adsense


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 57 posts ]  Go to page 1, 2, 3, 4  Next


Who is online

Users browsing this forum: blackcaravan, Google [Bot] and 3 guests


You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.