 |
|
 |
This does not work on Vista
|
|
|
|
 |
|
 |
For secure reasons on Vista we can not broadcast hotkey message to simulate CTRL ALT DEL.
To do this on VISTA you need to use a special library "SASLIB" not provided by default. This library export only one function "SimulateSAS (bool)". To use it it need to ask this library from Microsoft at the email SASXXX@microsoft.com (replace XXX by LIB). Note that this static libraries must be used in conjunction with the Vista SDK requirements, which means that you must at least be using Visual Studio 2005 or the compiler that comes with the Vista SDK to use the library.
bye
|
|
|
|
 |
|
 |
Well, I know that SASLibEx can do that! Use your favorite search engine.
|
|
|
|
 |
|
|
 |
|
 |
I tested it for a some time (on SYSTEM account) and it does not work on WinXP SP2
Does anybody running this on such operating system?
Is it OS limitation or simply may fault?
|
|
|
|
 |
|
 |
mine works on sp2 for multiple computers
|
|
|
|
 |
|
 |
hi Kumar !
You would be a saviour for admins who got to login for courses and lessons at 200+ computers .... I copied your ctrlaltdel.exe into each computer. Then I remotely execute the exe file from my terminal to simulate the CAD combo.
Ctrl Alt Del is simulated successfully.
But I couldn't SendKey the keystrokes to enter the details of UserID and password. Should I amend some things inside the source code to do that ?
|
|
|
|
 |
|
 |
Simply add, keybd_event(...) calls after the PostMessage(...) call and it will work. I'm currently using a modified version of this program to automatically log into a Windows 2000 machine through an RCF client/server setup. Works like a charm.
For example if you want to send an 'A' to the password box after the PostMessage(...) is executed add:
keybd_event(0x41,0,0,0);
See http://msdn.microsoft.com/en-us/library/ms645540(VS.85).aspx[^] for the listing of the key codes.
|
|
|
|
 |
|
 |
How can we send mouse clicks and other key strokes like typing username & password ??
We are developing a Real VNC like application for remote assistance so we need to send mouse clicks and type username & password remotely. When we connect to a machine remotely, it ask to press ALT+CTRL+DEL to continue. With your code are able to get the login screen, But we are not able to click any button or type username & password.
Can you please help us with this or guide in the right direction.
Thanks
|
|
|
|
 |
|
 |
Simply add, keybd_event(...) calls after the PostMessage(...) call and it will work. I'm currently using a modified version of this program to automatically log into a Windows 2000 machine through an RCF client/server setup. Works like a charm.
For example if you want to send an 'A' to the password box after the PostMessage(...) is executed add:
keybd_event(0x41,0,0,0);
See http://msdn.microsoft.com/en-us/library/ms645540(VS.85).aspx[^] for the listing of the key codes.
|
|
|
|
 |
|
|
 |
|
 |
I downloaded the program and executed it, but it wasn't worked. I am running windows XP with SP2. Have someone any idea?
thanks in advance
Joandre
|
|
|
|
 |
|
 |
You have to run the program using the SYSTEM account, because only this account has access to the concerned desktop/windows station.
To do this, among other ways, you can for example use the AT command:
at HH:MM /interactive cmd.exe
This will open a command prompt at the specified time, running from the SYSTEM account. Then in the command prompt you can type the pathname of the executable you want to launch as SYSTEM.
|
|
|
|
 |
|
 |
yes! it really work fine.
|
|
|
|
 |
|
 |
Yes I got when call OpenDesktop function and cannot simulate Ctrl+Alt+Del key sequence...
Any help?!
|
|
|
|
 |
|
 |
may be in some previous versions or without service pack ot was running but on WinXP SP1, you have no chance.
|
|
|
|
 |
|
 |
This CTRL-ALT-DEL simulation tool is cool. I could view this as being a very useful tool if you could then follow it up by sending keys to automatically unlock the screen (assuming the screen is locked to begin with). Just pass the username and password as additional parameters.
|
|
|
|
 |
|
 |
How I use this code in activex to simulate Alt+Control+delete thro' activex
sankul
|
|
|
|
 |
|
 |
in my winxp
i find it can't do anything
why?????
in my winxp
i find it can't do anything
why?????
|
|
|
|
 |
|
 |
hdesk = OpenDesktop("Winlogon", 0, FALSE,
DESKTOP_CREATEMENU |
DESKTOP_CREATEWINDOW |
DESKTOP_ENUMERATE |
DESKTOP_HOOKCONTROL |
DESKTOP_JOURNALPLAYBACK |
DESKTOP_JOURNALRECORD |
DESKTOP_READOBJECTS |
DESKTOP_SWITCHDESKTOP |
DESKTOP_WRITEOBJECTS);
call this function fails ,the hdesk was null.
CodeMan
|
|
|
|
 |
|
 |
U can check that the error you get is 5, Security failure. Try "Default" desktop instead of Winlogon
DavidR
|
|
|
|
 |
|
 |
Hi, how did you get SetThreadDesktop to work, I've created a app that creates a new desktop and when I can SetThreadDesktop I get error code 170. Any ideas ?
|
|
|
|
 |
|
 |
error code 170 means that your application still has opened windows/hooks on its previous desktop, a simple solution is to call SetThreadDesktop as early as possible, in the constructor of your app class, for example.
|
|
|
|
 |
|
 |
so .... can any one of you deactivate these keys using vb and in the vb enviroment ? if anyone knows just email me (lutfi@alhafez.com)
thank u very much...........
|
|
|
|
 |
|
 |
Does anyone know hot to do this??
greetings!
|
|
|
|
 |