Need to get the domain name of local computer on NT4 using only Win32 API calls

Need to get the domain name of local computer on NT4 using only Win32 API calls

Post by Cristian Scutar » Thu, 19 Dec 2002 15:35:56



Hi,

I'm looking for  a Win32 API function on NT4 able to easily return the
domain name of the local computer (or a sequence of code using just Win32
API calls on NT4). I cannot use external COM components or other imported
DLLs. If someone has also this sequence of code in VB6, this would be an
additional bonus :-).

Thanks so much,

Cristian S.


 
 
 

Need to get the domain name of local computer on NT4 using only Win32 API calls

Post by arkady » Fri, 20 Dec 2002 14:38:28


NetWkStaGetInfo()

Arkady


> Hi,

> I'm looking for  a Win32 API function on NT4 able to easily return the
> domain name of the local computer (or a sequence of code using just Win32
> API calls on NT4). I cannot use external COM components or other imported
> DLLs. If someone has also this sequence of code in VB6, this would be an
> additional bonus :-).

> Thanks so much,

> Cristian S.




 
 
 

Need to get the domain name of local computer on NT4 using only Win32 API calls

Post by Yan-Hong Huang[MSF » Fri, 20 Dec 2002 16:38:28


Hi Cristian,

HOWTO: Retrieve Current User and Domain Names on Windows Q155698

HOWTO: Retrieve Current User and Domain Names on Windows NT, Windows 2000,
or Windows XP Q111544

Hope them help.

Best regards,
yhhuang
VS.NET, Visual C++
Microsoft

This posting is provided "AS IS" with no warranties, and confers no rights.
Got .Net?  http://www.gotdotnet.com
--------------------

!Newsgroups:
microsoft.public.win32.programmer.networks,microsoft.public.windowsnt.misc,m
icrosoft.public.windowsnt.protocol.tcpip
!Subject: Need to get the domain name of local computer on NT4 using only
Win32 API calls
!Lines: 16
!X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

!Date: Wed, 18 Dec 2002 01:35:56 -0500
!NNTP-Posting-Host: 24.201.115.194

!X-Trace: wagner.videotron.net 1040246442 24.201.115.194 (Wed, 18 Dec 2002
16:20:42 EST)
!NNTP-Posting-Date: Wed, 18 Dec 2002 16:20:42 EST
!Path:
cpmsftngxa06!TK2MSFTNGP08!cppssbbsa01.microsoft.com!news-out.cwix.com!newsfe
ed.cwix.com!nntp1.roc.gblx.net!nntp.gblx.net!nntp.gblx.net!news-peer.gip.net
!news.gsl.net!gip.net!snoopy.risq.qc.ca!wesley.videotron.net!wagner.videotro
n.net.POSTED!not-for-mail
!Xref: cpmsftngxa06 microsoft.public.windowsnt.misc:327734
microsoft.public.windowsnt.protocol.tcpip:72284
microsoft.public.win32.programmer.networks:3576
!X-Tomcat-NG: microsoft.public.win32.programmer.networks
!
!Hi,
!
!I'm looking for  a Win32 API function on NT4 able to easily return the
!domain name of the local computer (or a sequence of code using just Win32
!API calls on NT4). I cannot use external COM components or other imported
!DLLs. If someone has also this sequence of code in VB6, this would be an
!additional bonus :-).
!
!Thanks so much,
!
!Cristian S.
!

!
!
!
!

 
 
 

Need to get the domain name of local computer on NT4 using only Win32 API calls

Post by Cristian Scutar » Sun, 22 Dec 2002 08:19:05


Thanks, it helps, but I really hopped NT to have also a single function to
do this (like 2000), cause I have to translate that sequence of C API calls
to VB6 ;-(.


> Hi Cristian,

> HOWTO: Retrieve Current User and Domain Names on Windows Q155698

> HOWTO: Retrieve Current User and Domain Names on Windows NT, Windows 2000,
> or Windows XP Q111544

> Hope them help.

> Best regards,
> yhhuang
> VS.NET, Visual C++
> Microsoft

> This posting is provided "AS IS" with no warranties, and confers no
rights.
> Got .Net?  http://www.gotdotnet.com
> --------------------

> !Newsgroups:

microsoft.public.win32.programmer.networks,microsoft.public.windowsnt.misc,m
> icrosoft.public.windowsnt.protocol.tcpip
> !Subject: Need to get the domain name of local computer on NT4 using only
> Win32 API calls
> !Lines: 16
> !X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
> !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

> !Date: Wed, 18 Dec 2002 01:35:56 -0500
> !NNTP-Posting-Host: 24.201.115.194

> !X-Trace: wagner.videotron.net 1040246442 24.201.115.194 (Wed, 18 Dec 2002
> 16:20:42 EST)
> !NNTP-Posting-Date: Wed, 18 Dec 2002 16:20:42 EST
> !Path:

cpmsftngxa06!TK2MSFTNGP08!cppssbbsa01.microsoft.com!news-out.cwix.com!newsfe
ed.cwix.com!nntp1.roc.gblx.net!nntp.gblx.net!nntp.gblx.net!news-peer.gip.net
!news.gsl.net!gip.net!snoopy.risq.qc.ca!wesley.videotron.net!wagner.videotro

- Show quoted text -

> n.net.POSTED!not-for-mail
> !Xref: cpmsftngxa06 microsoft.public.windowsnt.misc:327734
> microsoft.public.windowsnt.protocol.tcpip:72284
> microsoft.public.win32.programmer.networks:3576
> !X-Tomcat-NG: microsoft.public.win32.programmer.networks
> !
> !Hi,
> !
> !I'm looking for  a Win32 API function on NT4 able to easily return the
> !domain name of the local computer (or a sequence of code using just Win32
> !API calls on NT4). I cannot use external COM components or other imported
> !DLLs. If someone has also this sequence of code in VB6, this would be an
> !additional bonus :-).
> !
> !Thanks so much,
> !
> !Cristian S.
> !

> !
> !
> !
> !

 
 
 

Need to get the domain name of local computer on NT4 using only Win32 API calls

Post by arkady » Mon, 23 Dec 2002 15:23:27


NetWkStaGetInfo() work on all NT kernel OSes ( from NT 3.1 ) and
possible to call it W9x too.
Arkady


> Thanks, it helps, but I really hopped NT to have also a single function to
> do this (like 2000), cause I have to translate that sequence of C API
calls
> to VB6 ;-(.



> > Hi Cristian,

> > HOWTO: Retrieve Current User and Domain Names on Windows Q155698

> > HOWTO: Retrieve Current User and Domain Names on Windows NT, Windows
2000,
> > or Windows XP Q111544

> > Hope them help.

> > Best regards,
> > yhhuang
> > VS.NET, Visual C++
> > Microsoft

> > This posting is provided "AS IS" with no warranties, and confers no
> rights.
> > Got .Net?  http://www.gotdotnet.com
> > --------------------

> > !Newsgroups:

microsoft.public.win32.programmer.networks,microsoft.public.windowsnt.misc,m

- Show quoted text -

> > icrosoft.public.windowsnt.protocol.tcpip
> > !Subject: Need to get the domain name of local computer on NT4 using
only
> > Win32 API calls
> > !Lines: 16
> > !X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
> > !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

> > !Date: Wed, 18 Dec 2002 01:35:56 -0500
> > !NNTP-Posting-Host: 24.201.115.194

> > !X-Trace: wagner.videotron.net 1040246442 24.201.115.194 (Wed, 18 Dec
2002
> > 16:20:42 EST)
> > !NNTP-Posting-Date: Wed, 18 Dec 2002 16:20:42 EST
> > !Path:

cpmsftngxa06!TK2MSFTNGP08!cppssbbsa01.microsoft.com!news-out.cwix.com!newsfe
ed.cwix.com!nntp1.roc.gblx.net!nntp.gblx.net!nntp.gblx.net!news-peer.gip.net
!news.gsl.net!gip.net!snoopy.risq.qc.ca!wesley.videotron.net!wagner.videotro

- Show quoted text -

> > n.net.POSTED!not-for-mail
> > !Xref: cpmsftngxa06 microsoft.public.windowsnt.misc:327734
> > microsoft.public.windowsnt.protocol.tcpip:72284
> > microsoft.public.win32.programmer.networks:3576
> > !X-Tomcat-NG: microsoft.public.win32.programmer.networks
> > !
> > !Hi,
> > !
> > !I'm looking for  a Win32 API function on NT4 able to easily return the
> > !domain name of the local computer (or a sequence of code using just
Win32
> > !API calls on NT4). I cannot use external COM components or other
imported
> > !DLLs. If someone has also this sequence of code in VB6, this would be
an
> > !additional bonus :-).
> > !
> > !Thanks so much,
> > !
> > !Cristian S.
> > !

> > !
> > !
> > !
> > !

 
 
 

Need to get the domain name of local computer on NT4 using only Win32 API calls

Post by Yan-Hong Huang[MSF » Tue, 24 Dec 2002 17:51:32


Hi Cristian,

NetWkstaGetInfo()

Requirements
Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Unsupported.
Header: Declared in Lmwksta.h; include Lm.h.
Library: Use Netapi32.lib.

Best regards,
yhhuang
VS.NET, Visual C++
Microsoft

This posting is provided "AS IS" with no warranties, and confers no rights.
Got .Net?  http://www.gotdotnet.com
--------------------

!Newsgroups: microsoft.public.win32.programmer.networks


!Subject: Re: Need to get the domain name of local computer on NT4 using
only Win32 API calls
!Lines: 74
!X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

!Date: Fri, 20 Dec 2002 18:19:05 -0500
!NNTP-Posting-Host: 24.201.115.194

!X-Trace: wagner.videotron.net 1040426330 24.201.115.194 (Fri, 20 Dec 2002
18:18:50 EST)
!NNTP-Posting-Date: Fri, 20 Dec 2002 18:18:50 EST
!Path:
cpmsftngxa09!cpmsftngxa10!cpmsftngxa06!cpmsftngxa08!cppssbbsa01.microsoft.co
m!news-out.cwix.com!newsfeed.cwix.com!news-peer.gip.net!news.gsl.net!gip.net
!snoopy.risq.qc.ca!wesley.videotron.net!wagner.videotron.net.POSTED!not-for-
mail
!Xref: cpmsftngxa09 microsoft.public.win32.programmer.networks:3691
!X-Tomcat-NG: microsoft.public.win32.programmer.networks
!
!Thanks, it helps, but I really hopped NT to have also a single function to
!do this (like 2000), cause I have to translate that sequence of C API calls
!to VB6 ;-(.
!

!> Hi Cristian,
!>
!> HOWTO: Retrieve Current User and Domain Names on Windows Q155698
!>
!> HOWTO: Retrieve Current User and Domain Names on Windows NT, Windows
2000,
!> or Windows XP Q111544
!>
!> Hope them help.
!>
!> Best regards,
!> yhhuang
!> VS.NET, Visual C++
!> Microsoft
!>
!> This posting is provided "AS IS" with no warranties, and confers no
!rights.
!> Got .Net?  http://www.gotdotnet.com
!> --------------------

!> !Newsgroups:
!>
!microsoft.public.win32.programmer.networks,microsoft.public.windowsnt.misc,
m
!> icrosoft.public.windowsnt.protocol.tcpip
!> !Subject: Need to get the domain name of local computer on NT4 using only
!> Win32 API calls
!> !Lines: 16
!> !X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
!> !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

!> !Date: Wed, 18 Dec 2002 01:35:56 -0500
!> !NNTP-Posting-Host: 24.201.115.194

!> !X-Trace: wagner.videotron.net 1040246442 24.201.115.194 (Wed, 18 Dec
2002
!> 16:20:42 EST)
!> !NNTP-Posting-Date: Wed, 18 Dec 2002 16:20:42 EST
!> !Path:
!>
!cpmsftngxa06!TK2MSFTNGP08!cppssbbsa01.microsoft.com!news-out.cwix.com!newsf
e
!>
!ed.cwix.com!nntp1.roc.gblx.net!nntp.gblx.net!nntp.gblx.net!news-peer.gip.ne
t
!>
!!news.gsl.net!gip.net!snoopy.risq.qc.ca!wesley.videotron.net!wagner.videotr
o
!> n.net.POSTED!not-for-mail
!> !Xref: cpmsftngxa06 microsoft.public.windowsnt.misc:327734
!> microsoft.public.windowsnt.protocol.tcpip:72284
!> microsoft.public.win32.programmer.networks:3576
!> !X-Tomcat-NG: microsoft.public.win32.programmer.networks
!> !
!> !Hi,
!> !
!> !I'm looking for  a Win32 API function on NT4 able to easily return the
!> !domain name of the local computer (or a sequence of code using just
Win32
!> !API calls on NT4). I cannot use external COM components or other
imported
!> !DLLs. If someone has also this sequence of code in VB6, this would be an
!> !additional bonus :-).
!> !
!> !Thanks so much,
!> !
!> !Cristian S.
!> !

!> !
!> !
!> !
!> !
!>
!
!
!

 
 
 

Need to get the domain name of local computer on NT4 using only Win32 API calls

Post by arkady » Tue, 24 Dec 2002 19:43:40


It's do possible to call it in W9x too either by writing 16bit thunk which
call
16bit  NetWkstaGetInfo() ( Q155698 of KB MSDN ) or by
using radmin32.dll which exports NetWkstaGetInfoA() in W9x.
http://groups.google.com/groups?hl=en&lr=&threadm=%2379%23OCa8BHA.230...
sftngp03&rnum=4&prev=/groups%3Fq%3Darkadyf%2BNetWkStaGetInfo%26hl%3Den%26lr%
3D%26sa%3DG%26scoring%3Dd
( beware of wrap )

Arkady


> Hi Cristian,

> NetWkstaGetInfo()

> Requirements
> Windows NT/2000/XP: Included in Windows NT 3.1 and later.
> Windows 95/98/Me: Unsupported.
> Header: Declared in Lmwksta.h; include Lm.h.
> Library: Use Netapi32.lib.

> Best regards,
> yhhuang
> VS.NET, Visual C++
> Microsoft

> This posting is provided "AS IS" with no warranties, and confers no
rights.
> Got .Net?  http://www.gotdotnet.com
> --------------------

> !Newsgroups: microsoft.public.win32.programmer.networks


> !Subject: Re: Need to get the domain name of local computer on NT4 using
> only Win32 API calls
> !Lines: 74
> !X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
> !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

> !Date: Fri, 20 Dec 2002 18:19:05 -0500
> !NNTP-Posting-Host: 24.201.115.194

> !X-Trace: wagner.videotron.net 1040426330 24.201.115.194 (Fri, 20 Dec 2002
> 18:18:50 EST)
> !NNTP-Posting-Date: Fri, 20 Dec 2002 18:18:50 EST
> !Path:

cpmsftngxa09!cpmsftngxa10!cpmsftngxa06!cpmsftngxa08!cppssbbsa01.microsoft.co
m!news-out.cwix.com!newsfeed.cwix.com!news-peer.gip.net!news.gsl.net!gip.net
!snoopy.risq.qc.ca!wesley.videotron.net!wagner.videotron.net.POSTED!not-for-

- Show quoted text -

> mail
> !Xref: cpmsftngxa09 microsoft.public.win32.programmer.networks:3691
> !X-Tomcat-NG: microsoft.public.win32.programmer.networks
> !
> !Thanks, it helps, but I really hopped NT to have also a single function
to
> !do this (like 2000), cause I have to translate that sequence of C API
calls
> !to VB6 ;-(.
> !


> !> Hi Cristian,
> !>
> !> HOWTO: Retrieve Current User and Domain Names on Windows Q155698
> !>
> !> HOWTO: Retrieve Current User and Domain Names on Windows NT, Windows
> 2000,
> !> or Windows XP Q111544
> !>
> !> Hope them help.
> !>
> !> Best regards,
> !> yhhuang
> !> VS.NET, Visual C++
> !> Microsoft
> !>
> !> This posting is provided "AS IS" with no warranties, and confers no
> !rights.
> !> Got .Net?  http://www.gotdotnet.com
> !> --------------------

> !> !Newsgroups:
> !>

!microsoft.public.win32.programmer.networks,microsoft.public.windowsnt.misc,

- Show quoted text -

> m
> !> icrosoft.public.windowsnt.protocol.tcpip
> !> !Subject: Need to get the domain name of local computer on NT4 using
only
> !> Win32 API calls
> !> !Lines: 16
> !> !X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
> !> !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

> !> !Date: Wed, 18 Dec 2002 01:35:56 -0500
> !> !NNTP-Posting-Host: 24.201.115.194

> !> !X-Trace: wagner.videotron.net 1040246442 24.201.115.194 (Wed, 18 Dec
> 2002
> !> 16:20:42 EST)
> !> !NNTP-Posting-Date: Wed, 18 Dec 2002 16:20:42 EST
> !> !Path:
> !>

!cpmsftngxa06!TK2MSFTNGP08!cppssbbsa01.microsoft.com!news-out.cwix.com!newsf
Quote:> e
> !>

!ed.cwix.com!nntp1.roc.gblx.net!nntp.gblx.net!nntp.gblx.net!news-peer.gip.ne
Quote:> t
> !>

!!news.gsl.net!gip.net!snoopy.risq.qc.ca!wesley.videotron.net!wagner.videotr

- Show quoted text -

> o
> !> n.net.POSTED!not-for-mail
> !> !Xref: cpmsftngxa06 microsoft.public.windowsnt.misc:327734
> !> microsoft.public.windowsnt.protocol.tcpip:72284
> !> microsoft.public.win32.programmer.networks:3576
> !> !X-Tomcat-NG: microsoft.public.win32.programmer.networks
> !> !
> !> !Hi,
> !> !
> !> !I'm looking for  a Win32 API function on NT4 able to easily return the
> !> !domain name of the local computer (or a sequence of code using just
> Win32
> !> !API calls on NT4). I cannot use external COM components or other
> imported
> !> !DLLs. If someone has also this sequence of code in VB6, this would be
an
> !> !additional bonus :-).
> !> !
> !> !Thanks so much,
> !> !
> !> !Cristian S.
> !> !

> !> !
> !> !
> !> !
> !> !
> !>
> !
> !
> !

 
 
 

Need to get the domain name of local computer on NT4 using only Win32 API calls

Post by Yan-Hong Huang[MSF » Wed, 25 Dec 2002 14:14:45


:) Thanks for the great info.

Best regards,
yhhuang
VS.NET, Visual C++
Microsoft

This posting is provided "AS IS" with no warranties, and confers no rights.
Got .Net?  http://www.gotdotnet.com
--------------------




!Subject: Re: Need to get the domain name of local computer on NT4 using
only Win32 API calls
!Date: Mon, 23 Dec 2002 12:43:40 +0200
!Lines: 155
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

!Newsgroups: microsoft.public.win32.programmer.networks
!NNTP-Posting-Host: 212.199.128.234
!Path: cpmsftngxa09!TK2MSFTNGP08!TK2MSFTNGP09
!Xref: cpmsftngxa09 microsoft.public.win32.programmer.networks:3735
!X-Tomcat-NG: microsoft.public.win32.programmer.networks
!
!It's do possible to call it in W9x too either by writing 16bit thunk which
!call
!16bit  NetWkstaGetInfo() ( Q155698 of KB MSDN ) or by
!using radmin32.dll which exports NetWkstaGetInfoA() in W9x.
!http://groups.google.com/groups?hl=en&lr=&threadm=%2379%23OCa8BHA.230...
m
!sftngp03&rnum=4&prev=/groups%3Fq%3Darkadyf%2BNetWkStaGetInfo%26hl%3Den%26lr
%
!3D%26sa%3DG%26scoring%3Dd
!( beware of wrap )
!
!
!Arkady
!

!> Hi Cristian,
!>
!> NetWkstaGetInfo()
!>
!> Requirements
!> Windows NT/2000/XP: Included in Windows NT 3.1 and later.
!> Windows 95/98/Me: Unsupported.
!> Header: Declared in Lmwksta.h; include Lm.h.
!> Library: Use Netapi32.lib.
!>
!>
!> Best regards,
!> yhhuang
!> VS.NET, Visual C++
!> Microsoft
!>
!> This posting is provided "AS IS" with no warranties, and confers no
!rights.
!> Got .Net?  http://www.gotdotnet.com
!> --------------------

!> !Newsgroups: microsoft.public.win32.programmer.networks


!> !Subject: Re: Need to get the domain name of local computer on NT4 using
!> only Win32 API calls
!> !Lines: 74
!> !X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
!> !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

!> !Date: Fri, 20 Dec 2002 18:19:05 -0500
!> !NNTP-Posting-Host: 24.201.115.194

!> !X-Trace: wagner.videotron.net 1040426330 24.201.115.194 (Fri, 20 Dec
2002
!> 18:18:50 EST)
!> !NNTP-Posting-Date: Fri, 20 Dec 2002 18:18:50 EST
!> !Path:
!>
!cpmsftngxa09!cpmsftngxa10!cpmsftngxa06!cpmsftngxa08!cppssbbsa01.microsoft.c
o
!>
!m!news-out.cwix.com!newsfeed.cwix.com!news-peer.gip.net!news.gsl.net!gip.ne
t
!>
!!snoopy.risq.qc.ca!wesley.videotron.net!wagner.videotron.net.POSTED!not-for
-
!> mail
!> !Xref: cpmsftngxa09 microsoft.public.win32.programmer.networks:3691
!> !X-Tomcat-NG: microsoft.public.win32.programmer.networks
!> !
!> !Thanks, it helps, but I really hopped NT to have also a single function
!to
!> !do this (like 2000), cause I have to translate that sequence of C API
!calls
!> !to VB6 ;-(.
!> !


!> !> Hi Cristian,
!> !>
!> !> HOWTO: Retrieve Current User and Domain Names on Windows Q155698
!> !>
!> !> HOWTO: Retrieve Current User and Domain Names on Windows NT, Windows
!> 2000,
!> !> or Windows XP Q111544
!> !>
!> !> Hope them help.
!> !>
!> !> Best regards,
!> !> yhhuang
!> !> VS.NET, Visual C++
!> !> Microsoft
!> !>
!> !> This posting is provided "AS IS" with no warranties, and confers no
!> !rights.
!> !> Got .Net?  http://www.gotdotnet.com
!> !> --------------------

!> !> !Newsgroups:
!> !>
!>
!!microsoft.public.win32.programmer.networks,microsoft.public.windowsnt.misc
,
!> m
!> !> icrosoft.public.windowsnt.protocol.tcpip
!> !> !Subject: Need to get the domain name of local computer on NT4 using
!only
!> !> Win32 API calls
!> !> !Lines: 16
!> !> !X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
!> !> !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

!> !> !Date: Wed, 18 Dec 2002 01:35:56 -0500
!> !> !NNTP-Posting-Host: 24.201.115.194

!> !> !X-Trace: wagner.videotron.net 1040246442 24.201.115.194 (Wed, 18 Dec
!> 2002
!> !> 16:20:42 EST)
!> !> !NNTP-Posting-Date: Wed, 18 Dec 2002 16:20:42 EST
!> !> !Path:
!> !>
!>
!!cpmsftngxa06!TK2MSFTNGP08!cppssbbsa01.microsoft.com!news-out.cwix.com!news
f
!> e
!> !>
!>
!!ed.cwix.com!nntp1.roc.gblx.net!nntp.gblx.net!nntp.gblx.net!news-peer.gip.n
e
!> t
!> !>
!>
!!!news.gsl.net!gip.net!snoopy.risq.qc.ca!wesley.videotron.net!wagner.videot
r
!> o
!> !> n.net.POSTED!not-for-mail
!> !> !Xref: cpmsftngxa06 microsoft.public.windowsnt.misc:327734
!> !> microsoft.public.windowsnt.protocol.tcpip:72284
!> !> microsoft.public.win32.programmer.networks:3576
!> !> !X-Tomcat-NG: microsoft.public.win32.programmer.networks
!> !> !
!> !> !Hi,
!> !> !
!> !> !I'm looking for  a Win32 API function on NT4 able to easily return
the
!> !> !domain name of the local computer (or a sequence of code using just
!> Win32
!> !> !API calls on NT4). I cannot use external COM components or other
!> imported
!> !> !DLLs. If someone has also this sequence of code in VB6, this would be
!an
!> !> !additional bonus :-).
!> !> !
!> !> !Thanks so much,
!> !> !
!> !> !Cristian S.
!> !> !

!> !> !
!> !> !
!> !> !
!> !> !
!> !>
!> !
!> !
!> !
!>
!
!
!

 
 
 

1. Adding Local Users using API calls to User Manager for Domains

Is is possible for a third party program to control the user accounts on a NT
machine via API calls?

We run email accounts for people and need to develop a admin database to
control the accounts, ie add new accounts, update existing accounts and disable
accounts when unpaid.

I would like to let the database program with all my user details automatically
update the User Manager.

The email server we use makes use of the existing NT users for accounts, to
have an email account the user must have a NT login name, home directory and be
part of a certain group.

 How would we do that?
----

|| Vantage Computers cc
|| Cyber Joe's cc Internet Cafe
|| WWW: http://www.cyberjoe.co.za/home.htm

2. parts to fix dreaded battery lead problem

3. Getting a list of the names of all DOMAINS using an API (programmatically)

4. SQL unload utility

5. Are there any APIs to validate names such as share name, computer name, service name etc.

6. VMS Telnetsym Print Queues

7. want to need if the local computer is a member of a domain or workgroup

8. installation problem on XP again...

9. Getting Domain name of current computer

10. Use SHBrowseForFolder() and get both computer name and domain name??

11. Need Help on installing a printer driver on the local computer using c++ program

12. API Call To Validate Drive Letter and/or UNC Computer/Share Names?

13. Get NetBIOS domain name from known DNS/LDAP domain name