The IADsResource interface is used to get and set the properties of the Resource object. The interface definition is as follows:
[ object, uuid(IID_IADsResource), oleautomation, dual ]
interface IADsResource: IADs
{
// Read-only properties.
[propget]
HRESULT User ([out, retval]BSTR *pbstrUser);
[propget]
HRESULT UserPath ([out, retval]BSTR *pbstrUserPath);
[propget]
HRESULT Path ([out, retval]BSTR *pbstrPath);
[propget]
HRESULT LockCount ([out, retval]long *plLockCount);
};
Method | Syntax | Description |
User | String | Gets the name of user who opened the resource. |
UserPath | ADsPath | Gets the ADsPath of the user object for the user who opened the resource. |
Path | Path | Gets the file system path of the opened resource. |
LockCount | Integer | Gets the number of locks on the resource. |