Results 1 to 4 of 4

Thread: Declare Activeds.dll

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Location
    Hartford, CT
    Posts
    7

    Question Declare Activeds.dll

    Hi,

    I'm using Activeds.dll to check for users group and if it doesnt exist then its added to the group. The coding is as follows

    Dim sEndUserError As String
    Dim myGroup As IADsGroup
    Dim myUser As IADsUser
    Dim strADSPath As String

    sEndUserError = "User " & samAccountName & " was not found on the server " & Domain & "/" & DC & "."
    Set myUser = GetObject("WinNT:" & Domain & "/" & samAccountName & ",user")

    sEndUserError = "Group " & GroupName & " was not found on the server " & Domain & "."
    Set myGroup = GetObject("WinNT:" & Domain & "/" & GroupName & ",group")

    If myGroup.IsMember(myUser.ADsPath) Then
    IsUserInGroup = True
    Else
    IsUserInGroup = False
    End If

    Now the question is without adding reference of Activeds.dll is it possible to use its functionality, by using declare statement for activeds.

    What exactly I'm looking for it is to use Declare statement for activeds and how to use that.
    Prem

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Declare Activeds.dll

    What is Activeds.DLL?

    Is this something that you wrote?

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Location
    Hartford, CT
    Posts
    7

    Resolved Re: Declare Activeds.dll

    Hi,

    This is actually the dll used for Active directory services. We can add,modify or delete users from AD. It is from Microsoft and usually it takes activeds.tlb
    Prem

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Declare Activeds.dll

    Oh, Ok.

    Then it should be an easy enought job to set a reference to it, which you will need.

    I just tried searching MSDN for an example for you and got this message
    Quote Originally Posted by MSDN
    We apologize, but an unknown error has occurred in the forums.
    This error has been logged.
    I'll try again later.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width