The IADsFileServiceOperations::Resources method gets a pointer to a pointer to the IADsCollection interface on a collection of the resource objects representing the current open resources on this file service.
HRESULT Resources( IADsCollection **ppResources );
Pointer to a pointer to the IADsCollection interface that can then be used to enumerate objects implementing the IADsResource interface and representing the current open resources for this file service.
This method supports the standard return values including S_OK. For more information and other return values, see ADSI Error Codes.
Traditional directory services supply data only about directory service elements represented in the underlying data store. Data about resources for file services may not be available from the underlying directory store.
The following code example shows how to enumerate open resources managed by a file service.
Dim fso As IADsFileServiceOperations On Error GoTo Cleanup
|Windows version||Windows Vista Windows Server 2008|