|
-
Jul 28th, 2007, 05:27 PM
#1
Thread Starter
Frenzied Member
[RESOLVED] [2005] - Windows Login
Hello
It's possible to create by code an windows account?
And make logins and logouts?
If it's possible can someone tell me how?
I'm talking about windows xp.
Thks
-
Jul 28th, 2007, 05:32 PM
#2
Thread Starter
Frenzied Member
Re: [2005] - Windows Login
i'm talking in vb code!
Not executing external comands!
Thks
-
Jul 29th, 2007, 10:02 AM
#3
Thread Starter
Frenzied Member
Re: [2005] - Windows Login
No one?!?
I have to know this, because i have to finish my application by the end of the week.
If there isn't anyway by code, it can be by windows commands?!
How?
Thks
-
Aug 1st, 2007, 05:10 PM
#4
Thread Starter
Frenzied Member
Re: [2005] - Windows Login
No one knows?
Or isn't posssible?!?!
-
Aug 1st, 2007, 05:33 PM
#5
Re: [2005] - Windows Login
Sorry, never done it, try MSDN or Googling for info. By doing just that I found what I hope may be a useful link here http://www.codeproject.com/useritems...y_in_vbnet.asp
-
Aug 1st, 2007, 06:00 PM
#6
Thread Starter
Frenzied Member
Re: [2005] - Windows Login
Thks Bulldog
I'll have a look later...
What i'm doing to need this. I have a friend that ask me to create an application to control the computer... Like this:
1 - The computer starts
2 - Auto-Login with an administrator account (Done in REG)
3 - Run a FullScreen Program that blocks everything (30%)
4 - Then in that program i have two options, login as administrator (closes my app), login as user (change user at runtime, and login with that account). When the user exit i have to logoff the user and return to the administrator account...
So what i want it's create account (when installing the app), change user\login (when using the app).
-
Aug 11th, 2007, 07:21 AM
#7
Thread Starter
Frenzied Member
Re: [2005] - Windows Login
Anyone can tell me if the Login\Logoff of users can be donne by code?!?!
Or by any type of command in the windows?!!
-
Aug 20th, 2007, 05:01 PM
#8
Thread Starter
Frenzied Member
Re: [2005] - Windows Login
Still stuck with this..
After some reading i find out that the msgina.dll may help me... But i don't know how to do this? Once again if it's possible?!!?
THks
-
Aug 20th, 2007, 05:20 PM
#9
Re: [2005] - Windows Login
What do you need to do this from your friend and/or why does he need to do this?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Aug 20th, 2007, 11:03 PM
#10
Thread Starter
Frenzied Member
Re: [2005] - Windows Login
He have a small bar, with 2 pc's.
These pcs are to the costumers go to the web, for office applications and other stuff...
The point is to limit the time of the session and only authorized users can use the computers.
Thks
-
Aug 20th, 2007, 11:40 PM
#11
Re: [2005] - Windows Login
Oh well they sell software for kiosks and some may be free too. Its allot more secure then trying to write your own. You may want to search for shell replacement.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Aug 21st, 2007, 08:14 AM
#12
Re: [2005] - Windows Login
It's a much better and secure idea to purchase a package to do this. There are some good kiosk and Internet cafe packages around that aren't too expensive. Google on internet cafe software and you'll find a huge number to select from.
If you want to see how to do user impersonation in code, check out this article/code example on my web site: Impersonation Class. It will show you some of the basics of user login management in code but what you're wanting to do goes way beyond that.
-
Aug 21st, 2007, 08:30 AM
#13
Thread Starter
Frenzied Member
Re: [2005] - Windows Login
I'll try to read something about shell replacement.
But I have almost all things done...
The autologon with reg, the create account by code, block everything while runing the application...
The only thing that i hadn't done, it's the switch user\login....
For this i read about impersonation (i think this doesn't work for what i want). About creating a new desktop (good but i have to put all the apps needed by the user in the new one). About the msgina (the api used by the windows to make the login). And now you talk about shell replacement...
What's the most easy to deploy?
By the way i want to write my own!
-
Aug 29th, 2007, 08:37 AM
#14
Thread Starter
Frenzied Member
Re: [2005] - Windows Login
I decided to go a different way, instead of make the login automatic, i send the user to the logon screen. With WTSDisconnectSession (Wtsapi32.dll), and this one needs WTSGetActiveConsoleSessionId (kernell32.dll)...
But i have a simple problem, can anyone tell me the conversion from the variables, like Handle = INtptr, long like ?!?!, dword like?!?
thanks
-
Aug 29th, 2007, 10:23 AM
#15
Re: [2005] - Windows Login
 Originally Posted by mickey_pt
He have a small bar, with 2 pc's.
These pcs are to the costumers go to the web, for office applications and other stuff...
The point is to limit the time of the session and only authorized users can use the computers.
Thks
Based on what you have said, I would write a program that handles all of the functions including user logon's, launching apps, automatic application shut down and user log off after a set period of time. I would then replace the explorer shell application with mine and have only one Windows user that automatically logs on and runs the shell app.
The other thing you would need to handling is Control-Alt-Del so the the task manager doesn't immediately show.
2-cents
kevin
Process control doesn't give you good quality, it gives you consistent quality.
Good quality comes from consistently doing the right things.
Vague general questions have vague general answers. A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.
______________________________ Last edited by kebo : Now. Reason: superfluous typo's
-
Aug 29th, 2007, 02:48 PM
#16
Thread Starter
Frenzied Member
Re: [2005] - Windows Login
Like i said before, the only thing that i can't do, is the login by code, i don't want to replace the shell. So if i can't do the login, i thought in calling the logon screen, and then the user select the "Normal User" Account, then after login, start a timer, and search in the hard drive for a file created by the administrator, with the session time, if the file cannot be found, the user cannot login (return to the logon screen) if the file exists the timer reads the time, and when the time expires calls the logon screen...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|