S
suresh kumar
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
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