:) 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.
!> !> !
!> !> !
!> !> !
!> !> !
!> !> !
!> !>
!> !
!> !
!> !
!>
!
!
!