Create User Profile

I am using delphi v5.  I need to create a user profile in 95,98,NT programmatically.  I would like to copy the profile the user is currently using and use it to create the new profile with.  I would then change to the new profile that I just created.
bowmand1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

EpsylonCommented:
On NT you need NetUserAdd. I'm not going to play around with this function so you or someone else has to do this.
On Win9x you can only log off the current user and login as another. I can't remember the function that does this right now...
0
rwilson032697Commented:
Listening
0
rwilson032697Commented:
This might make for useful reading:

http://support.microsoft.com/support/kb/articles/q196/0/70.asp

Cheers,

Raymond.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

intheCommented:
i have a set of nt components for doing this type of stuff (well components contain all the net() functions but are pain to install)
i was going to say the net functions are only for nt but then i read here:

http://www.mvps.org/win32/network/nt95.html

its seems they can also be used in Win9* ..

Regards Barry

 
0
bowmand1Author Commented:
This looks like it will do what I need, but I do not know much C.  Is there a Delphi example that you can point me at.
Also, was hoping for one solution for all platforms,ie. 95,98,NT, etc.
0
intheCommented:
lmaccess.zip from below url contains the nt units that contain all the net api functions:

http://members.xoom.com/_XMCM/ray_adams/source_codes.htm

they are documented in win32.hlp in your delphi\borland shared\mshelp directory.
0
rwilson032697Commented:
The resources inthe has mentioned should do fine...

Cheers,

Raymond.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.