Windows NT query

G

Guest

Can you post this to some one in Microsoft and get info for us.

Question 1.

At present we are using NetUserGetGroups and NetUserGetLocalGroups to get the groups that is associated with the user. But the problem here is we have to specify the server name for searching. For server we are at present getting the Physical DNS Domain to which the computer is connected to. Hence it searches the groups for the users in the server that is specified. Hence this is limited to searching the groups associated with the user in a particular domain. Hence in order to avoid this we want the following info.

Is there any API which can check for the user in a group if both user, group and domain are given.


Question 2.

When i use the below API in windows NT the code is not full compiled, were as in the case of windows 2000 is working fine. Is there any API which will support the same functionality in windows NT.

GetUserName - This function supports in window NT but not the same functionality as GetComputerNameEx,GetUserNameEx

GetComputerNameEx it has parameter such as ByVal NameType As COMPUTER_NAME_FORMAT which is not supported by windows NT

GetUserNameEx it has parameter such as ByVal NameFormat As EXTENDED_NAME_FORMAT which is not supported by windows NT

Public Declare Function GetUserNameEx Lib "secur32.dll" Alias "GetUserNameExA" (ByVal NameFormat As EXTENDED_NAME_FORMAT, ByVal lpNameBuffer As String, ByRef nSize As Long) As Long

Public Declare Function GetComputerNameEx Lib "kernel32.dll" Alias "GetComputerNameExA" (ByVal NameType As COMPUTER_NAME_FORMAT, ByVal lpBuffer As String, ByRef nSize As Long) As Long

Can you pls check this with your friends and get back to us.

With Thanks and Regards

Suresh Kumar
 
S

Suzanne S. Barnhill

This question is off-topic for these NGs. You need to post to a Windows NT
NG.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

suresh kumar said:
Can you post this to some one in Microsoft and get info for us.

Question 1.

At present we are using NetUserGetGroups and NetUserGetLocalGroups to get
the groups that is associated with the user. But the problem here is we have
to specify the server name for searching. For server we are at present
getting the Physical DNS Domain to which the computer is connected to.
Hence it searches the groups for the users in the server that is specified.
Hence this is limited to searching the groups associated with the user in a
particular domain. Hence in order to avoid this we want the following info.
Is there any API which can check for the user in a group if both user, group and domain are given.


Question 2.

When i use the below API in windows NT the code is not full compiled, were
as in the case of windows 2000 is working fine. Is there any API which will
support the same functionality in windows NT.
GetUserName - This function supports in window NT but not the same
functionality as GetComputerNameEx,GetUserNameEx
GetComputerNameEx it has parameter such as ByVal NameType As
COMPUTER_NAME_FORMAT which is not supported by windows NT
GetUserNameEx it has parameter such as ByVal NameFormat As
EXTENDED_NAME_FORMAT which is not supported by windows NT
Public Declare Function GetUserNameEx Lib "secur32.dll" Alias
"GetUserNameExA" (ByVal NameFormat As EXTENDED_NAME_FORMAT, ByVal
lpNameBuffer As String, ByRef nSize As Long) As Long
Public Declare Function GetComputerNameEx Lib "kernel32.dll" Alias
"GetComputerNameExA" (ByVal NameType As COMPUTER_NAME_FORMAT, ByVal lpBuffer
As String, ByRef nSize As Long) As Long
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top