Platform SDK: Active Directory, ADSI, and Directory Services

IADsFileShare

The IADsFileShare interface is designed for representing a published file share across the network. Call the methods on IADsFileShare when you want to access or publish information about a file share point.

To bind to a file share, you must bind to "LanManServer" on the host machine of interest. For example,

Dim fs as IADsFileShare
Set fs = GetObject("WinNT://aComputer/LanmanServer")

The IADsFileShare interface is a dual interface that inherits from IADs.

This interface exposes the following property methods.

Methods in Vtable Order

IUnknown methods Description
QueryInterface Returns pointers to supported interfaces.
AddRef Increments reference count.
Release Decrements reference count.

IDispatch methods Description
GetTypeInfoCount Gets the number of type descriptions.
GetTypeInfo Gets a description of object's programmable interface.
GetIDsOfNames Maps name of method or property to DISPID.
Invoke Calls one of the object's methods, or gets andsets one of its properties.

IADsFileShare property methods Description
CurrentUserCount Gets the current number of users connected to this share.
Description Gets and sets the description of the file share.
HostComputer Gets and sets the ADsPath reference to the host computer.
Path Gets and sets the file system path to shared directory.
MaxUserCount Gets and sets the maximum number of users allowed to access share at any one time.

Requirements

  Windows NT/2000: Requires Windows 2000 (or Windows NT 4.0 with DSClient).
  Windows 95/98: Requires Windows 95 or later (with DSClient).
  Header: Declared in Iads.h.

See Also

IADsFileShare Property Methods