Export (0) Print
Expand All

IADsFileServiceOperations interface

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.

Members

The IADsFileServiceOperations interface inherits from IDispatch, IADs, and IADsServiceOperations. IADsFileServiceOperations also has these types of members:

Methods

The IADsFileServiceOperations interface has these methods.

MethodDescription
Continue

Continues the service.

Get

Gets the value for a property by name.

GetEx

Gets the value for a single or multi-valued property by name.

GetInfo

Loads the property values of this object from the underlying directory store.

GetInfoEx

Loads specific property values of this object from the underlying directory store.

Pause

Pauses the service.

Put

Sets the value for a property by name.

PutEx

Sets the value for a single or multi-valued property by name.

Resources

Gets an interface pointer on a collection object that represents current open resources for this file service.

Sessions

Gets an interface pointer on a collection object that represents current open sessions on this file service.

SetInfo

Persists the changes on this object to the underlying directory store.

SetPassword

Sets the password to be used by the service manager to create a security context.

Start

Starts the service.

Stop

Stops the service.

 

Properties

The IADsFileServiceOperations interface has these properties.

PropertyAccess typeDescription

AdsPath

Read-only

Gets the object's ADsPath that uniquely identifies this object from all others.

Class

Read-only

Gets the name of the object's schema class.

GUID

Read-only

Gets the GUID of the object as stored in the underlying directory store.

Name

Read-only

Gets the object's relative name.

Parent

Read-only

Gets the ADsPath string for the parent of the object.

Schema

Read-only

Gets the ADsPath string to the schema class object for this object.

Status

Read-only

Gets the status of the 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

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
IADsResource
IADsService
IADsServiceOperations
IADsSession

 

 

Show:
© 2015 Microsoft