Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Wed, 23 Jul 2008 10:39:20 -0400,    group: microsoft.public.platformsdk.security        back       


retrieving name of the domain   
I can't find a way of retrieving the name of the domain a machine is in. 
I can find things like LookupAccountName() but that seems to require the 
domain, so it is circular in my case.
Does anyone know how to retrieve the windows domain of the local machine.
Thanks,
Tom
date: Wed, 23 Jul 2008 10:39:20 -0400   author:   Thomas Bolioli

Re: retrieving name of the domain   
Thomas Bolioli wrote:
> I can't find a way of retrieving the name of the domain a machine is in. 
> I can find things like LookupAccountName() but that seems to require the 
> domain, so it is circular in my case.
> Does anyone know how to retrieve the windows domain of the local machine.
> Thanks,

LsaQueryInformationPolicy


Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat
date: Wed, 23 Jul 2008 15:07:11 +0000 (UTC)   author:   Corinna Vinschen am

Re: retrieving name of the domain   
Thank you. I would never have thought to look there. I was digging 
through AD stuff.
Thanks,
Tom

Corinna Vinschen wrote:
> Thomas Bolioli wrote:
>> I can't find a way of retrieving the name of the domain a machine is in. 
>> I can find things like LookupAccountName() but that seems to require the 
>> domain, so it is circular in my case.
>> Does anyone know how to retrieve the windows domain of the local machine.
>> Thanks,
> 
> LsaQueryInformationPolicy
> 
> 
> Corinna
>
date: Wed, 23 Jul 2008 15:36:52 -0400   author:   Thomas Bolioli

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us