Hi list,
Does anyone know the appropriate API functions to use (from NT 4.0, 2000
and XP) to logon to a machine remotely. In other words a function I can run
on machine A to logon to machine B (assuming that there is no domain
involved), so that I will then be able to access machine B’s shared
resources from machine A. Thanks, Im a bit stumped on this one.
Garth Brantley, Development Engineer
DeJarnette Research Systems, Inc
(410) 583-0680 x412
(410) 583-0696 fax
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
NetUseAdd
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Brantley, Garth
Sent: Wednesday, January 16, 2002 9:59 AM
To: NT Developers Interest List
Subject: [ntdev] User mode API for logging on to remote machine?
Hi list,
Does anyone know the appropriate API functions to use (from NT 4.0,
2000
and XP) to logon to a machine remotely. In other words a function I can
run
on machine A to logon to machine B (assuming that there is no domain
involved), so that I will then be able to access machine B’s shared
resources from machine A. Thanks, Im a bit stumped on this one.
Garth Brantley, Development Engineer
DeJarnette Research Systems, Inc
(410) 583-0680 x412
(410) 583-0696 fax
You are currently subscribed to ntdev as: xxxxx@owen-t.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Thanks for the info. Apparently WNetAddConnection2 is also a possiblilty.
Im not sure which is better, but someone has told me that NetUseAdd is not
reccomended anymore.
-Garth
-----Original Message-----
From: Owen T. Cunningham [mailto:xxxxx@owen-t.com]
Sent: Wednesday, January 16, 2002 10:05 AM
To: NT Developers Interest List
Subject: [ntdev] RE: User mode API for logging on to remote machine?
NetUseAdd
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Brantley, Garth
Sent: Wednesday, January 16, 2002 9:59 AM
To: NT Developers Interest List
Subject: [ntdev] User mode API for logging on to remote machine?
Hi list,
Does anyone know the appropriate API functions to use (from NT 4.0,
2000
and XP) to logon to a machine remotely. In other words a function I can
run
on machine A to logon to machine B (assuming that there is no domain
involved), so that I will then be able to access machine B’s shared
resources from machine A. Thanks, Im a bit stumped on this one.
Garth Brantley, Development Engineer
DeJarnette Research Systems, Inc
(410) 583-0680 x412
(410) 583-0696 fax
You are currently subscribed to ntdev as: xxxxx@owen-t.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@dejarnette.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
WNetAddConnection3 without the drive letter.
NP DLL will send the necessary IRP to the redirector containing the username and the password, and the latter will do the logon
sequence, leaving the credentials pair in LSA’s cache.
After this, you will be able to delete the connection back. Both SMB and RPC/DCOM will continue to work without asking for passwords
since the credentials are in LSA’s cache till logoff.
Max
----- Original Message -----
From: “Brantley, Garth”
To: “NT Developers Interest List”
Sent: Wednesday, January 16, 2002 5:59 PM
Subject: [ntdev] User mode API for logging on to remote machine?
> Hi list,
> Does anyone know the appropriate API functions to use (from NT 4.0, 2000
> and XP) to logon to a machine remotely. In other words a function I can run
> on machine A to logon to machine B (assuming that there is no domain
> involved), so that I will then be able to access machine B’s shared
> resources from machine A. Thanks, Im a bit stumped on this one.
>
> ---------------------------------------------------------
> Garth Brantley, Development Engineer
> DeJarnette Research Systems, Inc
> (410) 583-0680 x412
> (410) 583-0696 fax
> ---------------------------------------------------------
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com