Or just call an API function or something to unlock
windows passing it the username and password as parameters
(if needed).
Please advise how to do this or when can I get more info
on this.
thanks
rafael
"Rafael Chemtob" <rche...@nospam.yahoo.com> wrote in message
news:03fa01c36b2f$8bddf500$a101...@phx.gbl...
> I want to create a VB app that will run on the windows
It cannot be done. From the documentation for the LockWorkstation() API
function:
This function has the same result as pressing Ctrl+Alt+Del and clicking Lock
Workstation. To unlock the workstation, the user must log in.
In other words, there is no programmatic way to UNlock a workstation. Don't
beat your head against a wall trying to make it happen.
VNC does it.
Andrew Faust
I have to dispute this. VNC can do it. I don't know how
it
does it exactly, but you can connect to a machine that
is locked
and send the CTL+ALT+DEL, then enter the username and
password all from a remote location.
Granted, I don't know how to do it, and it may be
really hard
but technically it can be done.
Andrew Faust
"Rafael Chemtob" <rche...@nospam.yahoo.com> wrote in message
news:03fa01c36b2f$8bddf500$a101...@phx.gbl...
You cannot send the ctrl+alt+delete keystrokes in win2k or above by using
standard windows API calls.
"Andrew Faust" <afa...@aradyme.com.REMOVE> wrote in message
news:elTxIx0a...@TK2MSFTNGP09.phx.gbl...
Fair enough. I for one have no idea how VNC does it, but it is open
source so if someone is feeling adventuresom, they can read through
the code and find it for us.
Andrew Faust
// Switch into the Winlogon desktop
if (!vncService::SelectDesktop("Winlogon"))
{
log.Print(LL_INTERR, VNCLOG("failed to select logon desktop\n"));
return FALSE;
}
log.Print(LL_ALL, VNCLOG("generating ctrl-alt-del\n"));
// Fake a hotkey event to any windows we find there.... :(
// Winlogon uses hotkeys to trap Ctrl-Alt-Del...
PostMessage(HWND_BROADCAST, WM_HOTKEY, 0, MAKELONG(MOD_ALT | MOD_CONTROL, VK_DELETE));
// Switch back to our original desktop
if (old_desktop != NULL)
vncService::SelectHDESK(old_desktop);
return NULL;
}
"Andrew Faust" <afa...@aradyme.com.REMOVE> wrote in message news:OQOJYp1a...@TK2MSFTNGP10.phx.gbl...
I have no idea what VNC is, but perhaps it replaces Windows' GINA.DLL file
with its own.
Mike
> I have no idea what VNC is, but perhaps it replaces Windows' GINA.DLL file
> with its own.
No, it doesn't. VNC is Virtual Network Computing. It's like Terminal
Server/Remote Desktops, but it works with Windows, Macs, and *NIX.
So....is VNC a company? A product? A technology?
Mike
It's a freebie (at least it used to be) pcAnywhere work-alike.
"MikeD" <nob...@nowhere.edu> wrote in message
news:%237Mq0u3...@TK2MSFTNGP09.phx.gbl...
>.
>
--
Veign
Chris Hanscom
http://www.veign.com
Application Design Section
http://www.veign.com/information/application/info_app.html
------
"Mike C." <non...@nonet.net> wrote in message
news:uOAY7E4a...@TK2MSFTNGP09.phx.gbl...
Thanks!
Mike C.
"Veign" <NOSPAM...@veign.com> wrote in message
news:u1lXgf9a...@TK2MSFTNGP10.phx.gbl...
--
Veign
Chris Hanscom
http://www.veign.com
Application Design Section
http://www.veign.com/information/application/info_app.html
------
"Mike C." <non...@nonet.net> wrote in message
news:eZTfBM%23aDH...@TK2MSFTNGP12.phx.gbl...
I guess it wasn't too hard to find afterall then? What I find interesting
is that they do just use a standard API call (PostMessage) but they
have to fake it as being a hotkey. That's just one of those neat
little things that most people would never have thought to try.
Andrew Faust
They spawned off to do their own thing, but not by choice. AT&T closed
the research lab where they all worked.
Andrew Faust
"Andrew Faust" <afa...@aradyme.com.REMOVE> wrote in message news:e0YkiPA...@tk2msftngp13.phx.gbl...