Login and out from Windows NT Server

We have Windows NT Server 4.0 as fileserver.

In Delphi, how can I login in out from the server not using the Windows NT Workstation NET USE comand?

How to determine if I have already logged in?

hongsikchoiAsked:
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.

intheCommented:
i can send you some components
(just leave your mail address) to do this ,i dunno where i got them but they are free and come with source if you just want to use a couple of the functions instead of installing them all.(contains about 15-20 nt comps all in seperate units)
Regards Barry

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
intheCommented:
they have funbctions like this:

function TNTLogon.Logon:Boolean;
begin
     If Not LogonUser(PChar(FUserName),PChar(FDomain),PChar(FPassword),FLogonType,FLogonProvider,FUserToken) Then
     Begin
          FError:=GetLastError;
          Result:=False;
          Exit;
     End;
     Result:=True;
end;

some of the other functions in the first component are:

 function GetTheUserName:String;
    function GetTheDomainName:String;
    function GetThePassword:String;
    function GetTheLogonType:DWORD;
    function GetTheLogonProvider:DWORD;
    function GetTheToken:THandle;
    function GetTheError:DWORD;
    procedure SetTheUserName(TheValue:String);
    procedure SetTheDomainName(TheValue:String);
    procedure SetThePassword(TheValue:String);
    procedure SetTheLogonType(TheValue:DWORD);
    procedure SetTheLogonProvider(TheValue:DWORD);
    procedure SetTheToken(TheValue:THandle);
    procedure SetTheError(TheValue:DWORD);

and just counted there is 40 comps altogether covering  
- Working with the Event Log
- Managing Users and Groups
- Network functionality

Regards Barry
BorgsAssimilate@Aol.Com
0
brainwareCommented:
inthe, Please send my way too.
brainware@cyberjunkie.dk
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

MadshiCommented:
Hi Barry,

one question: What does "r.r.y." mean?

I mean, "Ba" from "Barry" means evidently "(B)orgs(A)ssimilate", but what about "rry" from "Barry"?

:-))

Would you mind sending me that stuff, too? Thank you...   :-)

Regards, Madshi.
0
intheCommented:
ok i send you too also .. Mad - shi (t)
;-)) Lol
0
hongsikchoiAuthor Commented:
Please send them to me.
My email address is: hongsikchoi@yahoo.com.

I will give you the points after them.

Thank you.
0
intheCommented:
Hi
i have just sent them
hope they are ok.
Regards Barry
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.