IADsFileServiceOperations::Sessions

Gets an interface pointer IADsCollection on a collection that consists of the session objects that represent the current sessions in use for this file service.

HRESULT IADsFileServiceOperations::Sessions(
  IADsCollection ** ppSessions  // Current open sessions in use for 
                                // this file service.
);
 

Parameter

ppSessions
[out] Indirect pointer to the IADsCollection interface that can then be used to enumerate the ADSI Session Objects that represent the current open sessions for this file service.

Return Values

This method supports the standard return values E_FAIL and E_UNEXPECTED, as well as the following:

S_OK
The interface pointer on the session collection object has been successfully retrieved.

Remarks

Traditional directory services supply information only about directory service elements that are represented in the underlying data store. Information about sessions for file services may not be available from the underlying store..

Notes to Implementers

If your object does not support dependent session objects for file services, return E_NOTIMPL from this method.

QuickInfo

  Windows NT: Use version 4.0 and later.
  Windows CE: Unsupported.
  Header: Declared in iads.h.

See Also

IADsFileService, ADSI Service Object