Directory Services

IADsFileServiceOperations

The IADsFileServiceOperations interface is a dual interface that inherits from IADsServiceOperations. It extends the functionality, as exposed in the IADsServiceOperations interface, for managing the file service across a network. Specifically, it serves to maintain and manage open resources and active sessions of the file service.

Methods in Vtable Order

The IADsFileServiceOperations interface inherits the methods of the standard COM interfaces:

In addition, IADsFileServiceOperations defines the following methods.

Method Description
Sessions Gets an interface pointer on a collection object that represents current open sessions on this file service.
Resources Gets an interface pointer on a collection object that represents current open resources for this file service.

Remarks

To bind to a file service operations object, use the ADsPath string that identifies the "LanmanServer" service on the host computer, as shown in the following code example.

Dim fso As IADsFileServiceOperations
On Error Resume Next

' Replace aDomain with the domain that the computer is located on.
' Replace aComputer with the name of the computer.
Set fso = GetObject("WinNT://aDomain/aComputer/LanmanServer")

From this point, you can handle the file service object as just a service object, applying any of the methods of IADsServiceOperations to the file service object. For example, you can examine the operational status of the file service, start or stop the file service, or change its password.

However, the IADsFileServiceOperations interface allows you to work with open resources and active sessions of the file service. See the following example.

For Each r in fso.Resources
MsgBox r.User
MsgBox r.Path
MsgBox r.LockCount
Next

For more information about active sessions and open resources, see IADsSession and IADsResource.

Requirements

Client: Included in Windows XP and Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension on Windows NT 4.0 SP6a and Windows 95/98/Me.
Header: Declared in Iads.h.

See Also

IADsFileService, IADsResource, IADsService, IADsServiceOperations, IADsSession