Re: NetUserGetInfo question
From: Garfield Lewis (galewis_at_SPAM-NO-MOREca.ibm.com)
Date: 04/29/04
- Next message: paul yang: "Does LsaLogonUser support local users?"
- Previous message: Amit Rahul [MS]: "Re: Method LsaCallAuthenticationPackage fails on Windows server 2003"
- In reply to: Amit Rahul [MS]: "Re: NetGetUserInfo question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 28 Apr 2004 20:09:14 -0400
Hi Amit,
Thanks for responding to my post. However, I think you missed what I was
asking about. I have all the information you specified, the problem is that
on MSDN there is the following:
>>>
Return level two information and additional attributes about the user
account. This level is valid only on servers. The bufptr parameter points to
a USER_INFO_3 structure. Note that it is recommended that you use
USER_INFO_4 instead.
<<<
Notice the text "This level is valid only on servers". If I am running this
on a Workstation then what should I use to get this information. The text
for USER_INFO_4 says the same thing.
Thx,
-- Garfield A. Lewis "Amit Rahul [MS]" <arahul@online.microsoft.com> wrote in message news:ebBV91MLEHA.3516@TK2MSFTNGP11.phx.gbl... > Garfield, > I would assume you are talking about NetUserGetInfo here. You can use the > servername as NULL if you want the information for the local > machine/workstation case. If you are in a domain then you should be using > NetGetDCName to get the name of the DC and then use that with > NetUserGetInfo. > GetUserProfileDirectory return you rthe path to the profile where as > NetUserGetInfo will give you whole bunch of info on the user including > usri4_profile. You can use GetProfileType to figure out if its a roaming > profile. Also with GetUserProfileDirectory it will return you the path of > profile on that machine where you have logged on since the profile is > synchronized with the server share only when you log off. > > Thanks > Amit > > "Garfield Lewis" <galewis@SPAM-NO-MOREca.ibm.com> wrote in message > news:eRCUVGILEHA.2624@TK2MSFTNGP09.phx.gbl... > > Hi All, > > > > What are the alternatives to using NetGetUserInfo with info level 3 or 4 > on > > a non-server machine? The MSDN documentation say info level 3 and 4 are > only > > valid for servers. I know we can use GetUserProfileDirectory but if you > are > > using a roaming profile it's not clear from the MSDN documentation whether > > it will get the correct one. > > > > Thx, > > > > -- > > Garfield A. Lewis > > > > > >
- Next message: paul yang: "Does LsaLogonUser support local users?"
- Previous message: Amit Rahul [MS]: "Re: Method LsaCallAuthenticationPackage fails on Windows server 2003"
- In reply to: Amit Rahul [MS]: "Re: NetGetUserInfo question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|