How to display login form...?

Can anyone help me out, this is urgent ...
I have created a login form, how can i display the login form each time when windows start up?
I mean i want the form to be display once the windows logon form is displayed...
or anyways i can replace the windows logon form with my login form?

p/s: sorry for my bad english explaination ...Tongue Tied

[417 byte] By [jerrylhl] at [2007-12-16]
# 1
There really isn't support for replacing the Windows login form, it's a security issue that I expect is blocked.

The Login form provided in Visual Basic is for logging in to your application.

DavidGuyerMS at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 2
i know it's impossible to replace the windows login form, but is there anyway to display my login form right after the user login to the windows? thanks...
jerrylhl at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 3
replacing ur login with windows standard login is possible as far as u consider replacing the resources like image,button n text on the login but the actual coding u can't do bcoz it interacts with ur .sam files n registery and is a security issue..
however u can do it afterwords..
by placing it in widows startup folder..
n calling from it lockworkstation or lockcomputer function from api..
which will not let anybody access ur computer until he gives proper password..
ashtified_85
AshishYadav at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 4
Ashish,

Thanks for ur solutions... im newbie in VB.Net, can u show me the code or solutions on how to call the lockcomputer or lockwindows api?
Jerry

jerrylhl at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 5
Anyone know how to use Windows lockcomputer API from VB.Net application?
I need it urgently ... thanks ....
jerrylhl at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 6
You can find info on the LockWorkStation API at the following link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/lockworkstation.asp

To use it in VB.Net you would use the following code:



Declare Function LockComputer Lib "user32.dll" Alias "LockWorkStation" () as Boolean

To use it from your code simply call:



Dim result as boolean = LockComputer()


Hope this helps.

KrisLa_MS at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 7
thank you, but i realize that lockcomputer will log off the current user and back to the window login screen, which is not what i want...Sad
i have a login screen, how can i disable all the activities from the user before they login using my vb.net application? (my application is a login form!)
p/s: hope that i dint confuse all the "expert" here, anyone have a ny solutions, please suggest here, i really need it urgently, thanks a lot ..... thanks!!!
jerrylhl at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 8
Depending on how integrated you want to be, and how keen you are Jerry, try this;

http://sourceforge.net/projects/pgina

http://www.samag.com/documents/s=7666/sam0211f/0211f.htm

The above links will give you information on how to replace the standard Windows GINA (Graphical Identification aNd Authentication) with a customised one.

Pretty extreme stuff, but that is what you are asking for.

An alternative would be to replace the Windows Shell which is normally Explorer;

http://www.winguides.com/registry/display.php/849/

Another option is if you are using Terminal Services you can specify a specific program to run when the user connects (not much good if you are not using TS).

Regards,

Grant.

GrantCarthew at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 9
I haven't done it, but I would expect that you could effectively just point the shell designation in the registry to your application that could then call Explorer to launch after they authenticate within your program or something similar.

Replacing the GINA is probably the most professional and secure way to go if I am understanding your question though.

Naldiian at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 10
replacing the msGINA is a bit too extreme for me...haha
so can u tell me which one is easier for replacing GINA or the window shell?
Can u tell me more about the method of window shell ?
Thanks ....
jerrylhl at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 11
can u suggest me on how to do it by ur way ? actually i just need to lockup and unlock the desktop with my own created program ...... anyone can suggest me on how to do that ?
jerrylhl at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 12
Jerry, I suggest you spend a little more time searching the web. You need to learn how to find the answers. I am not being rude, just trying to help. Big Smile

Try this;

http://www.shell-shocked.org/article.php?id=133

Regards,

Grant.

GrantCarthew at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 13
Thank you Grant, you really provided so much info for me.... i think i'll learn from there ....Big Smile i'm still new in IT lines ... thanks for ur suggestion ... any further question i'll ask here, and i hope u won't mind to answer, would u ?
jerrylhl at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...