Board index » delphi » LAN Manager API

LAN Manager API

Can anyone point me towards some LAN Manager API's for Turbo Pascal?  My
ultimate problem is trying to get the user's Logon name from a Windows
for Workgroups machine, BUT the program has to run under DOS.  It will be
run from an NT logon script and therefore can't be a "Windows" program.  
Any help would be greatly appreciated.

TK

 

Re:LAN Manager API


Quote
tkel...@cednet.com (Tom Kellen) writes:
> Can anyone point me towards some LAN Manager API's for Turbo Pascal?

I would also be interested in this -- there are TONS out there for
NetWare, but many calls to MS Press and hunts through the library only
found me books that document calls in some SDK library.

Quote
> My ultimate problem is trying to get the user's Logon name from a
> Windows for Workgroups machine, BUT the program has to run under DOS.
> It will be run from an NT logon script and therefore can't be a
> "Windows" program.

I've done this -- it's no problem.

use `net /?' -- one of the options (config?  info?  user?) will write
this out to STDOUT.  so your batch file would be something like:

  net info > network.tmp
  find "USER" network.tmp > user.tmp

and then have the programs read `user.tmp'.
--
Russell_Sch...@locutus.ofB.ORG  Shad 86c

Other Threads