Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IADsFileServiceOperations::Resources method

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.

Syntax


HRESULT Resources(
  [out] IADsCollection **ppResources
);

Parameters

ppResources [out]

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.

Return value

This method supports the standard return values including S_OK. For more information and other return values, see ADSI Error Codes.

Remarks

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.

Examples

The following code example shows how to enumerate open resources managed by a file service.


Dim fso As IADsFileServiceOperations
On Error GoTo Cleanup

' Bind to a file service operation on "myComputer" 
' in the local domain.
Set fso = GetObject("WinNT://myComputer/LanmanServer")

' Enumerate resources.
For Each resource In fso.Resources
    MsgBox "Resource path: " & resource.Path
Next resource

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


For a code example using the IADsFileServiceOperations::Resources method, see the code example given in IADsResource.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Header

Iads.h

DLL

Activeds.dll

IID

IID_IADsFileServiceOperations is defined as A02DED10-31CA-11CF-A98A-00AA006BC149

See also

IADsFileService
IADsFileServiceOperations
IADsResource

 

 

Show:
© 2015 Microsoft