IADsResource interface

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.


The IADsResource interface has these methods.

Method Description


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.


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


Windows version Windows Vista Windows Server 2008
Target Platform Windows
Header iads.h