![]() |
|
Mark_
|
int __stdcall SbieApi_EnumBoxes(int num, wchar_t *name) name can be max 32 chars, so atleast malloc( 32*2+2 ) first call, for num use -1 after that, use for num the return of the previous call, until num == -1 |
||||||||||||||
|
|
|||||||||||||||
|
tzuk
|
The following function enumerates the list of sandboxes, one at a time.
Returns the index number to use for the next call. Sample code:
* * * The following function gets the list of sandboxed programs for a specific sandbox in the current, in some other, or in all logon sessions.
Parameters: box_name – the sandbox name all_sessions – if TRUE, collects information from all logon sessions while ignoring the which_session parameter. If FALSE, the which_session parameter selects the session. which_session – if all_sessions is FALSE, specified the session number. Can specify -1 for the current session. boxed_pids – an array of 512 ULONGs. On return, the first ULONG specifies the number of processes returned in the rest of array. The second ULONG specifies the process ID of the first sandboxed process. The third ULONG specifies the process ID of the second sandboxed process. And so on. Returns zero on success. On failure, boxed_pids[0] is set to zero. Note that boxed_pids[0] can also be set to zero on successful completion, if there are no sandboxed processes matching the parameters. * * * This description is no guarantee that the API will never change. Use at your own risk. |
||||||||||||||||||
|
_________________ tzuk |
|||||||||||||||||||
|
Micahs
|
Thanks for the info! I'll look into incorporating it.
|
||||||||||||
|
|
|||||||||||||
|
wraithdu
|
For giggles, some sample AutoIt code (should be pretty close to AHK):
|
||||||||||||||
|
Last edited by wraithdu on Thu Jan 22, 2009 6:58 pm; edited 1 time in total |
|||||||||||||||
|
Micahs
|
I'm giggling like a schoolgirl. Thanks!
|
||||||||||||
|
|
|||||||||||||
|
wraithdu
|
n/m
fixed above |
||||||||||||
|
Last edited by wraithdu on Thu Jan 22, 2009 6:57 pm; edited 1 time in total |
|||||||||||||
|
Mark_
|
not entirely true, you can stick with ULONG, and use 0xffffffff instead of -1 -1 (signed) == 0xffffffff(unsigned) |
||||||||||||||
|
|
|||||||||||||||
|
wraithdu
|
Well yes, but he specifically said -1. What does that value become when assigned to a ULONG variable? Is it converted to 0xffffffff or 1 or fails with an error?
EDIT - -1 gets converted to 0xffffffff when assigned to a ULONG variable. I suppose it doesn't matter, it works either way (I'll edit my code above anyway). |
||||||||||||
|
|
|||||||||||||
|
Micahs
|
Here is the new version which supports multiple borders: borderGuard_multi
New features:
I have not added the api calls to the dll yet. |
||||||||||||
|
|
|||||||||||||
|
Mark_
|
looks nice,
but: >>Reverse sandboxed windows (Experimental) what does it mean? |
||||||||||||
|
|
|||||||||||||
|
Guest
|
Thanks Micahs, but this one isn't working for me.
I don't see any colored borders with it at all. Oddly enough, reversed windows work fine (if I manually enable them) - but colored borders themselves are a no go. If I back-level to the previous borderGuard release (with an EXE dated 2008-11-05), the borders work fine again. I'm using Sandboxie 3.34 and the default borderGuard.ini file you included with the new "multi" package. Any other info you would need? |
||||||||||||
|
|
|||||||||||||
|
tzuk
|
Micahs, per the discussion here, there is a new Contributed Utilities page. Let me know if you want to add your utility there.
|
||||||||||||
|
|
|||||||||||||
|
Micahs
|
@Guest
I'm not sure what the problem could be. What os are you using? The new version uses SetWindowPos to size, move, and position the borders. This is really the only major change in the way it does its thing. If you are using Vista it may have an issue with this api call. My dad has a Vista laptop, so I can do some testing. Anyone else having this issue? @Mark_ "Reverse sandboxed windows"
Just what it sounds like! @tzuk Yeah, if you think it's good enough, sure. Thanks! (Assuming I can get the bugs out!) |
||||||||||||
|
|
|||||||||||||
|
Micahs
|
HERE is a new version that uses the SWP_FRAMECHANGED flag to (hopefully) force the window update. If this does not work, I can try some other things instead. I will borrow my dad's computer with Vista to do some testing.
|
||||||||||||
|
|
|||||||||||||
| Border sandboxed indicator |
|
||
|


Use the RSS feed to watch this topic for replies