DfsrInfo class
The DFSR monitoring provider class. This singleton class has provider-specific settings in addition to computer-wide service properties and methods.
Syntax
class DfsrInfo
{
string ProviderVersion;
datetime ServiceStartTime;
datetime LastDsPollTime;
uint8 State;
uint32 LastErrorCode;
uint32 LastErrorMessageId;
};
Members
The DfsrInfo class has these types of members:
Properties
The DfsrInfo class has these properties.
- LastDsPollTime
-
- Data type: datetime
- Access type: Read-only
The last time there was an attempt to poll the Active Directory Domain Services; it does not matter whether the attempt succeeded.
- LastErrorCode
-
- Data type: uint32
- Access type: Read-only
- Qualifiers: Values (Success) , ValueMap (0)
The last error code.
Value Meaning - DFSR_E_DS_POLLING_FAILED
Could not connect to the Active Directory.
- LastErrorMessageId
-
- Data type: uint32
- Access type: Read-only
- Qualifiers: Values (Success) , ValueMap (0)
Event log message identifier that corresponds to the last error code.
- ProviderVersion
-
- Data type: string
- Access type: Read-only
The current version of the provider.
- ServiceStartTime
-
- Data type: datetime
- Access type: Read-only
The time stamp of the last service start.
- State
-
- Data type: uint8
- Access type: Read-only
- Qualifiers: Values (Service Starting, Service Running, Service Degraded, Service Shutting Down) , ValueMap (0, 1, 2, 3)
The current state of the DFSR service.
Remarks
The following state diagram illustrates the transitions between the service states.

Requirements
|
Minimum supported client | Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2003 R2 [desktop apps only] |
|
End of client support | Windows 7 |
|
Namespace |
\\.\Root\MicrosoftDfs |
|
MOF |
|
Send comments about this topic to Microsoft
Build date: 10/26/2012