IADsResource
The IADsResource interface is designed to manage an open resource for a file service across a network. When a remote user opens a folder or a subfolder on a public share point on the targeted computer, ADSI considers this folder to be an open resource and represents it with a resource object that implements this interface. You obtain the collection of resource objects from a file service operations object, as shown in the following code snippet:
Dim fso as IADsFileServiceOperations
Dim rs as IADsCollection
Set fso = GetObject("WinNT://myHost/LanmanServer")
Set rs = fso.Resources
IADsResource is a dual interface that inherits from IADs. The IADsResource interface exposes the following property methods.
Methods in Vtable Order
| IUnknown methods |
Description |
| QueryInterface |
Returns pointers to supported interfaces. |
| AddRef |
Increments reference count. |
| Release |
Decrements reference count. |
| IDispatch methods |
Description |
| GetTypeInfoCount |
Gets the number of type descriptions. |
| GetTypeInfo |
Gets a description of the object's programmable interface. |
| GetIDsOfNames |
Maps the name of the method or property to DISPID. |
| Invoke |
Calls one of the object's methods, or gets and sets one of its properties. |
| IADsResource property methods |
Description |
| get_User |
Gets the name of the user for the resource. |
| get_UserPath |
Gets the ADsPath of the user object for the user who opened the resource. |
| get_Path |
Gets the file system path of the opened resource. |
| get_LockCount |
Gets the number of locks on the resource. |
Windows NT/2000: Requires Windows 2000 (or Windows NT 4.0 with DSClient).
Windows 95/98: Requires Windows 95 or later (with DSClient).
Header: Declared in Iads.h.