IADsResource interface (iads.h)

The IADsResource interface is a dual interface that inherits from IADs. It is designed to manage an open resource for a file service across a network.

Inheritance

The IADsResource interface inherits from IDispatch and IADs. IADsResource also has these types of members:

Remarks

When a remote user opens a folder or a subfolder on a public share point on the target computer, ADSI considers this folder to be an open resource and represents it with a resource object that implements this interface.

Examples

The following code example shows how to obtain the collection of resource objects from a file service operations object.

Dim fso as IADsFileServiceOperations
Dim rs as IADsCollection
On Error GoTo Cleanup

Set fso = GetObject("WinNT://myHost/LanmanServer")
Set rs = fso.Resources

Cleanup:
    If (Err.Number<>0) Then
        MsgBox("An error has occurred. " & Err.Number)
    End If
    Set rso = Nothing
    Set rs = Nothing

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header iads.h