|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| alexprg1920 (19) | |
|
hello! i need my service to be runned before user login. how to do it? help | |
|
|
|
| alexprg1920 (19) | |
|
tanks a lot, but i have some problems. may be, in xp i need to do other actions? | |
|
|
|
| alexprg1920 (19) | |
|
I cann't find how to run it before user login in windows xp :( hint, please | |
|
|
|
| kbw (3825) | |
| Make it auto start. | |
|
|
|
| alexprg1920 (19) | |
|
Ok, thanks, kbw! And now the most important part) I need to login from this service... Explanation I have hook-function. I need, when i pressed some combination of keys, to login. F. E. string login="..."; string password="..."; when i press ctrl+alt+L i want my program to try to login using these parameters. Need help, advise or link... | |
|
|
|
| kbw (3825) | |
| No, a service can run under the local system account. | |
|
|
|
| alexprg1920 (19) | |
|
Hm... So, there is no way to do this?... I mean, i need to control logining | |
|
|
|
| Kiana (186) | |
Haha, I guess you could use SetWindowText to set the text of the username & password boxes, then send a BN_CLICK message with SendMessage to the Login button. (or send a VK_RETURN keydown message to either textbox)
| |
|
Last edited on
|
|
| alexprg1920 (19) | |
|
Oh, i've got you! rather interesting! but can you explain more a bit? F.E. SetWindowText... For what window? I mean, name of it. And hwnd must be NULL or not? And smth like that | |
|
|
|