SourceForge.net Logo

srv_winman

Windows Manager Plugin
Sumary

Description: WinMan, a.k.a. Window Manager, allows you to control widnows, hide/show them, disable special key combinations (Ctrl-Alt-Del, Alt-Tab...), hide the desktop, hide/show the taskbar, and more.

Version: 1.0
Autor: Javier Aroche (j_aroche AT users DOT sourceforge DOT net)
Developer/Plugin Website: WinMan page.
Download for:
BOXP version Size Link
BOXP Beta 7 31 kB Download
BOXP Beta 6 33 kB Download
BO2K 1-3 Beta 5 32 kB Download


WinMan Readme file

Windows Manager Plugin for Back Orifice XP
Copyright (c) 2,001-2,004 Javier Aroche
Version 1.2 Final Release.
THIS IS A FINAL RELEASE VERSION, YOU CAN REDISTRIBUTE THIS VERSION


Description


WinMan is a plugin for the great remote administration suite Back Orifice XP (BOXP). This is a plugin to take the control of the windows that the applications use in MS Windows. You can use this very smartly for control and restrict the access to server machine. This the useful one for the administrators that need the users to not enter to where they don't should.

If you want to limit the user, first you can start certain application. Then disable the special keys (Ctrl-Esc, Alt-Tab, Ctrl-Alt-Del), later hide or close the takbar, hide the desktop and clip the cursor to the application's main window that you want and that is everything.

Commands


List Main Widows

It list the main windows that has the applications, the taskbar and the desktop. Returns a list of main windows that has: The window handle, the process ID, the process file name, the window text and the class name.


List Child Windows

Obtains the list of the windows sisters or children of the window hWnd, as it is specified in Action. If hWnd is zero, it lists all the windows children of the Desktop, else list the windows sisters or children of hWnd. Returns a list of main windows that has: The window handle, the process ID, the process file name, the window text, the class name, if is enabled and if is visible.
Parameters:
Action - If it's 0 list the sisters windows, if is 1 list the children windows.
hWnd - The window handle to get his sisters or children.
Visible - If it's 0 list All windows, if is 1 list only the visible windows.


Find Window

Find the window whose class name and/or window title match with the specified strings. This function does search children windows. This function does not perform a case-sensitive search. If you specify the parameters 'class name' and 'windows text', it return a list that fulfill with the two parameters.
Parameters:
Class Name - Find this string in all windows and return a list of windows that contains it.
Window Text - Find this string in all windows and return a list of windows that contains it.


Dump password fields

This list the content of all password fields that are displayed. The old command 'Set Password Char' it isn't useful because you need to be present in the remote machine to see the password in the field, but with this new command you can get the password too easy without the permission of the remote user. :-)


Close Window

It close the window specify in hWnd.
Parameters:
hWnd - The window handle to close.


Disable Window

It Enable or disable the window specify in hWnd.
Parameters:
Action - If is zero Disable else Enable.
hWnd - The window handle to disable or enable.


Hide Window

It Hide or show the window specify in hWnd.
Parameters:
Action - If is zero hide else show.
hWnd - The window handle to hide or show.


Set Window Text

It set the text on the title bar or the caption (in controls) of the window specify in hWnd.
Parameters:
hWnd- The window handle to change the text.
Window text - The text to set.


Put on top

It set the window on top of all windows. The user can't send it to back, only can minimize.
Parameters:
Action - If it's zero removes of on top else it puts on top.
hWnd - The window handle to change position.


Set Focus

It set the window specify in hWnd at the foreground. The old BUG was repaired, thanks to genedrien.
Parameters:
hWnd - The window handle to set in the foreground.

Set Window Position

Changes the Window position to one of these states: Normal, Minimized or Maximized.
Parameters:
Action - Is is 0 minimizes the window, if is 1 maximizes the window, and if is 2 puts at normal position.
hWnd - The window handle to set in the foreground.


Clip Cursor to Window

Confines the cursor to the client area of the window. The user can't move the mouse out the limits of the client area.
BUG: When a window is moved, the cursor is liberated, I don't know how to control it.
Parameters:
hWnd - The window handle to "capture" the cursor.


Clip Cursor to Rect

Confines the cursor to a rectangular area. Some times if the rectangle is very small, Windows only locks the cursor.
Parameters:
Rect [left, top, right, bottom] - The rectangle coordinates must be in pixels.


Release Clipping Cursor

Frees the cursor from any rectangle that limits it.


Disable HotKeys

It Disables/Enables the Ctrl+Esc, Alt+Tab, Ctrl+Alt+Del and other hot keys.
Parameters:
Action - If is zero disables else enables.


Minimize All Windows

This minimizes all application's main windows in the Taskbar.


Lock-up Station

This yes it will be very useful!, it allows to block the computer totally and it is impossible that the user recovers the total control. Draws a black rectangle over all windows, disables the keyboard, block the mouse, also says the administrator's message.
Parameters:
Message - It's a message to write on the black rectangle.


Lock-down Station

Redraw all windows, enables the keyboard and free the mouse, the user takes the control.

Interesting Window Classes


This is a list of window classes that for me and you can result useful to hide or kill:

In the Taskbar:

Shell_TrayWnd - The taskbar window.
Button - The Start Button.
TrayNotifyWnd - The SysTray window.
TrayClockWClass - The clock system.
ReBarWindow32 - The bars section.
MSTaskSwWClass - The tasks section.
ToolbarWindow32 - Other bars in the taskbar, like as quick launch.
In the Desktop:

Program Manager - The desktop window.
SysListView32 - The listview control that contains the icons.
Internet Explorer_Server - The Active Desktop window.

License


This program is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.

If you do redistribute or modify it, please let me know.


History


V1.2, 31-Ago-03
  • Compatible with boxp.
  • Final stable release. Just is planned move the plugin string to structure, for future support of multi-languages.
V1.1, 15-Set-03
  • Ported to bo2k v1.3.
  • Added the new command Set Window Position.
V1.0, 23-Oct-02
  • Finally.... I have finished the final version of WinMan, considered stable.
  • It is the first plugin for BO2K in Spanish and English.
  • As always minor bug fixes.
Considerable changes in the code, I believe that it is in their best level.
  • The problem passing the focus to the windows was repaired, thanks genedrien.
  • Final file reduced in 4 KB.
V0.99, 18-Jul-02
  • I changed the command 'Set password char' by 'Dump password fields' that is too useful.
  • I optimize some commands and removed some trash.
  • Now WinMan uses my "multi-language system".
  • The Spanish version and his documentation will be released in the final version (v1.0).
  • Bug fixed on InstallPlugin proc.
  • Bug fixed on Lock-up Station, The API CreateWindow have problems with the Bo2k Dll Load. It don't has a easy solution, better I not used a window to lock, now I draw a black rectangle to do the lock.
  • This is the last beta version.
V0.98, 13-Jun-02
  • I add three new commands: Find window, Lock-up Station and Lock-down Station. No bugs fixes.
V0.95, 24-Abr-02
  • This is the first release as beta, I think that it is clever to leave to the world.

Contact


Questions or comments and bug reports? Please send me an e-mail: j_aroche AT users DOT sourceforge DOT net.

Conclusions


The source code provided in the WinMan distribution is free for you to modify according to the terms of the GNU Public License. Feel free to make any changes you see fit. If you do make changes, please send them to me. I would very much like to hear your comments on my work and take ideas of your changes.

WinMan was compiled using Visual C++ 6.0 SP5.

"I (The Author) hold no Responsibility for any actions you foolish do with the program. This program was written for knowledge and fun. Using this is strictly at your own risk, and you can not hold the Author of WinMan responsible for your actions and by the use and misuse of this software."

Javier Aroche
Yo pienso muy diferente


All other registered and unregistered trademarks in this document and others, are the sole property of their respective owners.


- © 2,001-2004 Javier Aroche -


Last Modification: Mon 12 2005f September, 2005 [22:25] by Javier Aroche. Hits: 523


Smaug (C) 2004-2005 Javier Aroche